You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.0 KiB
48 lines
1.0 KiB
4 years ago
|
{
|
||
|
"kind" : "Program",
|
||
|
"location" : [ 1, 1, 4, 6 ],
|
||
|
"declarations" : [ {
|
||
|
"kind" : "FuncDef",
|
||
|
"location" : [ 1, 1, 2, 13 ],
|
||
|
"name" : {
|
||
|
"kind" : "Identifier",
|
||
|
"location" : [ 1, 5, 1, 7 ],
|
||
|
"name" : "foo"
|
||
|
},
|
||
|
"params" : [ ],
|
||
|
"returnType" : {
|
||
|
"kind" : "ClassType",
|
||
|
"location" : [ 1, 14, 1, 16 ],
|
||
|
"className" : "int"
|
||
|
},
|
||
|
"declarations" : [ ],
|
||
|
"statements" : [ {
|
||
|
"kind" : "ReturnStmt",
|
||
|
"location" : [ 2, 5, 2, 12 ],
|
||
|
"value" : {
|
||
|
"kind" : "IntegerLiteral",
|
||
|
"location" : [ 2, 12, 2, 12 ],
|
||
|
"value" : 1
|
||
|
}
|
||
|
} ]
|
||
|
} ],
|
||
|
"statements" : [ {
|
||
|
"kind" : "ExprStmt",
|
||
|
"location" : [ 4, 1, 4, 5 ],
|
||
|
"expr" : {
|
||
|
"kind" : "CallExpr",
|
||
|
"location" : [ 4, 1, 4, 5 ],
|
||
|
"function" : {
|
||
|
"kind" : "Identifier",
|
||
|
"location" : [ 4, 1, 4, 3 ],
|
||
|
"name" : "foo"
|
||
|
},
|
||
|
"args" : [ ]
|
||
|
}
|
||
|
} ],
|
||
|
"errors" : {
|
||
|
"errors" : [ ],
|
||
|
"kind" : "Errors",
|
||
|
"location" : [ 0, 0, 0, 0 ]
|
||
|
}
|
||
|
}
|