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

240 lines
5.4 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 15,
"end": 98,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 15,
"end": 31,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 19,
"end": 30,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 19,
"end": 25,
"ctxt": 0
},
"value": "Symbol",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 25,
"end": 30,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 27,
"end": 30,
"ctxt": 0
},
"kind": "any"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 39,
"end": 40,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 33,
"end": 72,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 47,
"end": 70,
"ctxt": 0
},
"key": {
"type": "Computed",
"span": {
"start": 47,
"end": 64,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 48,
"end": 63,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 48,
"end": 54,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 55,
"end": 63,
"ctxt": 0
},
"value": "iterator",
"optional": false
}
}
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 47,
"end": 70,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 67,
"end": 70,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ExpressionStatement",
"span": {
"start": 74,
"end": 98,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 74,
"end": 98,
"ctxt": 0
},
"object": {
"type": "ParenthesisExpression",
"span": {
"start": 74,
"end": 81,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 75,
"end": 80,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 79,
"end": 80,
"ctxt": 0
},
"value": "C",
"optional": false
},
"arguments": null,
"typeArguments": null
}
},
"property": {
"type": "Computed",
"span": {
"start": 81,
"end": 98,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 82,
"end": 97,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 82,
"end": 88,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 89,
"end": 97,
"ctxt": 0
},
"value": "iterator",
"optional": false
}
}
}
}
}
],
"interpreter": null
}