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

161 lines
3.3 KiB
JSON

{
"type": "Module",
"span": {
"start": 75,
"end": 168,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 75,
"end": 95,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 82,
"end": 95,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 86,
"end": 95,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 86,
"end": 90,
"ctxt": 0
},
"value": "hurk",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 93,
"end": 95,
"ctxt": 0
},
"properties": []
},
"definite": false
}
]
}
},
{
"type": "ImportDeclaration",
"span": {
"start": 122,
"end": 151,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 131,
"end": 135,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 131,
"end": 135,
"ctxt": 0
},
"value": "hurk",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 143,
"end": 151,
"ctxt": 0
},
"value": "./mod1",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"typeOnly": false,
"asserts": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 152,
"end": 168,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 152,
"end": 168,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 152,
"end": 164,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 152,
"end": 156,
"ctxt": 0
},
"value": "hurk",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 157,
"end": 164,
"ctxt": 0
},
"value": "expando",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 167,
"end": 168,
"ctxt": 0
},
"value": 4.0
}
}
}
],
"interpreter": null
}