156 lines
2.8 KiB
JSON
Executable File

{
"type": "File",
"program": {
"type": "Program",
"body": [
{
"type": "IfStatement",
"test": {
"type": "Identifier",
"name": "a",
"range": [
25,
26
],
"loc": {
"start": {
"line": 2,
"column": 15
},
"end": {
"line": 2,
"column": 16
}
},
"leadingComments": [
{
"type": "CommentBlock",
"value": " bar ",
"range": [
14,
23
],
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 13
}
}
}
]
},
"consequent": {
"type": "BlockStatement",
"body": [],
"range": [
28,
30
],
"loc": {
"start": {
"line": 2,
"column": 18
},
"end": {
"line": 2,
"column": 20
}
}
},
"alternate": null,
"range": [
10,
30
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 20
}
},
"leadingComments": [
{
"type": "CommentBlock",
"value": " foo ",
"range": [
0,
9
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 9
}
}
}
]
}
],
"sourceType": "script",
"range": [
0,
30
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 2,
"column": 20
}
}
},
"comments": [
{
"type": "CommentBlock",
"value": " foo ",
"range": [
0,
9
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 9
}
}
},
{
"type": "CommentBlock",
"value": " bar ",
"range": [
14,
23
],
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 13
}
}
}
]
}