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

3599 lines
97 KiB
JSON

{
"type": "Script",
"span": {
"start": 98,
"end": 1572,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 98,
"end": 166,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 102,
"end": 165,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 102,
"end": 104,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 107,
"end": 165,
"ctxt": 0
},
"object": {
"type": "ArrayExpression",
"span": {
"start": 107,
"end": 162,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 108,
"end": 116,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 110,
"end": 111,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 113,
"end": 114,
"ctxt": 0
},
"value": 0.0
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 118,
"end": 134,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 120,
"end": 121,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 123,
"end": 124,
"ctxt": 0
},
"value": 1.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 126,
"end": 127,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 129,
"end": 132,
"ctxt": 0
},
"value": "x",
"raw": "\"x\""
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 136,
"end": 161,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 138,
"end": 139,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 141,
"end": 142,
"ctxt": 0
},
"value": 2.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 144,
"end": 145,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 147,
"end": 150,
"ctxt": 0
},
"value": "y",
"raw": "\"y\""
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 152,
"end": 153,
"ctxt": 0
},
"value": "c",
"optional": false
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 155,
"end": 159,
"ctxt": 0
},
"value": true
}
}
]
}
}
]
},
"property": {
"type": "Computed",
"span": {
"start": 162,
"end": 165,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 163,
"end": 164,
"ctxt": 0
},
"value": 0.0
}
}
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 167,
"end": 172,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 167,
"end": 171,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 167,
"end": 169,
"ctxt": 0
},
"value": "a1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 170,
"end": 171,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 184,
"end": 189,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 184,
"end": 188,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 184,
"end": 186,
"ctxt": 0
},
"value": "a1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 187,
"end": 188,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 213,
"end": 218,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 213,
"end": 217,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 213,
"end": 215,
"ctxt": 0
},
"value": "a1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 216,
"end": 217,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 243,
"end": 257,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 243,
"end": 256,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 243,
"end": 245,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 248,
"end": 256,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 250,
"end": 251,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 253,
"end": 254,
"ctxt": 0
},
"value": 1.0
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 258,
"end": 278,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 258,
"end": 277,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 258,
"end": 260,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 263,
"end": 277,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 265,
"end": 266,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 268,
"end": 269,
"ctxt": 0
},
"value": 0.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 271,
"end": 272,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 274,
"end": 275,
"ctxt": 0
},
"value": 0.0
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 289,
"end": 305,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 289,
"end": 304,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 289,
"end": 291,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 294,
"end": 304,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 296,
"end": 297,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 299,
"end": 302,
"ctxt": 0
},
"value": "y",
"raw": "\"y\""
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 316,
"end": 333,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 316,
"end": 332,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 316,
"end": 318,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 321,
"end": 332,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 323,
"end": 324,
"ctxt": 0
},
"value": "c",
"optional": false
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 326,
"end": 330,
"ctxt": 0
},
"value": true
}
}
]
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 345,
"end": 392,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 349,
"end": 391,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 349,
"end": 351,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 354,
"end": 391,
"ctxt": 0
},
"object": {
"type": "ArrayExpression",
"span": {
"start": 354,
"end": 388,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 355,
"end": 369,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 357,
"end": 358,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 360,
"end": 361,
"ctxt": 0
},
"value": 1.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 363,
"end": 364,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 366,
"end": 367,
"ctxt": 0
},
"value": 2.0
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 371,
"end": 383,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 373,
"end": 374,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 376,
"end": 381,
"ctxt": 0
},
"value": "abc",
"raw": "\"abc\""
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 385,
"end": 387,
"ctxt": 0
},
"properties": []
}
}
]
},
"property": {
"type": "Computed",
"span": {
"start": 388,
"end": 391,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 389,
"end": 390,
"ctxt": 0
},
"value": 0.0
}
}
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 393,
"end": 398,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 393,
"end": 397,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 393,
"end": 395,
"ctxt": 0
},
"value": "a2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 396,
"end": 397,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 431,
"end": 436,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 431,
"end": 435,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 431,
"end": 433,
"ctxt": 0
},
"value": "a2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 434,
"end": 435,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 460,
"end": 482,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 460,
"end": 481,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 460,
"end": 462,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 465,
"end": 481,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 467,
"end": 468,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 470,
"end": 472,
"ctxt": 0
},
"value": 10.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 474,
"end": 475,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 477,
"end": 479,
"ctxt": 0
},
"value": 20.0
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 483,
"end": 501,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 483,
"end": 500,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 483,
"end": 485,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 488,
"end": 500,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 490,
"end": 491,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 493,
"end": 498,
"ctxt": 0
},
"value": "def",
"raw": "\"def\""
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 502,
"end": 510,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 502,
"end": 509,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 502,
"end": 504,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 507,
"end": 509,
"ctxt": 0
},
"properties": []
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 511,
"end": 536,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 511,
"end": 535,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 511,
"end": 513,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 516,
"end": 535,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 518,
"end": 519,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 521,
"end": 526,
"ctxt": 0
},
"value": "def",
"raw": "\"def\""
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 528,
"end": 529,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 531,
"end": 533,
"ctxt": 0
},
"value": 20.0
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 547,
"end": 561,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 547,
"end": 560,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 547,
"end": 549,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 552,
"end": 560,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 554,
"end": 555,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 557,
"end": 558,
"ctxt": 0
},
"value": 1.0
}
}
]
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 630,
"end": 698,
"ctxt": 0
},
"kind": "let",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 642,
"end": 697,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 642,
"end": 644,
"ctxt": 0
},
"value": "b1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 644,
"end": 697,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 646,
"end": 697,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 646,
"end": 670,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 648,
"end": 658,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 648,
"end": 649,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 649,
"end": 657,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 651,
"end": 657,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 659,
"end": 668,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 659,
"end": 660,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 660,
"end": 668,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 662,
"end": 668,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
},
{
"type": "TsTypeLiteral",
"span": {
"start": 673,
"end": 697,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 675,
"end": 685,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 675,
"end": 676,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 676,
"end": 684,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 678,
"end": 684,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 686,
"end": 695,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 686,
"end": 687,
"ctxt": 0
},
"value": "c",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 687,
"end": 695,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 689,
"end": 695,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 699,
"end": 725,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 703,
"end": 724,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 703,
"end": 705,
"ctxt": 0
},
"value": "b2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 708,
"end": 724,
"ctxt": 0
},
"properties": [
{
"type": "SpreadElement",
"spread": {
"start": 710,
"end": 713,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 713,
"end": 715,
"ctxt": 0
},
"value": "b1",
"optional": false
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 717,
"end": 718,
"ctxt": 0
},
"value": "z",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 720,
"end": 722,
"ctxt": 0
},
"value": 55.0
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 726,
"end": 745,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 730,
"end": 744,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 730,
"end": 732,
"ctxt": 0
},
"value": "b3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 735,
"end": 744,
"ctxt": 0
},
"properties": [
{
"type": "SpreadElement",
"spread": {
"start": 737,
"end": 740,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 740,
"end": 742,
"ctxt": 0
},
"value": "b2",
"optional": false
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 867,
"end": 931,
"ctxt": 0
},
"kind": "let",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 879,
"end": 930,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 879,
"end": 883,
"ctxt": 0
},
"value": "opts",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 883,
"end": 930,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 885,
"end": 930,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 887,
"end": 900,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 887,
"end": 890,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 891,
"end": 899,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 893,
"end": 899,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 901,
"end": 914,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 901,
"end": 904,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 905,
"end": 913,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 907,
"end": 913,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 915,
"end": 928,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 915,
"end": 918,
"ctxt": 0
},
"value": "baz",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 919,
"end": 928,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 921,
"end": 928,
"ctxt": 0
},
"kind": "boolean"
}
},
"typeParams": null
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 932,
"end": 959,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 936,
"end": 958,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 936,
"end": 938,
"ctxt": 0
},
"value": "c1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ConditionalExpression",
"span": {
"start": 941,
"end": 958,
"ctxt": 0
},
"test": {
"type": "UnaryExpression",
"span": {
"start": 941,
"end": 946,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 942,
"end": 946,
"ctxt": 0
},
"value": true
}
},
"consequent": {
"type": "ObjectExpression",
"span": {
"start": 949,
"end": 951,
"ctxt": 0
},
"properties": []
},
"alternate": {
"type": "Identifier",
"span": {
"start": 954,
"end": 958,
"ctxt": 0
},
"value": "opts",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 960,
"end": 987,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 964,
"end": 986,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 964,
"end": 966,
"ctxt": 0
},
"value": "c2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ConditionalExpression",
"span": {
"start": 969,
"end": 986,
"ctxt": 0
},
"test": {
"type": "UnaryExpression",
"span": {
"start": 969,
"end": 974,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 970,
"end": 974,
"ctxt": 0
},
"value": true
}
},
"consequent": {
"type": "Identifier",
"span": {
"start": 977,
"end": 981,
"ctxt": 0
},
"value": "opts",
"optional": false
},
"alternate": {
"type": "ObjectExpression",
"span": {
"start": 984,
"end": 986,
"ctxt": 0
},
"properties": []
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 988,
"end": 1025,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 992,
"end": 1024,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 992,
"end": 994,
"ctxt": 0
},
"value": "c3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ConditionalExpression",
"span": {
"start": 997,
"end": 1024,
"ctxt": 0
},
"test": {
"type": "UnaryExpression",
"span": {
"start": 997,
"end": 1002,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 998,
"end": 1002,
"ctxt": 0
},
"value": true
}
},
"consequent": {
"type": "ObjectExpression",
"span": {
"start": 1005,
"end": 1019,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1007,
"end": 1008,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1010,
"end": 1011,
"ctxt": 0
},
"value": 0.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1013,
"end": 1014,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1016,
"end": 1017,
"ctxt": 0
},
"value": 0.0
}
}
]
},
"alternate": {
"type": "ObjectExpression",
"span": {
"start": 1022,
"end": 1024,
"ctxt": 0
},
"properties": []
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1026,
"end": 1063,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1030,
"end": 1062,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1030,
"end": 1032,
"ctxt": 0
},
"value": "c4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ConditionalExpression",
"span": {
"start": 1035,
"end": 1062,
"ctxt": 0
},
"test": {
"type": "UnaryExpression",
"span": {
"start": 1035,
"end": 1040,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 1036,
"end": 1040,
"ctxt": 0
},
"value": true
}
},
"consequent": {
"type": "ObjectExpression",
"span": {
"start": 1043,
"end": 1045,
"ctxt": 0
},
"properties": []
},
"alternate": {
"type": "ObjectExpression",
"span": {
"start": 1048,
"end": 1062,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1050,
"end": 1051,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1053,
"end": 1054,
"ctxt": 0
},
"value": 0.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1056,
"end": 1057,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1059,
"end": 1060,
"ctxt": 0
},
"value": 0.0
}
}
]
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1111,
"end": 1211,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1115,
"end": 1210,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1115,
"end": 1117,
"ctxt": 0
},
"value": "d1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 1120,
"end": 1210,
"ctxt": 0
},
"object": {
"type": "ArrayExpression",
"span": {
"start": 1120,
"end": 1207,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1121,
"end": 1155,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1123,
"end": 1127,
"ctxt": 0
},
"value": "kind",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1129,
"end": 1132,
"ctxt": 0
},
"value": "a",
"raw": "'a'"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1134,
"end": 1137,
"ctxt": 0
},
"value": "pos",
"optional": false
},
"value": {
"type": "ObjectExpression",
"span": {
"start": 1139,
"end": 1153,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1141,
"end": 1142,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1144,
"end": 1145,
"ctxt": 0
},
"value": 0.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1147,
"end": 1148,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1150,
"end": 1151,
"ctxt": 0
},
"value": 0.0
}
}
]
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1157,
"end": 1206,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1159,
"end": 1163,
"ctxt": 0
},
"value": "kind",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1165,
"end": 1168,
"ctxt": 0
},
"value": "b",
"raw": "'b'"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1170,
"end": 1173,
"ctxt": 0
},
"value": "pos",
"optional": false
},
"value": {
"type": "ConditionalExpression",
"span": {
"start": 1175,
"end": 1204,
"ctxt": 0
},
"test": {
"type": "UnaryExpression",
"span": {
"start": 1175,
"end": 1180,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 1176,
"end": 1180,
"ctxt": 0
},
"value": true
}
},
"consequent": {
"type": "ObjectExpression",
"span": {
"start": 1183,
"end": 1193,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1185,
"end": 1186,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1188,
"end": 1191,
"ctxt": 0
},
"value": "x",
"raw": "\"x\""
}
}
]
},
"alternate": {
"type": "ObjectExpression",
"span": {
"start": 1196,
"end": 1204,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1198,
"end": 1199,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1201,
"end": 1202,
"ctxt": 0
},
"value": 0.0
}
}
]
}
}
}
]
}
}
]
},
"property": {
"type": "Computed",
"span": {
"start": 1207,
"end": 1210,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1208,
"end": 1209,
"ctxt": 0
},
"value": 0.0
}
}
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 1212,
"end": 1220,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1212,
"end": 1219,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1212,
"end": 1214,
"ctxt": 0
},
"value": "d1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1215,
"end": 1219,
"ctxt": 0
},
"value": "kind",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1221,
"end": 1228,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1221,
"end": 1227,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1221,
"end": 1223,
"ctxt": 0
},
"value": "d1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1224,
"end": 1227,
"ctxt": 0
},
"value": "pos",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1229,
"end": 1238,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1229,
"end": 1237,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 1229,
"end": 1235,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1229,
"end": 1231,
"ctxt": 0
},
"value": "d1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1232,
"end": 1235,
"ctxt": 0
},
"value": "pos",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1236,
"end": 1237,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1239,
"end": 1248,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1239,
"end": 1247,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 1239,
"end": 1245,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1239,
"end": 1241,
"ctxt": 0
},
"value": "d1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1242,
"end": 1245,
"ctxt": 0
},
"value": "pos",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1246,
"end": 1247,
"ctxt": 0
},
"value": "y",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1249,
"end": 1258,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1249,
"end": 1257,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 1249,
"end": 1255,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1249,
"end": 1251,
"ctxt": 0
},
"value": "d1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1252,
"end": 1255,
"ctxt": 0
},
"value": "pos",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1256,
"end": 1257,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1259,
"end": 1268,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1259,
"end": 1267,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 1259,
"end": 1265,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1259,
"end": 1261,
"ctxt": 0
},
"value": "d1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1262,
"end": 1265,
"ctxt": 0
},
"value": "pos",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1266,
"end": 1267,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1287,
"end": 1288,
"ctxt": 0
},
"value": "f",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 1292,
"end": 1305,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "RestElement",
"span": {
"start": 1292,
"end": 1305,
"ctxt": 0
},
"rest": {
"start": 1292,
"end": 1295,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1295,
"end": 1300,
"ctxt": 0
},
"value": "items",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1300,
"end": 1305,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 1302,
"end": 1305,
"ctxt": 0
},
"elemType": {
"type": "TsTypeReference",
"span": {
"start": 1302,
"end": 1303,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1302,
"end": 1303,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 1270,
"end": 1310,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1288,
"end": 1291,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1289,
"end": 1290,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1289,
"end": 1290,
"ctxt": 0
},
"value": "T",
"optional": false
},
"constraint": null,
"default": null
}
]
},
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 1306,
"end": 1309,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1308,
"end": 1309,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1308,
"end": 1309,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 1311,
"end": 1357,
"ctxt": 0
},
"kind": "let",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1323,
"end": 1356,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1323,
"end": 1327,
"ctxt": 0
},
"value": "data",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1327,
"end": 1356,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 1329,
"end": 1356,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 1331,
"end": 1336,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1331,
"end": 1332,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1332,
"end": 1335,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 1334,
"end": 1335,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1334,
"end": 1335,
"ctxt": 0
},
"value": 1.0
}
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1337,
"end": 1346,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1337,
"end": 1338,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1338,
"end": 1345,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 1340,
"end": 1345,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 1340,
"end": 1345,
"ctxt": 0
},
"value": "abc",
"raw": "\"abc\""
}
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1347,
"end": 1354,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1347,
"end": 1348,
"ctxt": 0
},
"value": "c",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1348,
"end": 1354,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 1350,
"end": 1354,
"ctxt": 0
},
"literal": {
"type": "BooleanLiteral",
"span": {
"start": 1350,
"end": 1354,
"ctxt": 0
},
"value": true
}
}
},
"typeParams": null
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1425,
"end": 1470,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1429,
"end": 1469,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1429,
"end": 1431,
"ctxt": 0
},
"value": "e1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1434,
"end": 1469,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1434,
"end": 1435,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1436,
"end": 1450,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1438,
"end": 1439,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1441,
"end": 1442,
"ctxt": 0
},
"value": 1.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1444,
"end": 1445,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1447,
"end": 1448,
"ctxt": 0
},
"value": 2.0
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1452,
"end": 1464,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1454,
"end": 1455,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1457,
"end": 1462,
"ctxt": 0
},
"value": "abc",
"raw": "\"abc\""
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1466,
"end": 1468,
"ctxt": 0
},
"properties": []
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1471,
"end": 1516,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1475,
"end": 1515,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1475,
"end": 1477,
"ctxt": 0
},
"value": "e2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1480,
"end": 1515,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1480,
"end": 1481,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1482,
"end": 1484,
"ctxt": 0
},
"properties": []
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1486,
"end": 1498,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1488,
"end": 1489,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1491,
"end": 1496,
"ctxt": 0
},
"value": "abc",
"raw": "\"abc\""
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1500,
"end": 1514,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1502,
"end": 1503,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1505,
"end": 1506,
"ctxt": 0
},
"value": 1.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1508,
"end": 1509,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1511,
"end": 1512,
"ctxt": 0
},
"value": 2.0
}
}
]
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1517,
"end": 1544,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1521,
"end": 1543,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1521,
"end": 1523,
"ctxt": 0
},
"value": "e3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1526,
"end": 1543,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1526,
"end": 1527,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 1528,
"end": 1532,
"ctxt": 0
},
"value": "data",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1534,
"end": 1542,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1536,
"end": 1537,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1539,
"end": 1540,
"ctxt": 0
},
"value": 2.0
}
}
]
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1545,
"end": 1572,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1549,
"end": 1571,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1549,
"end": 1551,
"ctxt": 0
},
"value": "e4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1554,
"end": 1571,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1554,
"end": 1555,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1556,
"end": 1564,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1558,
"end": 1559,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1561,
"end": 1562,
"ctxt": 0
},
"value": 2.0
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 1566,
"end": 1570,
"ctxt": 0
},
"value": "data",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
}
],
"interpreter": null
}