mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-21 16:41:42 +03:00
207 lines
8.1 KiB
JSON
207 lines
8.1 KiB
JSON
{
|
|
"name": "",
|
|
"expected_input": [],
|
|
"imports": [],
|
|
"circuits": {
|
|
"{\"name\":\"Foo\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":9,\\\"col_stop\\\":12,\\\"path\\\":\\\"\\\"}\"}": {
|
|
"circuit_name": "{\"name\":\"Foo\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":9,\\\"col_stop\\\":12,\\\"path\\\":\\\"\\\"}\"}",
|
|
"members": [
|
|
{
|
|
"CircuitVariable": [
|
|
"{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":2,\\\"line_stop\\\":2,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"\\\"}\"}",
|
|
{
|
|
"IntegerType": "U32"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"CircuitFunction": {
|
|
"annotations": [],
|
|
"identifier": "{\"name\":\"new\",\"span\":\"{\\\"line_start\\\":4,\\\"line_stop\\\":4,\\\"col_start\\\":12,\\\"col_stop\\\":15,\\\"path\\\":\\\"\\\"}\"}",
|
|
"input": [],
|
|
"output": {
|
|
"Circuit": "{\"name\":\"Foo\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":9,\\\"col_stop\\\":12,\\\"path\\\":\\\"\\\"}\"}"
|
|
},
|
|
"block": {
|
|
"statements": [
|
|
{
|
|
"Definition": {
|
|
"declaration_type": "Let",
|
|
"variable_names": [
|
|
{
|
|
"mutable": false,
|
|
"identifier": "{\"name\":\"new\",\"span\":\"{\\\"line_start\\\":5,\\\"line_stop\\\":5,\\\"col_start\\\":9,\\\"col_stop\\\":12,\\\"path\\\":\\\"\\\"}\"}",
|
|
"span": {
|
|
"line_start": 5,
|
|
"line_stop": 5,
|
|
"col_start": 9,
|
|
"col_stop": 12,
|
|
"path": ""
|
|
}
|
|
}
|
|
],
|
|
"type_": {
|
|
"Circuit": "{\"name\":\"Foo\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":9,\\\"col_stop\\\":12,\\\"path\\\":\\\"\\\"}\"}"
|
|
},
|
|
"value": {
|
|
"CircuitInit": {
|
|
"name": "{\"name\":\"Foo\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":9,\\\"col_stop\\\":12,\\\"path\\\":\\\"\\\"}\"}",
|
|
"members": [
|
|
{
|
|
"identifier": "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":6,\\\"line_stop\\\":6,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\"}\"}",
|
|
"expression": {
|
|
"Value": {
|
|
"Integer": [
|
|
"U32",
|
|
"1",
|
|
{
|
|
"line_start": 6,
|
|
"line_stop": 6,
|
|
"col_start": 10,
|
|
"col_stop": 14,
|
|
"path": ""
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"span": {
|
|
"line_start": 5,
|
|
"line_stop": 7,
|
|
"col_start": 21,
|
|
"col_stop": 6,
|
|
"path": ""
|
|
}
|
|
}
|
|
},
|
|
"span": {
|
|
"line_start": 5,
|
|
"line_stop": 7,
|
|
"col_start": 5,
|
|
"col_stop": 6,
|
|
"path": ""
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"Return": {
|
|
"expression": {
|
|
"Identifier": "{\"name\":\"new\",\"span\":\"{\\\"line_start\\\":9,\\\"line_stop\\\":9,\\\"col_start\\\":12,\\\"col_stop\\\":15,\\\"path\\\":\\\"\\\"}\"}"
|
|
},
|
|
"span": {
|
|
"line_start": 9,
|
|
"line_stop": 9,
|
|
"col_start": 5,
|
|
"col_stop": 15,
|
|
"path": ""
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"span": {
|
|
"line_start": 4,
|
|
"line_stop": 10,
|
|
"col_start": 26,
|
|
"col_stop": 4,
|
|
"path": ""
|
|
}
|
|
},
|
|
"span": {
|
|
"line_start": 4,
|
|
"line_stop": 10,
|
|
"col_start": 3,
|
|
"col_stop": 4,
|
|
"path": ""
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"global_consts": {},
|
|
"functions": {
|
|
"{\"name\":\"main\",\"span\":\"{\\\"line_start\\\":13,\\\"line_stop\\\":13,\\\"col_start\\\":10,\\\"col_stop\\\":14,\\\"path\\\":\\\"\\\"}\"}": {
|
|
"annotations": [],
|
|
"identifier": "{\"name\":\"main\",\"span\":\"{\\\"line_start\\\":13,\\\"line_stop\\\":13,\\\"col_start\\\":10,\\\"col_stop\\\":14,\\\"path\\\":\\\"\\\"}\"}",
|
|
"input": [],
|
|
"output": {
|
|
"Tuple": []
|
|
},
|
|
"block": {
|
|
"statements": [
|
|
{
|
|
"Definition": {
|
|
"declaration_type": "Let",
|
|
"variable_names": [
|
|
{
|
|
"mutable": false,
|
|
"identifier": "{\"name\":\"foo\",\"span\":\"{\\\"line_start\\\":14,\\\"line_stop\\\":14,\\\"col_start\\\":7,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\"}\"}",
|
|
"span": {
|
|
"line_start": 14,
|
|
"line_stop": 14,
|
|
"col_start": 7,
|
|
"col_stop": 10,
|
|
"path": ""
|
|
}
|
|
}
|
|
],
|
|
"type_": {
|
|
"Circuit": "{\"name\":\"Foo\",\"span\":\"{\\\"line_start\\\":14,\\\"line_stop\\\":14,\\\"col_start\\\":12,\\\"col_stop\\\":15,\\\"path\\\":\\\"\\\"}\"}"
|
|
},
|
|
"value": {
|
|
"Call": {
|
|
"function": {
|
|
"CircuitStaticFunctionAccess": {
|
|
"circuit": {
|
|
"Identifier": "{\"name\":\"Foo\",\"span\":\"{\\\"line_start\\\":14,\\\"line_stop\\\":14,\\\"col_start\\\":18,\\\"col_stop\\\":21,\\\"path\\\":\\\"\\\"}\"}"
|
|
},
|
|
"name": "{\"name\":\"new\",\"span\":\"{\\\"line_start\\\":14,\\\"line_stop\\\":14,\\\"col_start\\\":23,\\\"col_stop\\\":26,\\\"path\\\":\\\"\\\"}\"}",
|
|
"span": {
|
|
"line_start": 14,
|
|
"line_stop": 14,
|
|
"col_start": 18,
|
|
"col_stop": 26,
|
|
"path": ""
|
|
}
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"span": {
|
|
"line_start": 14,
|
|
"line_stop": 14,
|
|
"col_start": 18,
|
|
"col_stop": 28,
|
|
"path": ""
|
|
}
|
|
}
|
|
},
|
|
"span": {
|
|
"line_start": 14,
|
|
"line_stop": 14,
|
|
"col_start": 3,
|
|
"col_stop": 28,
|
|
"path": ""
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"span": {
|
|
"line_start": 13,
|
|
"line_stop": 15,
|
|
"col_start": 17,
|
|
"col_stop": 2,
|
|
"path": ""
|
|
}
|
|
},
|
|
"span": {
|
|
"line_start": 13,
|
|
"line_stop": 15,
|
|
"col_start": 1,
|
|
"col_stop": 2,
|
|
"path": ""
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|