leo/parser/tests/serialization/expected_leo_ast.json
2021-03-07 06:27:42 -08:00

83 lines
2.7 KiB
JSON

{
"name": "",
"expected_input": [],
"imports": [],
"circuits": {},
"functions": {
"{\"name\":\"main\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":10,\\\"col_stop\\\":14,\\\"path\\\":\\\"/home/p/aleo/leo/parser/tests/serialization/main.leo\\\"}\"}": {
"annotations": [],
"identifier": "{\"name\":\"main\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":10,\\\"col_stop\\\":14,\\\"path\\\":\\\"/home/p/aleo/leo/parser/tests/serialization/main.leo\\\"}\"}",
"input": [],
"output": null,
"block": {
"statements": [
{
"Return": {
"expression": {
"Binary": {
"left": {
"Value": {
"Implicit": [
"1",
{
"line_start": 2,
"line_stop": 2,
"col_start": 12,
"col_stop": 13,
"path": "/home/p/aleo/leo/parser/tests/serialization/main.leo"
}
]
}
},
"right": {
"Value": {
"Implicit": [
"1",
{
"line_start": 2,
"line_stop": 2,
"col_start": 16,
"col_stop": 17,
"path": "/home/p/aleo/leo/parser/tests/serialization/main.leo"
}
]
}
},
"op": "Add",
"span": {
"line_start": 2,
"line_stop": 2,
"col_start": 12,
"col_stop": 17,
"path": "/home/p/aleo/leo/parser/tests/serialization/main.leo"
}
}
},
"span": {
"line_start": 2,
"line_stop": 2,
"col_start": 5,
"col_stop": 17,
"path": "/home/p/aleo/leo/parser/tests/serialization/main.leo"
}
}
}
],
"span": {
"line_start": 1,
"line_stop": 3,
"col_start": 17,
"col_stop": 2,
"path": "/home/p/aleo/leo/parser/tests/serialization/main.leo"
}
},
"span": {
"line_start": 1,
"line_stop": 3,
"col_start": 1,
"col_stop": 2,
"path": "/home/p/aleo/leo/parser/tests/serialization/main.leo"
}
}
}
}