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

668 lines
15 KiB
JSON

{
"type": "Script",
"span": {
"start": 142,
"end": 428,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 142,
"end": 164,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 148,
"end": 163,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 148,
"end": 152,
"ctxt": 0
},
"value": "_sym",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 155,
"end": 163,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 155,
"end": 161,
"ctxt": 0
},
"value": "Symbol",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 165,
"end": 192,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 171,
"end": 191,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 171,
"end": 175,
"ctxt": 0
},
"value": "_str",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "StringLiteral",
"span": {
"start": 178,
"end": 191,
"ctxt": 0
},
"value": "my-fake-sym",
"raw": "\"my-fake-sym\""
},
"definite": false
}
]
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 203,
"end": 204,
"ctxt": 0
},
"value": "F",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 194,
"end": 210,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 207,
"end": 210,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 211,
"end": 226,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 211,
"end": 225,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 211,
"end": 218,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 211,
"end": 212,
"ctxt": 0
},
"value": "F",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 212,
"end": 218,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 213,
"end": 217,
"ctxt": 0
},
"value": "_sym",
"optional": false
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 221,
"end": 225,
"ctxt": 0
},
"value": "ok",
"raw": "\"ok\""
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 227,
"end": 242,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 227,
"end": 241,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 227,
"end": 234,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 227,
"end": 228,
"ctxt": 0
},
"value": "F",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 228,
"end": 234,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 229,
"end": 233,
"ctxt": 0
},
"value": "_str",
"optional": false
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 237,
"end": 241,
"ctxt": 0
},
"value": "ok",
"raw": "\"ok\""
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 243,
"end": 264,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 243,
"end": 263,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 243,
"end": 259,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 243,
"end": 257,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 243,
"end": 249,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 250,
"end": 257,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 258,
"end": 259,
"ctxt": 0
},
"value": "F",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 262,
"end": 263,
"ctxt": 0
},
"value": "F",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 265,
"end": 289,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 265,
"end": 288,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 265,
"end": 281,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 265,
"end": 279,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 265,
"end": 271,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 272,
"end": 279,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 280,
"end": 281,
"ctxt": 0
},
"value": "S",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 284,
"end": 288,
"ctxt": 0
},
"value": "_sym",
"optional": false
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 313,
"end": 378,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 319,
"end": 377,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 319,
"end": 320,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 323,
"end": 377,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 323,
"end": 330,
"ctxt": 0
},
"value": "require",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 331,
"end": 376,
"ctxt": 0
},
"value": "./lateBoundAssignmentDeclarationSupport7.js",
"raw": "\"./lateBoundAssignmentDeclarationSupport7.js\""
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 379,
"end": 408,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 385,
"end": 407,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 385,
"end": 386,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 389,
"end": 407,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 389,
"end": 392,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 389,
"end": 390,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 391,
"end": 392,
"ctxt": 0
},
"value": "F",
"optional": false
}
},
"property": {
"type": "Computed",
"span": {
"start": 392,
"end": 407,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 393,
"end": 406,
"ctxt": 0
},
"value": "my-fake-sym",
"raw": "\"my-fake-sym\""
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 409,
"end": 428,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 415,
"end": 427,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 415,
"end": 416,
"ctxt": 0
},
"value": "z",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 419,
"end": 427,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 419,
"end": 422,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 419,
"end": 420,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 421,
"end": 422,
"ctxt": 0
},
"value": "F",
"optional": false
}
},
"property": {
"type": "Computed",
"span": {
"start": 422,
"end": 427,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 423,
"end": 426,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 423,
"end": 424,
"ctxt": 0
},
"value": "x",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 425,
"end": 426,
"ctxt": 0
},
"value": "S",
"optional": false
}
}
}
},
"definite": false
}
]
}
],
"interpreter": null
}