swc/crates/swc_ecma_parser/tests/tsc/propertyAssignmentOnUnresolvedImportedSymbol.json

117 lines
2.5 KiB
JSON
Raw Normal View History

{
"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,
"asserts": 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
}