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

3631 lines
98 KiB
JSON

{
"type": "Script",
"span": {
"start": 99,
"end": 1573,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 99,
"end": 167,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 103,
"end": 166,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 103,
"end": 105,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 108,
"end": 166,
"ctxt": 0
},
"object": {
"type": "ArrayExpression",
"span": {
"start": 108,
"end": 163,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 109,
"end": 117,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 111,
"end": 112,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 114,
"end": 115,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 119,
"end": 135,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 121,
"end": 122,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 124,
"end": 125,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 127,
"end": 128,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 130,
"end": 133,
"ctxt": 0
},
"value": "x",
"raw": "\"x\""
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 137,
"end": 162,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 139,
"end": 140,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 142,
"end": 143,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 145,
"end": 146,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 148,
"end": 151,
"ctxt": 0
},
"value": "y",
"raw": "\"y\""
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 153,
"end": 154,
"ctxt": 0
},
"value": "c",
"optional": false
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 156,
"end": 160,
"ctxt": 0
},
"value": true
}
}
]
}
}
]
},
"property": {
"type": "Computed",
"span": {
"start": 163,
"end": 166,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 164,
"end": 165,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 168,
"end": 173,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 168,
"end": 172,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 168,
"end": 170,
"ctxt": 0
},
"value": "a1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 171,
"end": 172,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 185,
"end": 190,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 185,
"end": 189,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 185,
"end": 187,
"ctxt": 0
},
"value": "a1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 188,
"end": 189,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 214,
"end": 219,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 214,
"end": 218,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 214,
"end": 216,
"ctxt": 0
},
"value": "a1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 217,
"end": 218,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 244,
"end": 258,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 244,
"end": 257,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 244,
"end": 246,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 249,
"end": 257,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 251,
"end": 252,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 254,
"end": 255,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 259,
"end": 279,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 259,
"end": 278,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 259,
"end": 261,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 264,
"end": 278,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 266,
"end": 267,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 269,
"end": 270,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 272,
"end": 273,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 275,
"end": 276,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 290,
"end": 306,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 290,
"end": 305,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 290,
"end": 292,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 295,
"end": 305,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 297,
"end": 298,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 300,
"end": 303,
"ctxt": 0
},
"value": "y",
"raw": "\"y\""
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 317,
"end": 334,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 317,
"end": 333,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 317,
"end": 319,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 322,
"end": 333,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 324,
"end": 325,
"ctxt": 0
},
"value": "c",
"optional": false
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 327,
"end": 331,
"ctxt": 0
},
"value": true
}
}
]
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 346,
"end": 393,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 350,
"end": 392,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 350,
"end": 352,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 355,
"end": 392,
"ctxt": 0
},
"object": {
"type": "ArrayExpression",
"span": {
"start": 355,
"end": 389,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 356,
"end": 370,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 358,
"end": 359,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 361,
"end": 362,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 364,
"end": 365,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 367,
"end": 368,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 372,
"end": 384,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 374,
"end": 375,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 377,
"end": 382,
"ctxt": 0
},
"value": "abc",
"raw": "\"abc\""
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 386,
"end": 388,
"ctxt": 0
},
"properties": []
}
}
]
},
"property": {
"type": "Computed",
"span": {
"start": 389,
"end": 392,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 390,
"end": 391,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 394,
"end": 399,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 394,
"end": 398,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 394,
"end": 396,
"ctxt": 0
},
"value": "a2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 397,
"end": 398,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 432,
"end": 437,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 432,
"end": 436,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 432,
"end": 434,
"ctxt": 0
},
"value": "a2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 435,
"end": 436,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 461,
"end": 483,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 461,
"end": 482,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 461,
"end": 463,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 466,
"end": 482,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 468,
"end": 469,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 471,
"end": 473,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 475,
"end": 476,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 478,
"end": 480,
"ctxt": 0
},
"value": 20.0,
"raw": "20"
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 484,
"end": 502,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 484,
"end": 501,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 484,
"end": 486,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 489,
"end": 501,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 491,
"end": 492,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 494,
"end": 499,
"ctxt": 0
},
"value": "def",
"raw": "\"def\""
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 503,
"end": 511,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 503,
"end": 510,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 503,
"end": 505,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 508,
"end": 510,
"ctxt": 0
},
"properties": []
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 512,
"end": 537,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 512,
"end": 536,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 512,
"end": 514,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 517,
"end": 536,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 519,
"end": 520,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 522,
"end": 527,
"ctxt": 0
},
"value": "def",
"raw": "\"def\""
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 529,
"end": 530,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 532,
"end": 534,
"ctxt": 0
},
"value": 20.0,
"raw": "20"
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 548,
"end": 562,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 548,
"end": 561,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 548,
"end": 550,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 553,
"end": 561,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 555,
"end": 556,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 558,
"end": 559,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 631,
"end": 699,
"ctxt": 0
},
"kind": "let",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 643,
"end": 698,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 643,
"end": 645,
"ctxt": 0
},
"value": "b1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 645,
"end": 698,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 647,
"end": 698,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 647,
"end": 671,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 649,
"end": 659,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 649,
"end": 650,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 650,
"end": 658,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 652,
"end": 658,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 660,
"end": 669,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 660,
"end": 661,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 661,
"end": 669,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 663,
"end": 669,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
},
{
"type": "TsTypeLiteral",
"span": {
"start": 674,
"end": 698,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 676,
"end": 686,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 676,
"end": 677,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 677,
"end": 685,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 679,
"end": 685,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 687,
"end": 696,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 687,
"end": 688,
"ctxt": 0
},
"value": "c",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 688,
"end": 696,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 690,
"end": 696,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 700,
"end": 726,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 704,
"end": 725,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 704,
"end": 706,
"ctxt": 0
},
"value": "b2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 709,
"end": 725,
"ctxt": 0
},
"properties": [
{
"type": "SpreadElement",
"spread": {
"start": 711,
"end": 714,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 714,
"end": 716,
"ctxt": 0
},
"value": "b1",
"optional": false
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 718,
"end": 719,
"ctxt": 0
},
"value": "z",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 721,
"end": 723,
"ctxt": 0
},
"value": 55.0,
"raw": "55"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 727,
"end": 746,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 731,
"end": 745,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 731,
"end": 733,
"ctxt": 0
},
"value": "b3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 736,
"end": 745,
"ctxt": 0
},
"properties": [
{
"type": "SpreadElement",
"spread": {
"start": 738,
"end": 741,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 741,
"end": 743,
"ctxt": 0
},
"value": "b2",
"optional": false
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 868,
"end": 932,
"ctxt": 0
},
"kind": "let",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 880,
"end": 931,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 880,
"end": 884,
"ctxt": 0
},
"value": "opts",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 884,
"end": 931,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 886,
"end": 931,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 888,
"end": 901,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 888,
"end": 891,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 892,
"end": 900,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 894,
"end": 900,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 902,
"end": 915,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 902,
"end": 905,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 906,
"end": 914,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 908,
"end": 914,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 916,
"end": 929,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 916,
"end": 919,
"ctxt": 0
},
"value": "baz",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 920,
"end": 929,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 922,
"end": 929,
"ctxt": 0
},
"kind": "boolean"
}
},
"typeParams": null
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 933,
"end": 960,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 937,
"end": 959,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 937,
"end": 939,
"ctxt": 0
},
"value": "c1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ConditionalExpression",
"span": {
"start": 942,
"end": 959,
"ctxt": 0
},
"test": {
"type": "UnaryExpression",
"span": {
"start": 942,
"end": 947,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 943,
"end": 947,
"ctxt": 0
},
"value": true
}
},
"consequent": {
"type": "ObjectExpression",
"span": {
"start": 950,
"end": 952,
"ctxt": 0
},
"properties": []
},
"alternate": {
"type": "Identifier",
"span": {
"start": 955,
"end": 959,
"ctxt": 0
},
"value": "opts",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 961,
"end": 988,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 965,
"end": 987,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 965,
"end": 967,
"ctxt": 0
},
"value": "c2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ConditionalExpression",
"span": {
"start": 970,
"end": 987,
"ctxt": 0
},
"test": {
"type": "UnaryExpression",
"span": {
"start": 970,
"end": 975,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 971,
"end": 975,
"ctxt": 0
},
"value": true
}
},
"consequent": {
"type": "Identifier",
"span": {
"start": 978,
"end": 982,
"ctxt": 0
},
"value": "opts",
"optional": false
},
"alternate": {
"type": "ObjectExpression",
"span": {
"start": 985,
"end": 987,
"ctxt": 0
},
"properties": []
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 989,
"end": 1026,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 993,
"end": 1025,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 993,
"end": 995,
"ctxt": 0
},
"value": "c3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ConditionalExpression",
"span": {
"start": 998,
"end": 1025,
"ctxt": 0
},
"test": {
"type": "UnaryExpression",
"span": {
"start": 998,
"end": 1003,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 999,
"end": 1003,
"ctxt": 0
},
"value": true
}
},
"consequent": {
"type": "ObjectExpression",
"span": {
"start": 1006,
"end": 1020,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1008,
"end": 1009,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1011,
"end": 1012,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1014,
"end": 1015,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1017,
"end": 1018,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
]
},
"alternate": {
"type": "ObjectExpression",
"span": {
"start": 1023,
"end": 1025,
"ctxt": 0
},
"properties": []
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1027,
"end": 1064,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1031,
"end": 1063,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1031,
"end": 1033,
"ctxt": 0
},
"value": "c4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ConditionalExpression",
"span": {
"start": 1036,
"end": 1063,
"ctxt": 0
},
"test": {
"type": "UnaryExpression",
"span": {
"start": 1036,
"end": 1041,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 1037,
"end": 1041,
"ctxt": 0
},
"value": true
}
},
"consequent": {
"type": "ObjectExpression",
"span": {
"start": 1044,
"end": 1046,
"ctxt": 0
},
"properties": []
},
"alternate": {
"type": "ObjectExpression",
"span": {
"start": 1049,
"end": 1063,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1051,
"end": 1052,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1054,
"end": 1055,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1057,
"end": 1058,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1060,
"end": 1061,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
]
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1112,
"end": 1212,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1116,
"end": 1211,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1116,
"end": 1118,
"ctxt": 0
},
"value": "d1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 1121,
"end": 1211,
"ctxt": 0
},
"object": {
"type": "ArrayExpression",
"span": {
"start": 1121,
"end": 1208,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1122,
"end": 1156,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1124,
"end": 1128,
"ctxt": 0
},
"value": "kind",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1130,
"end": 1133,
"ctxt": 0
},
"value": "a",
"raw": "'a'"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1135,
"end": 1138,
"ctxt": 0
},
"value": "pos",
"optional": false
},
"value": {
"type": "ObjectExpression",
"span": {
"start": 1140,
"end": 1154,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1142,
"end": 1143,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1145,
"end": 1146,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1148,
"end": 1149,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1151,
"end": 1152,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
]
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1158,
"end": 1207,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1160,
"end": 1164,
"ctxt": 0
},
"value": "kind",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1166,
"end": 1169,
"ctxt": 0
},
"value": "b",
"raw": "'b'"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1171,
"end": 1174,
"ctxt": 0
},
"value": "pos",
"optional": false
},
"value": {
"type": "ConditionalExpression",
"span": {
"start": 1176,
"end": 1205,
"ctxt": 0
},
"test": {
"type": "UnaryExpression",
"span": {
"start": 1176,
"end": 1181,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "BooleanLiteral",
"span": {
"start": 1177,
"end": 1181,
"ctxt": 0
},
"value": true
}
},
"consequent": {
"type": "ObjectExpression",
"span": {
"start": 1184,
"end": 1194,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1186,
"end": 1187,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1189,
"end": 1192,
"ctxt": 0
},
"value": "x",
"raw": "\"x\""
}
}
]
},
"alternate": {
"type": "ObjectExpression",
"span": {
"start": 1197,
"end": 1205,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1199,
"end": 1200,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1202,
"end": 1203,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
]
}
}
}
]
}
}
]
},
"property": {
"type": "Computed",
"span": {
"start": 1208,
"end": 1211,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1209,
"end": 1210,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 1213,
"end": 1221,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1213,
"end": 1220,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1213,
"end": 1215,
"ctxt": 0
},
"value": "d1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1216,
"end": 1220,
"ctxt": 0
},
"value": "kind",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1222,
"end": 1229,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1222,
"end": 1228,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1222,
"end": 1224,
"ctxt": 0
},
"value": "d1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1225,
"end": 1228,
"ctxt": 0
},
"value": "pos",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1230,
"end": 1239,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1230,
"end": 1238,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 1230,
"end": 1236,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1230,
"end": 1232,
"ctxt": 0
},
"value": "d1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1233,
"end": 1236,
"ctxt": 0
},
"value": "pos",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1237,
"end": 1238,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1240,
"end": 1249,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1240,
"end": 1248,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 1240,
"end": 1246,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1240,
"end": 1242,
"ctxt": 0
},
"value": "d1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1243,
"end": 1246,
"ctxt": 0
},
"value": "pos",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1247,
"end": 1248,
"ctxt": 0
},
"value": "y",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1250,
"end": 1259,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1250,
"end": 1258,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 1250,
"end": 1256,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1250,
"end": 1252,
"ctxt": 0
},
"value": "d1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1253,
"end": 1256,
"ctxt": 0
},
"value": "pos",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1257,
"end": 1258,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1260,
"end": 1269,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1260,
"end": 1268,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 1260,
"end": 1266,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1260,
"end": 1262,
"ctxt": 0
},
"value": "d1",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1263,
"end": 1266,
"ctxt": 0
},
"value": "pos",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1267,
"end": 1268,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1288,
"end": 1289,
"ctxt": 0
},
"value": "f",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 1293,
"end": 1306,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "RestElement",
"span": {
"start": 1293,
"end": 1306,
"ctxt": 0
},
"rest": {
"start": 1293,
"end": 1296,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1296,
"end": 1301,
"ctxt": 0
},
"value": "items",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1301,
"end": 1306,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 1303,
"end": 1306,
"ctxt": 0
},
"elemType": {
"type": "TsTypeReference",
"span": {
"start": 1303,
"end": 1304,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1303,
"end": 1304,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 1271,
"end": 1311,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1289,
"end": 1292,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1290,
"end": 1291,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1290,
"end": 1291,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
}
]
},
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 1307,
"end": 1310,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1309,
"end": 1310,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1309,
"end": 1310,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 1312,
"end": 1358,
"ctxt": 0
},
"kind": "let",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1324,
"end": 1357,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1324,
"end": 1328,
"ctxt": 0
},
"value": "data",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1328,
"end": 1357,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 1330,
"end": 1357,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 1332,
"end": 1337,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1332,
"end": 1333,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1333,
"end": 1336,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 1335,
"end": 1336,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1335,
"end": 1336,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1338,
"end": 1347,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1338,
"end": 1339,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1339,
"end": 1346,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 1341,
"end": 1346,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 1341,
"end": 1346,
"ctxt": 0
},
"value": "abc",
"raw": "\"abc\""
}
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1348,
"end": 1355,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1348,
"end": 1349,
"ctxt": 0
},
"value": "c",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1349,
"end": 1355,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 1351,
"end": 1355,
"ctxt": 0
},
"literal": {
"type": "BooleanLiteral",
"span": {
"start": 1351,
"end": 1355,
"ctxt": 0
},
"value": true
}
}
},
"typeParams": null
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1426,
"end": 1471,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1430,
"end": 1470,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1430,
"end": 1432,
"ctxt": 0
},
"value": "e1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1435,
"end": 1470,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1435,
"end": 1436,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1437,
"end": 1451,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1439,
"end": 1440,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1442,
"end": 1443,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1445,
"end": 1446,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1448,
"end": 1449,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1453,
"end": 1465,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1455,
"end": 1456,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1458,
"end": 1463,
"ctxt": 0
},
"value": "abc",
"raw": "\"abc\""
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1467,
"end": 1469,
"ctxt": 0
},
"properties": []
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1472,
"end": 1517,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1476,
"end": 1516,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1476,
"end": 1478,
"ctxt": 0
},
"value": "e2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1481,
"end": 1516,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1481,
"end": 1482,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1483,
"end": 1485,
"ctxt": 0
},
"properties": []
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1487,
"end": 1499,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1489,
"end": 1490,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1492,
"end": 1497,
"ctxt": 0
},
"value": "abc",
"raw": "\"abc\""
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1501,
"end": 1515,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1503,
"end": 1504,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1506,
"end": 1507,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1509,
"end": 1510,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1512,
"end": 1513,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
]
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1518,
"end": 1545,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1522,
"end": 1544,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1522,
"end": 1524,
"ctxt": 0
},
"value": "e3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1527,
"end": 1544,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1527,
"end": 1528,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 1529,
"end": 1533,
"ctxt": 0
},
"value": "data",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1535,
"end": 1543,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1537,
"end": 1538,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1540,
"end": 1541,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
]
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1546,
"end": 1573,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1550,
"end": 1572,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1550,
"end": 1552,
"ctxt": 0
},
"value": "e4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 1555,
"end": 1572,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1555,
"end": 1556,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1557,
"end": 1565,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1559,
"end": 1560,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1562,
"end": 1563,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 1567,
"end": 1571,
"ctxt": 0
},
"value": "data",
"optional": false
}
}
],
"typeArguments": null
},
"definite": false
}
]
}
],
"interpreter": null
}