mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +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`.
389 lines
16 KiB
JSON
389 lines
16 KiB
JSON
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 105,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 0
|
|
}
|
|
},
|
|
"errors": [],
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 105,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 0
|
|
}
|
|
},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 0,
|
|
"end": 73,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 2
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 4,
|
|
"end": 72,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 1
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 4,
|
|
"end": 5,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 5
|
|
},
|
|
"identifierName": "a"
|
|
},
|
|
"name": "a"
|
|
},
|
|
"init": {
|
|
"type": "ArrayExpression",
|
|
"start": 8,
|
|
"end": 72,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 1
|
|
}
|
|
},
|
|
"elements": [
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 14,
|
|
"end": 24,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 14
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "Hydrogen",
|
|
"raw": "'Hydrogen'"
|
|
},
|
|
"value": "Hydrogen"
|
|
},
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 30,
|
|
"end": 38,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 12
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "Helium",
|
|
"raw": "'Helium'"
|
|
},
|
|
"value": "Helium"
|
|
},
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 44,
|
|
"end": 53,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 13
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "Lithium",
|
|
"raw": "'Lithium'"
|
|
},
|
|
"value": "Lithium"
|
|
},
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 59,
|
|
"end": 70,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 15
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "Beryllium",
|
|
"raw": "'Beryllium'"
|
|
},
|
|
"value": "Beryllium"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "var"
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 74,
|
|
"end": 104,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 30
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 78,
|
|
"end": 103,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 29
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 78,
|
|
"end": 80,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 6
|
|
},
|
|
"identifierName": "a3"
|
|
},
|
|
"name": "a3"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start": 83,
|
|
"end": 103,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 29
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 83,
|
|
"end": 88,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 14
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 83,
|
|
"end": 84,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 10
|
|
},
|
|
"identifierName": "a"
|
|
},
|
|
"name": "a"
|
|
},
|
|
"computed": false,
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 85,
|
|
"end": 88,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 14
|
|
},
|
|
"identifierName": "map"
|
|
},
|
|
"name": "map"
|
|
}
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 89,
|
|
"end": 102,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 28
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 89,
|
|
"end": 90,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 16
|
|
},
|
|
"identifierName": "s"
|
|
},
|
|
"name": "s"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "MemberExpression",
|
|
"start": 94,
|
|
"end": 102,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 28
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 94,
|
|
"end": 95,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 21
|
|
},
|
|
"identifierName": "s"
|
|
},
|
|
"name": "s"
|
|
},
|
|
"computed": false,
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 96,
|
|
"end": 102,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 28
|
|
},
|
|
"identifierName": "length"
|
|
},
|
|
"name": "length"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "var"
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"comments": []
|
|
}
|