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

138 lines
3.0 KiB
JSON

{
"type": "Script",
"span": {
"start": 0,
"end": 34,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 0,
"end": 18,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4,
"end": 17,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4,
"end": 7,
"ctxt": 0
},
"value": "let",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 7,
"end": 12,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 9,
"end": 12,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 15,
"end": 17,
"ctxt": 0
},
"properties": []
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 19,
"end": 34,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 19,
"end": 33,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 20,
"end": 32,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 20,
"end": 26,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 20,
"end": 23,
"ctxt": 0
},
"value": "let",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 23,
"end": 26,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 24,
"end": 25,
"ctxt": 0
},
"value": 0.0
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 29,
"end": 32,
"ctxt": 0
},
"value": 100.0
}
}
}
}
],
"interpreter": null
}