swc/crates/swc_ecma_parser/tests/tsc/propertyAssignmentOnUnresolvedImportedSymbol.json
Donny/강동윤 4d3fcb86e4
feat(es/ast): Support import attributes proposal (#7868)
**Related issue:**

 - Closes #7179
2023-08-28 00:29:45 +00:00

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
}