{ "kind" : "Program", "location" : [ 1, 1, 2, 9 ], "declarations" : [ { "kind" : "VarDef", "location" : [ 1, 1, 1, 10 ], "var" : { "kind" : "TypedVar", "location" : [ 1, 1, 1, 5 ], "identifier" : { "kind" : "Identifier", "location" : [ 1, 1, 1, 1 ], "name" : "x" }, "type" : { "kind" : "ClassType", "location" : [ 1, 3, 1, 5 ], "className" : "int" } }, "value" : { "kind" : "IntegerLiteral", "location" : [ 1, 9, 1, 10 ], "inferredType" : { "kind" : "ClassValueType", "className" : "int" }, "value" : 42 } } ], "statements" : [ { "kind" : "ExprStmt", "location" : [ 2, 1, 2, 8 ], "expr" : { "kind" : "CallExpr", "location" : [ 2, 1, 2, 8 ], "inferredType" : { "kind" : "ClassValueType", "className" : "" }, "function" : { "kind" : "Identifier", "location" : [ 2, 1, 2, 5 ], "inferredType" : { "kind" : "FuncType", "parameters" : [ { "kind" : "ClassValueType", "className" : "object" } ], "returnType" : { "kind" : "ClassValueType", "className" : "" } }, "name" : "print" }, "args" : [ { "kind" : "Identifier", "location" : [ 2, 7, 2, 7 ], "inferredType" : { "kind" : "ClassValueType", "className" : "int" }, "name" : "x" } ] } } ], "errors" : { "errors" : [ ], "kind" : "Errors", "location" : [ 0, 0, 0, 0 ] } }