swc/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport4.json
2022-03-22 07:54:08 +00:00

926 lines
21 KiB
JSON

{
"type": "Script",
"span": {
"start": 167,
"end": 569,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 167,
"end": 189,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 173,
"end": 188,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 173,
"end": 177,
"ctxt": 0
},
"value": "_sym",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 180,
"end": 188,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 180,
"end": 186,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 190,
"end": 217,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 196,
"end": 216,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 196,
"end": 200,
"ctxt": 0
},
"value": "_str",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "StringLiteral",
"span": {
"start": 203,
"end": 216,
"ctxt": 0
},
"value": "my-fake-sym",
"raw": "\"my-fake-sym\""
},
"definite": false
}
]
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 228,
"end": 229,
"ctxt": 0
},
"value": "F",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 219,
"end": 235,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 232,
"end": 235,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 236,
"end": 261,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 236,
"end": 260,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 236,
"end": 253,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 236,
"end": 247,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 236,
"end": 237,
"ctxt": 0
},
"value": "F",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 238,
"end": 247,
"ctxt": 0
},
"value": "prototype",
"optional": false
}
},
"property": {
"type": "Computed",
"span": {
"start": 247,
"end": 253,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 248,
"end": 252,
"ctxt": 0
},
"value": "_sym",
"optional": false
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 256,
"end": 260,
"ctxt": 0
},
"value": "ok",
"raw": "\"ok\""
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 262,
"end": 287,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 262,
"end": 286,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 262,
"end": 279,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 262,
"end": 273,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 262,
"end": 263,
"ctxt": 0
},
"value": "F",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 264,
"end": 273,
"ctxt": 0
},
"value": "prototype",
"optional": false
}
},
"property": {
"type": "Computed",
"span": {
"start": 273,
"end": 279,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 274,
"end": 278,
"ctxt": 0
},
"value": "_str",
"optional": false
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 282,
"end": 286,
"ctxt": 0
},
"value": "ok",
"raw": "\"ok\""
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 288,
"end": 310,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 294,
"end": 309,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 294,
"end": 298,
"ctxt": 0
},
"value": "inst",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 302,
"end": 309,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 306,
"end": 307,
"ctxt": 0
},
"value": "F",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 311,
"end": 333,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 317,
"end": 332,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 317,
"end": 319,
"ctxt": 0
},
"value": "_y",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 322,
"end": 332,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 322,
"end": 326,
"ctxt": 0
},
"value": "inst",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 326,
"end": 332,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 327,
"end": 331,
"ctxt": 0
},
"value": "_str",
"optional": false
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 334,
"end": 356,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 340,
"end": 355,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 340,
"end": 342,
"ctxt": 0
},
"value": "_z",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 345,
"end": 355,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 345,
"end": 349,
"ctxt": 0
},
"value": "inst",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 349,
"end": 355,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 350,
"end": 354,
"ctxt": 0
},
"value": "_sym",
"optional": false
}
}
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 357,
"end": 378,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 357,
"end": 377,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 357,
"end": 373,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 357,
"end": 371,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 357,
"end": 363,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 364,
"end": 371,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 372,
"end": 373,
"ctxt": 0
},
"value": "F",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 376,
"end": 377,
"ctxt": 0
},
"value": "F",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 379,
"end": 403,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 379,
"end": 402,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 379,
"end": 395,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 379,
"end": 393,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 379,
"end": 385,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 386,
"end": 393,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 394,
"end": 395,
"ctxt": 0
},
"value": "S",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 398,
"end": 402,
"ctxt": 0
},
"value": "_sym",
"optional": false
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 427,
"end": 492,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 433,
"end": 491,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 433,
"end": 434,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 437,
"end": 491,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 437,
"end": 444,
"ctxt": 0
},
"value": "require",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 445,
"end": 490,
"ctxt": 0
},
"value": "./lateBoundAssignmentDeclarationSupport4.js",
"raw": "\"./lateBoundAssignmentDeclarationSupport4.js\""
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 493,
"end": 517,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 499,
"end": 516,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 499,
"end": 503,
"ctxt": 0
},
"value": "inst",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 507,
"end": 516,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 511,
"end": 514,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 511,
"end": 512,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 513,
"end": 514,
"ctxt": 0
},
"value": "F",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 518,
"end": 548,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 524,
"end": 547,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 524,
"end": 525,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 528,
"end": 547,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 528,
"end": 532,
"ctxt": 0
},
"value": "inst",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 532,
"end": 547,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 533,
"end": 546,
"ctxt": 0
},
"value": "my-fake-sym",
"raw": "\"my-fake-sym\""
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 549,
"end": 569,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 555,
"end": 568,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 555,
"end": 556,
"ctxt": 0
},
"value": "z",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 559,
"end": 568,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 559,
"end": 563,
"ctxt": 0
},
"value": "inst",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 563,
"end": 568,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 564,
"end": 567,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 564,
"end": 565,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 566,
"end": 567,
"ctxt": 0
},
"value": "S",
"optional": false
}
}
}
},
"definite": false
}
]
}
],
"interpreter": null
}