mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +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`.
207 lines
4.4 KiB
JSON
207 lines
4.4 KiB
JSON
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 35,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 0
|
|
}
|
|
},
|
|
"errors": [],
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 35,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 0
|
|
}
|
|
},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 0,
|
|
"end": 18,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 18
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 6,
|
|
"end": 17,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 17
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 6,
|
|
"end": 7,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 7
|
|
},
|
|
"identifierName": "n"
|
|
},
|
|
"name": "n"
|
|
},
|
|
"init": {
|
|
"type": "StringLiteral",
|
|
"start": 10,
|
|
"end": 17,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 17
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "hello",
|
|
"raw": "\"hello\""
|
|
},
|
|
"value": "hello"
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 19,
|
|
"end": 34,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 15
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 19,
|
|
"end": 33,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 14
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 19,
|
|
"end": 30,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 11
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 19,
|
|
"end": 26,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 7
|
|
},
|
|
"identifierName": "console"
|
|
},
|
|
"name": "console"
|
|
},
|
|
"computed": false,
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 27,
|
|
"end": 30,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 11
|
|
},
|
|
"identifierName": "log"
|
|
},
|
|
"name": "log"
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 31,
|
|
"end": 32,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 13
|
|
},
|
|
"identifierName": "n"
|
|
},
|
|
"name": "n"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"comments": []
|
|
}
|