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

4508 lines
120 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 43,
"end": 2630,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 43,
"end": 68,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 47,
"end": 68,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 47,
"end": 48,
"ctxt": 0
},
"value": "o",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 51,
"end": 68,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 53,
"end": 54,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 56,
"end": 57,
"ctxt": 0
},
"value": 1.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 59,
"end": 60,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 62,
"end": 66,
"ctxt": 0
},
"value": "no",
"raw": "'no'"
}
}
]
},
"definite": false
}
]
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 99,
"end": 115,
"ctxt": 0
},
"value": "PrivateOptionalX",
"optional": false
},
"declare": false,
"span": {
"start": 93,
"end": 143,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 122,
"end": 141,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 130,
"end": 131,
"ctxt": 0
},
"value": "x",
"optional": true
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 132,
"end": 140,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 134,
"end": 140,
"ctxt": 0
},
"kind": "number"
}
},
"isStatic": false,
"decorators": [],
"accessibility": "private",
"isAbstract": false,
"isOptional": true,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 150,
"end": 157,
"ctxt": 0
},
"value": "PublicX",
"optional": false
},
"declare": false,
"span": {
"start": 144,
"end": 183,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 164,
"end": 181,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 171,
"end": 172,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 172,
"end": 180,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 174,
"end": 180,
"ctxt": 0
},
"kind": "number"
}
},
"isStatic": false,
"decorators": [],
"accessibility": "public",
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "VariableDeclaration",
"span": {
"start": 184,
"end": 213,
"ctxt": 0
},
"kind": "let",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 196,
"end": 212,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 196,
"end": 203,
"ctxt": 0
},
"value": "publicX",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 203,
"end": 212,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 205,
"end": 212,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 205,
"end": 212,
"ctxt": 0
},
"value": "PublicX",
"optional": false
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 214,
"end": 261,
"ctxt": 0
},
"kind": "let",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 226,
"end": 260,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 226,
"end": 242,
"ctxt": 0
},
"value": "privateOptionalX",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 242,
"end": 260,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 244,
"end": 260,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 244,
"end": 260,
"ctxt": 0
},
"value": "PrivateOptionalX",
"optional": false
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 262,
"end": 307,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 266,
"end": 306,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 266,
"end": 268,
"ctxt": 0
},
"value": "o2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 271,
"end": 306,
"ctxt": 0
},
"properties": [
{
"type": "SpreadElement",
"spread": {
"start": 273,
"end": 276,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 276,
"end": 283,
"ctxt": 0
},
"value": "publicX",
"optional": false
}
},
{
"type": "SpreadElement",
"spread": {
"start": 285,
"end": 288,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 288,
"end": 304,
"ctxt": 0
},
"value": "privateOptionalX",
"optional": false
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 308,
"end": 330,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 312,
"end": 329,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 312,
"end": 314,
"ctxt": 0
},
"value": "sn",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 314,
"end": 322,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 316,
"end": 322,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "MemberExpression",
"span": {
"start": 325,
"end": 329,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 325,
"end": 327,
"ctxt": 0
},
"value": "o2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 328,
"end": 329,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 354,
"end": 398,
"ctxt": 0
},
"kind": "let",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 366,
"end": 397,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 366,
"end": 380,
"ctxt": 0
},
"value": "optionalString",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 380,
"end": 397,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 382,
"end": 397,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 384,
"end": 395,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 384,
"end": 386,
"ctxt": 0
},
"value": "sn",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 387,
"end": 395,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 389,
"end": 395,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 399,
"end": 443,
"ctxt": 0
},
"kind": "let",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 411,
"end": 442,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 411,
"end": 425,
"ctxt": 0
},
"value": "optionalNumber",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 425,
"end": 442,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 427,
"end": 442,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 429,
"end": 440,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 429,
"end": 431,
"ctxt": 0
},
"value": "sn",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 432,
"end": 440,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 434,
"end": 440,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 444,
"end": 528,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 448,
"end": 527,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 448,
"end": 459,
"ctxt": 0
},
"value": "allOptional",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 459,
"end": 484,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 461,
"end": 484,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 463,
"end": 482,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 463,
"end": 465,
"ctxt": 0
},
"value": "sn",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 465,
"end": 482,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 467,
"end": 482,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 467,
"end": 473,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 476,
"end": 482,
"ctxt": 0
},
"kind": "number"
}
]
}
},
"typeParams": null
}
]
}
}
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 487,
"end": 527,
"ctxt": 0
},
"properties": [
{
"type": "SpreadElement",
"spread": {
"start": 489,
"end": 492,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 492,
"end": 506,
"ctxt": 0
},
"value": "optionalString",
"optional": false
}
},
{
"type": "SpreadElement",
"spread": {
"start": 508,
"end": 511,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 511,
"end": 525,
"ctxt": 0
},
"value": "optionalNumber",
"optional": false
}
}
]
},
"definite": false
}
]
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 614,
"end": 643,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 624,
"end": 628,
"ctxt": 0
},
"value": "Bool",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 629,
"end": 643,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 631,
"end": 641,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 631,
"end": 632,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 632,
"end": 641,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 634,
"end": 641,
"ctxt": 0
},
"kind": "boolean"
}
},
"typeParams": null
}
]
}
},
{
"type": "EmptyStatement",
"span": {
"start": 643,
"end": 644,
"ctxt": 0
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 645,
"end": 672,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 655,
"end": 658,
"ctxt": 0
},
"value": "Str",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 659,
"end": 672,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 661,
"end": 670,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 661,
"end": 662,
"ctxt": 0
},
"value": "s",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 662,
"end": 670,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 664,
"end": 670,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
},
{
"type": "EmptyStatement",
"span": {
"start": 672,
"end": 673,
"ctxt": 0
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 674,
"end": 722,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 678,
"end": 721,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 678,
"end": 684,
"ctxt": 0
},
"value": "spread",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 687,
"end": 721,
"ctxt": 0
},
"properties": [
{
"type": "SpreadElement",
"spread": {
"start": 689,
"end": 692,
"ctxt": 0
},
"arguments": {
"type": "ObjectExpression",
"span": {
"start": 692,
"end": 703,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 694,
"end": 695,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 697,
"end": 701,
"ctxt": 0
},
"value": true
}
}
]
}
},
{
"type": "SpreadElement",
"spread": {
"start": 705,
"end": 708,
"ctxt": 0
},
"arguments": {
"type": "ObjectExpression",
"span": {
"start": 708,
"end": 719,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 709,
"end": 710,
"ctxt": 0
},
"value": "s",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 712,
"end": 717,
"ctxt": 0
},
"value": "foo",
"raw": "\"foo\""
}
}
]
}
}
]
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 723,
"end": 745,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 723,
"end": 744,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 723,
"end": 729,
"ctxt": 0
},
"value": "spread",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 732,
"end": 744,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 734,
"end": 735,
"ctxt": 0
},
"value": "s",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 737,
"end": 742,
"ctxt": 0
},
"value": "foo",
"raw": "\"foo\""
}
}
]
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 769,
"end": 790,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 773,
"end": 789,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 773,
"end": 774,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 777,
"end": 789,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 779,
"end": 780,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 782,
"end": 787,
"ctxt": 0
},
"value": false
}
}
]
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 791,
"end": 802,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 791,
"end": 801,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 791,
"end": 797,
"ctxt": 0
},
"value": "spread",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 800,
"end": 801,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 890,
"end": 952,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 894,
"end": 952,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 894,
"end": 904,
"ctxt": 0
},
"value": "duplicated",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 907,
"end": 952,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 909,
"end": 910,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 912,
"end": 917,
"ctxt": 0
},
"value": "bad",
"raw": "'bad'"
}
},
{
"type": "SpreadElement",
"spread": {
"start": 919,
"end": 922,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 922,
"end": 923,
"ctxt": 0
},
"value": "o",
"optional": false
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 925,
"end": 926,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 928,
"end": 933,
"ctxt": 0
},
"value": "bad",
"raw": "'bad'"
}
},
{
"type": "SpreadElement",
"spread": {
"start": 935,
"end": 938,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 938,
"end": 940,
"ctxt": 0
},
"value": "o2",
"optional": false
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 942,
"end": 943,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 945,
"end": 950,
"ctxt": 0
},
"value": "bad",
"raw": "'bad'"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 953,
"end": 990,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 957,
"end": 990,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 957,
"end": 973,
"ctxt": 0
},
"value": "duplicatedSpread",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 976,
"end": 990,
"ctxt": 0
},
"properties": [
{
"type": "SpreadElement",
"spread": {
"start": 978,
"end": 981,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 981,
"end": 982,
"ctxt": 0
},
"value": "o",
"optional": false
}
},
{
"type": "SpreadElement",
"spread": {
"start": 984,
"end": 987,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 987,
"end": 988,
"ctxt": 0
},
"value": "o",
"optional": false
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1053,
"end": 1118,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1057,
"end": 1118,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1057,
"end": 1063,
"ctxt": 0
},
"value": "ignore",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1063,
"end": 1089,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 1065,
"end": 1089,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 1067,
"end": 1077,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1067,
"end": 1068,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1068,
"end": 1076,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1070,
"end": 1076,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1078,
"end": 1087,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1078,
"end": 1079,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1079,
"end": 1087,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1081,
"end": 1087,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
}
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 1096,
"end": 1118,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1098,
"end": 1099,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1101,
"end": 1110,
"ctxt": 0
},
"value": "ignored",
"raw": "'ignored'"
}
},
{
"type": "SpreadElement",
"spread": {
"start": 1112,
"end": 1115,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 1115,
"end": 1116,
"ctxt": 0
},
"value": "o",
"optional": false
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1120,
"end": 1146,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1124,
"end": 1146,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1124,
"end": 1126,
"ctxt": 0
},
"value": "o3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 1129,
"end": 1146,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1131,
"end": 1132,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1134,
"end": 1135,
"ctxt": 0
},
"value": 1.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1137,
"end": 1138,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1140,
"end": 1144,
"ctxt": 0
},
"value": "no",
"raw": "'no'"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1147,
"end": 1177,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1151,
"end": 1177,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1151,
"end": 1153,
"ctxt": 0
},
"value": "o4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 1156,
"end": 1177,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1158,
"end": 1159,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1161,
"end": 1166,
"ctxt": 0
},
"value": "yes",
"raw": "'yes'"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1168,
"end": 1169,
"ctxt": 0
},
"value": "c",
"optional": false
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 1171,
"end": 1175,
"ctxt": 0
},
"value": true
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1178,
"end": 1266,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1182,
"end": 1266,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1182,
"end": 1196,
"ctxt": 0
},
"value": "combinedBefore",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1196,
"end": 1234,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 1198,
"end": 1234,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 1200,
"end": 1210,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1200,
"end": 1201,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1201,
"end": 1209,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1203,
"end": 1209,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1211,
"end": 1221,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1211,
"end": 1212,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1212,
"end": 1220,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1214,
"end": 1220,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1222,
"end": 1232,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1222,
"end": 1223,
"ctxt": 0
},
"value": "c",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1223,
"end": 1232,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1225,
"end": 1232,
"ctxt": 0
},
"kind": "boolean"
}
},
"typeParams": null
}
]
}
}
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 1241,
"end": 1266,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1243,
"end": 1244,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1246,
"end": 1250,
"ctxt": 0
},
"value": "ok",
"raw": "'ok'"
}
},
{
"type": "SpreadElement",
"spread": {
"start": 1252,
"end": 1255,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 1255,
"end": 1257,
"ctxt": 0
},
"value": "o3",
"optional": false
}
},
{
"type": "SpreadElement",
"spread": {
"start": 1259,
"end": 1262,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 1262,
"end": 1264,
"ctxt": 0
},
"value": "o4",
"optional": false
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1267,
"end": 1352,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1271,
"end": 1352,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1271,
"end": 1282,
"ctxt": 0
},
"value": "combinedMid",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1282,
"end": 1320,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 1284,
"end": 1320,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 1286,
"end": 1296,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1286,
"end": 1287,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1287,
"end": 1295,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1289,
"end": 1295,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1297,
"end": 1307,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1297,
"end": 1298,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1298,
"end": 1306,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1300,
"end": 1306,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1308,
"end": 1318,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1308,
"end": 1309,
"ctxt": 0
},
"value": "c",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1309,
"end": 1318,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1311,
"end": 1318,
"ctxt": 0
},
"kind": "boolean"
}
},
"typeParams": null
}
]
}
}
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 1327,
"end": 1352,
"ctxt": 0
},
"properties": [
{
"type": "SpreadElement",
"spread": {
"start": 1329,
"end": 1332,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 1332,
"end": 1334,
"ctxt": 0
},
"value": "o3",
"optional": false
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1336,
"end": 1337,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1339,
"end": 1343,
"ctxt": 0
},
"value": "ok",
"raw": "'ok'"
}
},
{
"type": "SpreadElement",
"spread": {
"start": 1345,
"end": 1348,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 1348,
"end": 1350,
"ctxt": 0
},
"value": "o4",
"optional": false
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1353,
"end": 1523,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1357,
"end": 1523,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1357,
"end": 1371,
"ctxt": 0
},
"value": "combinedNested",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1371,
"end": 1420,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 1373,
"end": 1420,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 1375,
"end": 1385,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1375,
"end": 1376,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1376,
"end": 1384,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1378,
"end": 1384,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1386,
"end": 1397,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1386,
"end": 1387,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1387,
"end": 1396,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1389,
"end": 1396,
"ctxt": 0
},
"kind": "boolean"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1398,
"end": 1408,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1398,
"end": 1399,
"ctxt": 0
},
"value": "c",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1399,
"end": 1407,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1401,
"end": 1407,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1409,
"end": 1418,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1409,
"end": 1410,
"ctxt": 0
},
"value": "d",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1410,
"end": 1418,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1412,
"end": 1418,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
}
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 1427,
"end": 1523,
"ctxt": 0
},
"properties": [
{
"type": "SpreadElement",
"spread": {
"start": 1429,
"end": 1432,
"ctxt": 0
},
"arguments": {
"type": "ObjectExpression",
"span": {
"start": 1432,
"end": 1473,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1434,
"end": 1435,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1437,
"end": 1438,
"ctxt": 0
},
"value": 4.0
}
},
{
"type": "SpreadElement",
"spread": {
"start": 1440,
"end": 1443,
"ctxt": 0
},
"arguments": {
"type": "ObjectExpression",
"span": {
"start": 1443,
"end": 1471,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1445,
"end": 1446,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 1448,
"end": 1453,
"ctxt": 0
},
"value": false
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1455,
"end": 1456,
"ctxt": 0
},
"value": "c",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1458,
"end": 1469,
"ctxt": 0
},
"value": "overriden",
"raw": "'overriden'"
}
}
]
}
}
]
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1475,
"end": 1476,
"ctxt": 0
},
"value": "d",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1478,
"end": 1492,
"ctxt": 0
},
"value": "actually new",
"raw": "'actually new'"
}
},
{
"type": "SpreadElement",
"spread": {
"start": 1494,
"end": 1497,
"ctxt": 0
},
"arguments": {
"type": "ObjectExpression",
"span": {
"start": 1497,
"end": 1521,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1499,
"end": 1500,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1502,
"end": 1503,
"ctxt": 0
},
"value": 5.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1505,
"end": 1506,
"ctxt": 0
},
"value": "d",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1508,
"end": 1519,
"ctxt": 0
},
"value": "maybe new",
"raw": "'maybe new'"
}
}
]
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1524,
"end": 1605,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1528,
"end": 1604,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1528,
"end": 1544,
"ctxt": 0
},
"value": "changeTypeBefore",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1544,
"end": 1570,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 1546,
"end": 1570,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 1548,
"end": 1558,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1548,
"end": 1549,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1549,
"end": 1557,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1551,
"end": 1557,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1559,
"end": 1568,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1559,
"end": 1560,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1560,
"end": 1568,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1562,
"end": 1568,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
}
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 1577,
"end": 1604,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1579,
"end": 1580,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1582,
"end": 1595,
"ctxt": 0
},
"value": "wrong type?",
"raw": "'wrong type?'"
}
},
{
"type": "SpreadElement",
"spread": {
"start": 1597,
"end": 1600,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 1600,
"end": 1602,
"ctxt": 0
},
"value": "o3",
"optional": false
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1606,
"end": 1746,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1610,
"end": 1746,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1610,
"end": 1624,
"ctxt": 0
},
"value": "computedMiddle",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1624,
"end": 1687,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 1626,
"end": 1687,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 1628,
"end": 1638,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1628,
"end": 1629,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1629,
"end": 1637,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1631,
"end": 1637,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1639,
"end": 1649,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1639,
"end": 1640,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1640,
"end": 1648,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1642,
"end": 1648,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1650,
"end": 1661,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1650,
"end": 1651,
"ctxt": 0
},
"value": "c",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1651,
"end": 1660,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1653,
"end": 1660,
"ctxt": 0
},
"kind": "boolean"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1662,
"end": 1685,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "StringLiteral",
"span": {
"start": 1662,
"end": 1677,
"ctxt": 0
},
"value": "in the middle",
"raw": "\"in the middle\""
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1677,
"end": 1685,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1679,
"end": 1685,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
}
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 1694,
"end": 1746,
"ctxt": 0
},
"properties": [
{
"type": "SpreadElement",
"spread": {
"start": 1696,
"end": 1699,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 1699,
"end": 1701,
"ctxt": 0
},
"value": "o3",
"optional": false
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Computed",
"span": {
"start": 1703,
"end": 1720,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 1704,
"end": 1719,
"ctxt": 0
},
"value": "in the middle",
"raw": "'in the middle'"
}
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1722,
"end": 1724,
"ctxt": 0
},
"value": 13.0
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1726,
"end": 1727,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1729,
"end": 1737,
"ctxt": 0
},
"value": "maybe?",
"raw": "'maybe?'"
}
},
{
"type": "SpreadElement",
"spread": {
"start": 1739,
"end": 1742,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 1742,
"end": 1744,
"ctxt": 0
},
"value": "o4",
"optional": false
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1801,
"end": 1827,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1805,
"end": 1826,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1805,
"end": 1814,
"ctxt": 0
},
"value": "spreadNum",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 1817,
"end": 1826,
"ctxt": 0
},
"properties": [
{
"type": "SpreadElement",
"spread": {
"start": 1819,
"end": 1822,
"ctxt": 0
},
"arguments": {
"type": "NumericLiteral",
"span": {
"start": 1822,
"end": 1824,
"ctxt": 0
},
"value": 12.0
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1828,
"end": 1857,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1832,
"end": 1856,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1832,
"end": 1841,
"ctxt": 0
},
"value": "spreadSum",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 1844,
"end": 1856,
"ctxt": 0
},
"properties": [
{
"type": "SpreadElement",
"spread": {
"start": 1846,
"end": 1849,
"ctxt": 0
},
"arguments": {
"type": "BinaryExpression",
"span": {
"start": 1849,
"end": 1854,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "NumericLiteral",
"span": {
"start": 1849,
"end": 1850,
"ctxt": 0
},
"value": 1.0
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1853,
"end": 1854,
"ctxt": 0
},
"value": 1.0
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1858,
"end": 1884,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1862,
"end": 1883,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1862,
"end": 1872,
"ctxt": 0
},
"value": "spreadZero",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 1875,
"end": 1883,
"ctxt": 0
},
"properties": [
{
"type": "SpreadElement",
"spread": {
"start": 1877,
"end": 1880,
"ctxt": 0
},
"arguments": {
"type": "NumericLiteral",
"span": {
"start": 1880,
"end": 1881,
"ctxt": 0
},
"value": 0.0
}
}
]
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 1885,
"end": 1906,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 1885,
"end": 1905,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 1885,
"end": 1903,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1885,
"end": 1895,
"ctxt": 0
},
"value": "spreadZero",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1896,
"end": 1903,
"ctxt": 0
},
"value": "toFixed",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 1953,
"end": 1982,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1957,
"end": 1981,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1957,
"end": 1967,
"ctxt": 0
},
"value": "spreadBool",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 1970,
"end": 1981,
"ctxt": 0
},
"properties": [
{
"type": "SpreadElement",
"spread": {
"start": 1972,
"end": 1975,
"ctxt": 0
},
"arguments": {
"type": "BooleanLiteral",
"span": {
"start": 1975,
"end": 1979,
"ctxt": 0
},
"value": true
}
}
]
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 1983,
"end": 2004,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 1983,
"end": 2003,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 1983,
"end": 2001,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1983,
"end": 1993,
"ctxt": 0
},
"value": "spreadBool",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1994,
"end": 2001,
"ctxt": 0
},
"value": "valueOf",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 2005,
"end": 2034,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2009,
"end": 2033,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 2009,
"end": 2018,
"ctxt": 0
},
"value": "spreadStr",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 2021,
"end": 2033,
"ctxt": 0
},
"properties": [
{
"type": "SpreadElement",
"spread": {
"start": 2023,
"end": 2026,
"ctxt": 0
},
"arguments": {
"type": "StringLiteral",
"span": {
"start": 2026,
"end": 2031,
"ctxt": 0
},
"value": "foo",
"raw": "'foo'"
}
}
]
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 2035,
"end": 2052,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 2035,
"end": 2051,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 2035,
"end": 2044,
"ctxt": 0
},
"value": "spreadStr",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 2045,
"end": 2051,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2075,
"end": 2095,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 2075,
"end": 2094,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 2075,
"end": 2091,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 2075,
"end": 2084,
"ctxt": 0
},
"value": "spreadStr",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 2085,
"end": 2091,
"ctxt": 0
},
"value": "charAt",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2092,
"end": 2093,
"ctxt": 0
},
"value": 1.0
}
}
],
"typeArguments": null
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 2149,
"end": 2188,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2153,
"end": 2188,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 2153,
"end": 2163,
"ctxt": 0
},
"value": "spreadFunc",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 2166,
"end": 2188,
"ctxt": 0
},
"properties": [
{
"type": "SpreadElement",
"spread": {
"start": 2168,
"end": 2171,
"ctxt": 0
},
"arguments": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 2171,
"end": 2186,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2183,
"end": 2186,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
}
]
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 2189,
"end": 2202,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 2189,
"end": 2201,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 2189,
"end": 2199,
"ctxt": 0
},
"value": "spreadFunc",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 2269,
"end": 2321,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2273,
"end": 2320,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 2273,
"end": 2283,
"ctxt": 0
},
"value": "setterOnly",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 2286,
"end": 2320,
"ctxt": 0
},
"properties": [
{
"type": "SpreadElement",
"spread": {
"start": 2288,
"end": 2291,
"ctxt": 0
},
"arguments": {
"type": "ObjectExpression",
"span": {
"start": 2291,
"end": 2318,
"ctxt": 0
},
"properties": [
{
"type": "SetterProperty",
"span": {
"start": 2293,
"end": 2316,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2297,
"end": 2298,
"ctxt": 0
},
"value": "b",
"optional": false
},
"param": {
"type": "Identifier",
"span": {
"start": 2300,
"end": 2311,
"ctxt": 0
},
"value": "bad",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2303,
"end": 2311,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2305,
"end": 2311,
"ctxt": 0
},
"kind": "number"
}
}
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2313,
"end": 2316,
"ctxt": 0
},
"stmts": []
}
}
]
}
}
]
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 2322,
"end": 2340,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 2322,
"end": 2339,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 2322,
"end": 2334,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 2322,
"end": 2332,
"ctxt": 0
},
"value": "setterOnly",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 2333,
"end": 2334,
"ctxt": 0
},
"value": "b",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 2337,
"end": 2339,
"ctxt": 0
},
"value": 12.0
}
}
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2431,
"end": 2432,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 2425,
"end": 2451,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 2435,
"end": 2441,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2435,
"end": 2436,
"ctxt": 0
},
"value": "p",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 2439,
"end": 2440,
"ctxt": 0
},
"value": 1.0
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassMethod",
"span": {
"start": 2442,
"end": 2449,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2442,
"end": 2443,
"ctxt": 0
},
"value": "m",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 2442,
"end": 2449,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2446,
"end": 2449,
"ctxt": 0
},
"stmts": []
},
"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": "VariableDeclaration",
"span": {
"start": 2452,
"end": 2470,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2456,
"end": 2470,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 2456,
"end": 2457,
"ctxt": 0
},
"value": "c",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2457,
"end": 2460,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2459,
"end": 2460,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2459,
"end": 2460,
"ctxt": 0
},
"value": "C",
"optional": false
},
"typeParams": null
}
}
},
"init": {
"type": "NewExpression",
"span": {
"start": 2463,
"end": 2470,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 2467,
"end": 2468,
"ctxt": 0
},
"value": "C",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 2471,
"end": 2493,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2475,
"end": 2493,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 2475,
"end": 2482,
"ctxt": 0
},
"value": "spreadC",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 2485,
"end": 2493,
"ctxt": 0
},
"properties": [
{
"type": "SpreadElement",
"spread": {
"start": 2487,
"end": 2490,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 2490,
"end": 2491,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
]
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 2494,
"end": 2506,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 2494,
"end": 2505,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 2494,
"end": 2503,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 2494,
"end": 2501,
"ctxt": 0
},
"value": "spreadC",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 2502,
"end": 2503,
"ctxt": 0
},
"value": "m",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 2560,
"end": 2589,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2564,
"end": 2588,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 2564,
"end": 2567,
"ctxt": 0
},
"value": "obj",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2567,
"end": 2575,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2569,
"end": 2575,
"ctxt": 0
},
"kind": "object"
}
}
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 2578,
"end": 2588,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 2580,
"end": 2581,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 2583,
"end": 2586,
"ctxt": 0
},
"value": 123.0
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 2590,
"end": 2617,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2594,
"end": 2616,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 2594,
"end": 2603,
"ctxt": 0
},
"value": "spreadObj",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 2606,
"end": 2616,
"ctxt": 0
},
"properties": [
{
"type": "SpreadElement",
"spread": {
"start": 2608,
"end": 2611,
"ctxt": 0
},
"arguments": {
"type": "Identifier",
"span": {
"start": 2611,
"end": 2614,
"ctxt": 0
},
"value": "obj",
"optional": false
}
}
]
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 2618,
"end": 2630,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 2618,
"end": 2629,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 2618,
"end": 2627,
"ctxt": 0
},
"value": "spreadObj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 2628,
"end": 2629,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
}
],
"interpreter": null
}