--- source: tests/snapshot_tests.rs --- Program( statements: [ Function(FunctionStatement( name: Token( kind: Identifier("add"), range: Range( start: 9, end: 12, ), ), local: false, arguments: [ Variable( name: Token( kind: Identifier("a"), range: Range( start: 13, end: 14, ), ), ty: None, ), Variable( name: Token( kind: Identifier("b"), range: Range( start: 16, end: 17, ), ), ty: None, ), ], return_type: None, generics: [], body: Block(BlockStatement( statements: [ Return(ReturnStatement( values: [ Binary(BinaryExpression( operator: Add, left: Identifier(Identifier( name: "a", range: Range( start: 30, end: 31, ), )), right: Identifier(Identifier( name: "b", range: Range( start: 34, end: 35, ), )), range: Range( start: 32, end: 33, ), )), ], range: Range( start: 23, end: 29, ), )), ], )), range: Range( start: 0, end: 39, ), range_return_type: None, )), Local(LocalStatement( variables: [ Variable( name: Token( kind: Identifier("result"), range: Range( start: 47, end: 53, ), ), ty: None, ), ], initializer: [ Call(CallExpression( left: Identifier(Identifier( name: "add", range: Range( start: 56, end: 59, ), )), args: Grouped(GroupedExpression( expressions: [ Literal(Number(NumberLiteral( value: "5", range: Range( start: 60, end: 61, ), ))), Literal(Number(NumberLiteral( value: "10", range: Range( start: 63, end: 65, ), ))), ], range: Range( start: 59, end: 66, ), )), )), ], range: Range( start: 41, end: 53, ), )), ], )