mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
6896a83d54
swc_ecma_codegen: - Emit pending semi on `~`. (#2091)
165 lines
5.8 KiB
JSON
165 lines
5.8 KiB
JSON
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 25,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 0
|
|
}
|
|
},
|
|
"errors": [],
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 25,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 0
|
|
}
|
|
},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 0,
|
|
"end": 24,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 24
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 6,
|
|
"end": 23,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 23
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 6,
|
|
"end": 9,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 9
|
|
},
|
|
"identifierName": "arr"
|
|
},
|
|
"name": "arr"
|
|
},
|
|
"init": {
|
|
"type": "ArrayExpression",
|
|
"start": 12,
|
|
"end": 23,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 23
|
|
}
|
|
},
|
|
"elements": [
|
|
{
|
|
"type": "NumericLiteral",
|
|
"start": 14,
|
|
"end": 15,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 15
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 1,
|
|
"raw": "1"
|
|
},
|
|
"value": 1
|
|
},
|
|
{
|
|
"type": "NumericLiteral",
|
|
"start": 17,
|
|
"end": 18,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 18
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 2,
|
|
"raw": "2"
|
|
},
|
|
"value": 2
|
|
},
|
|
{
|
|
"type": "NumericLiteral",
|
|
"start": 20,
|
|
"end": 21,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 21
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 3,
|
|
"raw": "3"
|
|
},
|
|
"value": 3
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"comments": []
|
|
}
|