leo/parser/tests/serialization/expected_leo_ast.json

83 lines
2.5 KiB
JSON
Raw Normal View History

{
2021-03-07 17:27:42 +03:00
"name": "",
2020-08-03 06:56:22 +03:00
"expected_input": [],
"imports": [],
"circuits": {},
"functions": {
2021-03-07 18:20:08 +03:00
"{\"name\":\"main\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":10,\\\"col_stop\\\":14,\\\"path\\\":\\\"./tests/serialization/main.leo\\\"}\"}": {
2021-03-07 17:27:42 +03:00
"annotations": [],
2021-03-07 18:20:08 +03:00
"identifier": "{\"name\":\"main\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":10,\\\"col_stop\\\":14,\\\"path\\\":\\\"./tests/serialization/main.leo\\\"}\"}",
2020-08-03 06:56:22 +03:00
"input": [],
2020-10-27 03:46:42 +03:00
"output": null,
2021-03-07 17:27:42 +03:00
"block": {
"statements": [
{
2020-12-16 23:43:16 +03:00
"Return": {
"expression": {
2020-12-16 22:21:57 +03:00
"Binary": {
"left": {
"Value": {
"Implicit": [
"1",
{
2021-03-07 17:27:42 +03:00
"line_start": 2,
"line_stop": 2,
"col_start": 12,
"col_stop": 13,
2021-03-07 18:20:08 +03:00
"path": "./tests/serialization/main.leo"
2020-12-16 22:21:57 +03:00
}
]
}
},
2020-12-16 22:21:57 +03:00
"right": {
"Value": {
"Implicit": [
"1",
{
2021-03-07 17:27:42 +03:00
"line_start": 2,
"line_stop": 2,
"col_start": 16,
"col_stop": 17,
2021-03-07 18:20:08 +03:00
"path": "./tests/serialization/main.leo"
2020-12-16 22:21:57 +03:00
}
]
}
},
2021-03-07 17:27:42 +03:00
"op": "Add",
2020-12-16 22:21:57 +03:00
"span": {
2021-03-07 17:27:42 +03:00
"line_start": 2,
"line_stop": 2,
"col_start": 12,
"col_stop": 17,
2021-03-07 18:20:08 +03:00
"path": "./tests/serialization/main.leo"
}
2020-12-16 22:21:57 +03:00
}
},
2021-03-07 17:27:42 +03:00
"span": {
"line_start": 2,
"line_stop": 2,
"col_start": 5,
"col_stop": 17,
2021-03-07 18:20:08 +03:00
"path": "./tests/serialization/main.leo"
}
2020-12-16 23:43:16 +03:00
}
}
2020-12-16 23:43:16 +03:00
],
2021-03-07 17:27:42 +03:00
"span": {
"line_start": 1,
"line_stop": 3,
"col_start": 17,
"col_stop": 2,
2021-03-07 18:20:08 +03:00
"path": "./tests/serialization/main.leo"
2020-12-16 23:43:16 +03:00
}
},
"span": {
2021-03-07 17:27:42 +03:00
"line_start": 1,
"line_stop": 3,
"col_start": 1,
"col_stop": 2,
2021-03-07 18:20:08 +03:00
"path": "./tests/serialization/main.leo"
}
}
2021-03-07 17:27:42 +03:00
}
}