mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +03:00
4d3fcb86e4
**Related issue:** - Closes #7179
117 lines
2.5 KiB
JSON
117 lines
2.5 KiB
JSON
{
|
|
"type": "Module",
|
|
"span": {
|
|
"start": 80,
|
|
"end": 122,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"span": {
|
|
"start": 80,
|
|
"end": 104,
|
|
"ctxt": 0
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ImportDefaultSpecifier",
|
|
"span": {
|
|
"start": 87,
|
|
"end": 88,
|
|
"ctxt": 0
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 87,
|
|
"end": 88,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 94,
|
|
"end": 104,
|
|
"ctxt": 0
|
|
},
|
|
"value": "arglebaz",
|
|
"raw": "'arglebaz'"
|
|
},
|
|
"typeOnly": false,
|
|
"with": null
|
|
},
|
|
{
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 105,
|
|
"end": 122,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 111,
|
|
"end": 120,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"span": {
|
|
"start": 111,
|
|
"end": 120,
|
|
"ctxt": 0
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 111,
|
|
"end": 116,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 111,
|
|
"end": 112,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 113,
|
|
"end": 116,
|
|
"ctxt": 0
|
|
},
|
|
"value": "bar",
|
|
"optional": false
|
|
}
|
|
},
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 119,
|
|
"end": 120,
|
|
"ctxt": 0
|
|
},
|
|
"value": 1.0,
|
|
"raw": "1"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|