--- source: tests/snapshot_tests.rs --- Program( statements: [ Function(FunctionStatement( name: Token( kind: Identifier("test"), range: Range( start: 141, end: 145, ), ), local: false, arguments: [ Variable( name: Token( kind: Identifier("t"), range: Range( start: 146, end: 147, ), ), ty: Some(Boolean), ), ], return_type: None, generics: [], body: Block(BlockStatement( statements: [ If(IfStatement( condition: Identifier(Identifier( name: "t", range: Range( start: 163, end: 164, ), )), then_body: Block(BlockStatement( statements: [ Return(ReturnStatement( values: [ Literal(Number(NumberLiteral( value: "10", range: Range( start: 181, end: 183, ), ))), ], range: Range( start: 174, end: 180, ), )), ], )), else_if_branches: [], else_body: Some(Block(BlockStatement( statements: [ Return(ReturnStatement( values: [ Literal(String(StringLiteral( value: "Hello", range: Range( start: 202, end: 209, ), ))), ], range: Range( start: 195, end: 201, ), )), ], ))), range: Range( start: 160, end: 215, ), )), ], )), range: Range( start: 132, end: 219, ), range_return_type: None, )), Local(LocalStatement( variables: [ Variable( name: Token( kind: Identifier("result"), range: Range( start: 228, end: 234, ), ), ty: Some(Number), ), ], initializer: [ Call(CallExpression( left: Identifier(Identifier( name: "test", range: Range( start: 245, end: 249, ), )), args: Grouped(GroupedExpression( expressions: [ Literal(Boolean(BooleanLiteral( value: true, range: Range( start: 250, end: 254, ), ))), ], range: Range( start: 249, end: 255, ), )), )), ], range: Range( start: 222, end: 234, ), )), Local(LocalStatement( variables: [ Variable( name: Token( kind: Identifier("n"), range: Range( start: 262, end: 263, ), ), ty: Some(String), ), ], initializer: [ Call(CallExpression( left: Identifier(Identifier( name: "test", range: Range( start: 274, end: 278, ), )), args: Grouped(GroupedExpression( expressions: [ Literal(Boolean(BooleanLiteral( value: false, range: Range( start: 279, end: 284, ), ))), ], range: Range( start: 278, end: 285, ), )), )), ], range: Range( start: 256, end: 263, ), )), ], )