mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 22:22:34 +03:00
790a262c07
swc_babel_ast: - Rename as `swc_estree_ast`. swc_babel_compat: - Rename as `swc_estree_compat`. swc_babel_visit: - Rename as `swc_estree_visit`.
139 lines
4.0 KiB
JSON
139 lines
4.0 KiB
JSON
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 38,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 0
|
|
}
|
|
},
|
|
"errors": [],
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 38,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 0
|
|
}
|
|
},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 23,
|
|
"end": 37,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 14
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "\nA block comment.\n",
|
|
"start": 0,
|
|
"end": 22,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 2
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 27,
|
|
"end": 36,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 13
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 27,
|
|
"end": 28,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 5
|
|
},
|
|
"identifierName": "a"
|
|
},
|
|
"name": "a"
|
|
},
|
|
"init": {
|
|
"type": "BooleanLiteral",
|
|
"start": 31,
|
|
"end": 36,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 13
|
|
}
|
|
},
|
|
"value": false
|
|
}
|
|
}
|
|
],
|
|
"kind": "let"
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"comments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "\nA block comment.\n",
|
|
"start": 0,
|
|
"end": 22,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 2
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|