{ "kind" : "Program", "location" : [ 1, 1, 4, 9 ], "declarations" : [ { "kind" : "FuncDef", "location" : [ 1, 1, 2, 17 ], "name" : { "kind" : "Identifier", "location" : [ 1, 5, 1, 7 ], "name" : "foo" }, "params" : [ { "kind" : "TypedVar", "location" : [ 1, 9, 1, 13 ], "identifier" : { "kind" : "Identifier", "location" : [ 1, 9, 1, 9 ], "name" : "x" }, "type" : { "kind" : "ClassType", "location" : [ 1, 11, 1, 13 ], "className" : "int" } }, { "kind" : "TypedVar", "location" : [ 1, 16, 1, 20 ], "identifier" : { "kind" : "Identifier", "location" : [ 1, 16, 1, 16 ], "name" : "y" }, "type" : { "kind" : "ClassType", "location" : [ 1, 18, 1, 20 ], "className" : "int" } } ], "returnType" : { "kind" : "ClassType", "location" : [ 1, 26, 1, 29 ], "className" : "bool" }, "declarations" : [ ], "statements" : [ { "kind" : "ReturnStmt", "location" : [ 2, 5, 2, 16 ], "value" : { "kind" : "BinaryExpr", "location" : [ 2, 12, 2, 16 ], "left" : { "kind" : "Identifier", "location" : [ 2, 12, 2, 12 ], "name" : "x" }, "operator" : ">", "right" : { "kind" : "Identifier", "location" : [ 2, 16, 2, 16 ], "name" : "y" } } } ] } ], "statements" : [ { "kind" : "ExprStmt", "location" : [ 4, 1, 4, 8 ], "expr" : { "kind" : "CallExpr", "location" : [ 4, 1, 4, 8 ], "function" : { "kind" : "Identifier", "location" : [ 4, 1, 4, 3 ], "name" : "foo" }, "args" : [ { "kind" : "IntegerLiteral", "location" : [ 4, 5, 4, 5 ], "value" : 1 }, { "kind" : "IntegerLiteral", "location" : [ 4, 7, 4, 7 ], "value" : 2 } ] } } ], "errors" : { "errors" : [ ], "kind" : "Errors", "location" : [ 0, 0, 0, 0 ] } }