mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +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`.
192 lines
6.7 KiB
JSON
192 lines
6.7 KiB
JSON
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 83,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 0
|
|
}
|
|
},
|
|
"errors": [],
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 83,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 0
|
|
}
|
|
},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"start": 0,
|
|
"end": 82,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 1
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 9,
|
|
"end": 10,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 10
|
|
},
|
|
"identifierName": "x"
|
|
},
|
|
"name": "x"
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 13,
|
|
"end": 82,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 1
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 66,
|
|
"end": 80,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 18
|
|
}
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "\n This is a\n block comment.\n ",
|
|
"start": 19,
|
|
"end": 61,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 6
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 70,
|
|
"end": 79,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 17
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 70,
|
|
"end": 71,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 9
|
|
},
|
|
"identifierName": "a"
|
|
},
|
|
"name": "a"
|
|
},
|
|
"init": {
|
|
"type": "BooleanLiteral",
|
|
"start": 74,
|
|
"end": 79,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 17
|
|
}
|
|
},
|
|
"value": false
|
|
}
|
|
}
|
|
],
|
|
"kind": "let"
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"comments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "\n This is a\n block comment.\n ",
|
|
"start": 19,
|
|
"end": 61,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 6
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|