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

1806 lines
62 KiB
JSON

{
"type": "Script",
"span": {
"start": 28,
"end": 745,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 34,
"end": 35,
"ctxt": 0
},
"value": "A",
"optional": false
},
"declare": false,
"span": {
"start": 28,
"end": 728,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "PrivateProperty",
"span": {
"start": 42,
"end": 51,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 42,
"end": 44,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 43,
"end": 44,
"ctxt": 0
},
"value": "a",
"optional": false
}
},
"value": {
"type": "StringLiteral",
"span": {
"start": 47,
"end": 50,
"ctxt": 0
},
"value": "a",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"computed": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"definite": false
},
{
"type": "PrivateProperty",
"span": {
"start": 56,
"end": 67,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 56,
"end": 58,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 57,
"end": 58,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 58,
"end": 66,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 60,
"end": 66,
"ctxt": 0
},
"kind": "string"
}
},
"isStatic": false,
"decorators": [],
"computed": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"definite": false
},
{
"type": "PrivateProperty",
"span": {
"start": 73,
"end": 91,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 82,
"end": 84,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 83,
"end": 84,
"ctxt": 0
},
"value": "c",
"optional": false
}
},
"value": {
"type": "StringLiteral",
"span": {
"start": 87,
"end": 90,
"ctxt": 0
},
"value": "c",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"computed": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": true,
"definite": false
},
{
"type": "PrivateProperty",
"span": {
"start": 96,
"end": 116,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 105,
"end": 107,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 106,
"end": 107,
"ctxt": 0
},
"value": "d",
"optional": false
}
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 107,
"end": 115,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 109,
"end": 115,
"ctxt": 0
},
"kind": "string"
}
},
"isStatic": false,
"decorators": [],
"computed": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": true,
"definite": false
},
{
"type": "PrivateProperty",
"span": {
"start": 122,
"end": 130,
"ctxt": 0
},
"key": {
"type": "PrivateName",
"span": {
"start": 122,
"end": 124,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 123,
"end": 124,
"ctxt": 0
},
"value": "e",
"optional": false
}
},
"value": {
"type": "StringLiteral",
"span": {
"start": 127,
"end": 129,
"ctxt": 0
},
"value": "",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"computed": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"definite": false
},
{
"type": "Constructor",
"span": {
"start": 136,
"end": 203,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 136,
"end": 147,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 150,
"end": 203,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 160,
"end": 174,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 160,
"end": 173,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 160,
"end": 167,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 160,
"end": 164,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 165,
"end": 167,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 166,
"end": 167,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 170,
"end": 173,
"ctxt": 0
},
"value": "b",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 183,
"end": 197,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 183,
"end": 196,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 183,
"end": 190,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 183,
"end": 187,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 188,
"end": 190,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 189,
"end": 190,
"ctxt": 0
},
"value": "d",
"optional": false
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 193,
"end": 196,
"ctxt": 0
},
"value": "d",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
}
]
},
"accessibility": null,
"isOptional": false
},
{
"type": "ClassMethod",
"span": {
"start": 209,
"end": 726,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 209,
"end": 213,
"ctxt": 0
},
"value": "test",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 209,
"end": 726,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 216,
"end": 726,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 226,
"end": 306,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 232,
"end": 305,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 232,
"end": 236,
"ctxt": 0
},
"value": "data",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 236,
"end": 260,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 238,
"end": 260,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 238,
"end": 244,
"ctxt": 0
},
"value": "Record",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 244,
"end": 260,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 245,
"end": 251,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 253,
"end": 259,
"ctxt": 0
},
"kind": "string"
}
]
}
}
}
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 263,
"end": 305,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 265,
"end": 266,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 268,
"end": 271,
"ctxt": 0
},
"value": "a",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 273,
"end": 274,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 276,
"end": 279,
"ctxt": 0
},
"value": "b",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 281,
"end": 282,
"ctxt": 0
},
"value": "c",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 284,
"end": 287,
"ctxt": 0
},
"value": "c",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 289,
"end": 290,
"ctxt": 0
},
"value": "d",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 292,
"end": 295,
"ctxt": 0
},
"value": "d",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 297,
"end": 298,
"ctxt": 0
},
"value": "e",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 300,
"end": 303,
"ctxt": 0
},
"value": "e",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 315,
"end": 476,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 321,
"end": 475,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 321,
"end": 468,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 335,
"end": 344,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 336,
"end": 343,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 336,
"end": 340,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 341,
"end": 343,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 342,
"end": 343,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
}
},
"value": {
"type": "Identifier",
"span": {
"start": 346,
"end": 347,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 361,
"end": 370,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 362,
"end": 369,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 362,
"end": 366,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 367,
"end": 369,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 368,
"end": 369,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
}
},
"value": {
"type": "Identifier",
"span": {
"start": 372,
"end": 373,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 387,
"end": 396,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 388,
"end": 395,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 388,
"end": 392,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 393,
"end": 395,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 394,
"end": 395,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
}
},
"value": {
"type": "Identifier",
"span": {
"start": 398,
"end": 399,
"ctxt": 0
},
"value": "c",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 413,
"end": 422,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 414,
"end": 421,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 414,
"end": 418,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 419,
"end": 421,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 420,
"end": 421,
"ctxt": 0
},
"value": "d",
"optional": false
}
}
}
},
"value": {
"type": "Identifier",
"span": {
"start": 424,
"end": 425,
"ctxt": 0
},
"value": "d",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 439,
"end": 454,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 440,
"end": 453,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 440,
"end": 447,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 440,
"end": 444,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 445,
"end": 447,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 446,
"end": 447,
"ctxt": 0
},
"value": "e",
"optional": false
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 450,
"end": 453,
"ctxt": 0
},
"value": "e",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
},
"value": {
"type": "Identifier",
"span": {
"start": 456,
"end": 457,
"ctxt": 0
},
"value": "e",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 471,
"end": 475,
"ctxt": 0
},
"value": "data",
"optional": false
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 485,
"end": 512,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 485,
"end": 511,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 485,
"end": 496,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 485,
"end": 492,
"ctxt": 0
},
"value": "console",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 493,
"end": 496,
"ctxt": 0
},
"value": "log",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 497,
"end": 498,
"ctxt": 0
},
"value": "a",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 500,
"end": 501,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 503,
"end": 504,
"ctxt": 0
},
"value": "c",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 506,
"end": 507,
"ctxt": 0
},
"value": "d",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 509,
"end": 510,
"ctxt": 0
},
"value": "e",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 522,
"end": 547,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 528,
"end": 546,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 528,
"end": 530,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 533,
"end": 546,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 533,
"end": 537,
"ctxt": 0
},
"value": "data",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 537,
"end": 546,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 538,
"end": 545,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 538,
"end": 542,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 543,
"end": 545,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 544,
"end": 545,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 556,
"end": 581,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 562,
"end": 580,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 562,
"end": 564,
"ctxt": 0
},
"value": "b1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 567,
"end": 580,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 567,
"end": 571,
"ctxt": 0
},
"value": "data",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 571,
"end": 580,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 572,
"end": 579,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 572,
"end": 576,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 577,
"end": 579,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 578,
"end": 579,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 590,
"end": 615,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 596,
"end": 614,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 596,
"end": 598,
"ctxt": 0
},
"value": "c1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 601,
"end": 614,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 601,
"end": 605,
"ctxt": 0
},
"value": "data",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 605,
"end": 614,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 606,
"end": 613,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 606,
"end": 610,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 611,
"end": 613,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 612,
"end": 613,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 624,
"end": 649,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 630,
"end": 648,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 630,
"end": 632,
"ctxt": 0
},
"value": "d1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 635,
"end": 648,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 635,
"end": 639,
"ctxt": 0
},
"value": "data",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 639,
"end": 648,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 640,
"end": 647,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 640,
"end": 644,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 645,
"end": 647,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 646,
"end": 647,
"ctxt": 0
},
"value": "d",
"optional": false
}
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 658,
"end": 683,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 664,
"end": 682,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 664,
"end": 666,
"ctxt": 0
},
"value": "e1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 669,
"end": 682,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 669,
"end": 673,
"ctxt": 0
},
"value": "data",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 673,
"end": 682,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 674,
"end": 681,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 674,
"end": 678,
"ctxt": 0
}
},
"property": {
"type": "PrivateName",
"span": {
"start": 679,
"end": 681,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 680,
"end": 681,
"ctxt": 0
},
"value": "e",
"optional": false
}
}
}
}
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 692,
"end": 720,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 692,
"end": 719,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 692,
"end": 703,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 692,
"end": 699,
"ctxt": 0
},
"value": "console",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 700,
"end": 703,
"ctxt": 0
},
"value": "log",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 704,
"end": 706,
"ctxt": 0
},
"value": "a1",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 708,
"end": 710,
"ctxt": 0
},
"value": "b1",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 712,
"end": 714,
"ctxt": 0
},
"value": "c1",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 716,
"end": 718,
"ctxt": 0
},
"value": "d1",
"optional": false
}
}
],
"typeArguments": null
}
}
]
},
"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": 730,
"end": 745,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 730,
"end": 744,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 730,
"end": 742,
"ctxt": 0
},
"object": {
"type": "NewExpression",
"span": {
"start": 730,
"end": 737,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 734,
"end": 735,
"ctxt": 0
},
"value": "A",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "Identifier",
"span": {
"start": 738,
"end": 742,
"ctxt": 0
},
"value": "test",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
}
],
"interpreter": null
}