mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 00:23:10 +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`.
266 lines
9.5 KiB
JSON
266 lines
9.5 KiB
JSON
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 45,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 0
|
|
}
|
|
},
|
|
"errors": [],
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 45,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 0
|
|
}
|
|
},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 0,
|
|
"end": 16,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 16
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 4,
|
|
"end": 15,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 15
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 4,
|
|
"end": 5,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 5
|
|
},
|
|
"identifierName": "a"
|
|
},
|
|
"name": "a"
|
|
},
|
|
"init": {
|
|
"type": "StringLiteral",
|
|
"start": 8,
|
|
"end": 15,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 15
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "hello",
|
|
"raw": "\"hello\""
|
|
},
|
|
"value": "hello"
|
|
}
|
|
}
|
|
],
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 17,
|
|
"end": 44,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 27
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 17,
|
|
"end": 43,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 26
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 17,
|
|
"end": 28,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 11
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 17,
|
|
"end": 24,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 7
|
|
},
|
|
"identifierName": "console"
|
|
},
|
|
"name": "console"
|
|
},
|
|
"computed": false,
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 25,
|
|
"end": 28,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 11
|
|
},
|
|
"identifierName": "log"
|
|
},
|
|
"name": "log"
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "TemplateLiteral",
|
|
"start": 29,
|
|
"end": 42,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 25
|
|
}
|
|
},
|
|
"expressions": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 32,
|
|
"end": 33,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 16
|
|
},
|
|
"identifierName": "a"
|
|
},
|
|
"name": "a"
|
|
}
|
|
],
|
|
"quasis": [
|
|
{
|
|
"type": "TemplateElement",
|
|
"start": 30,
|
|
"end": 30,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 13
|
|
}
|
|
},
|
|
"value": {
|
|
"raw": "",
|
|
"cooked": ""
|
|
},
|
|
"tail": false
|
|
},
|
|
{
|
|
"type": "TemplateElement",
|
|
"start": 34,
|
|
"end": 41,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 24
|
|
}
|
|
},
|
|
"value": {
|
|
"raw": " world!",
|
|
"cooked": " world!"
|
|
},
|
|
"tail": true
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"comments": []
|
|
}
|