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

2790 lines
83 KiB
JSON

{
"type": "Script",
"span": {
"start": 165,
"end": 2435,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 165,
"end": 231,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 169,
"end": 231,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 169,
"end": 177,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 170,
"end": 172,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 170,
"end": 172,
"ctxt": 0
},
"value": "a1",
"optional": false
},
"value": null
},
{
"type": "AssignmentPatternProperty",
"span": {
"start": 174,
"end": 176,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 174,
"end": 176,
"ctxt": 0
},
"value": "a2",
"optional": false
},
"value": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 177,
"end": 205,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 179,
"end": 205,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 181,
"end": 192,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 181,
"end": 183,
"ctxt": 0
},
"value": "a1",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 183,
"end": 191,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 185,
"end": 191,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 193,
"end": 203,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 193,
"end": 195,
"ctxt": 0
},
"value": "a2",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 195,
"end": 203,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 197,
"end": 203,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
}
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 208,
"end": 231,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 210,
"end": 212,
"ctxt": 0
},
"value": "a1",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 214,
"end": 216,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 218,
"end": 220,
"ctxt": 0
},
"value": "a2",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 222,
"end": 229,
"ctxt": 0
},
"value": "world",
"raw": "\"world\""
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 232,
"end": 309,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 236,
"end": 308,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 236,
"end": 252,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 237,
"end": 239,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
{
"type": "ArrayPattern",
"span": {
"start": 241,
"end": 247,
"ctxt": 0
},
"elements": [
{
"type": "ArrayPattern",
"span": {
"start": 242,
"end": 246,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 243,
"end": 245,
"ctxt": 0
},
"value": "a4",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 249,
"end": 251,
"ctxt": 0
},
"value": "a5",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 252,
"end": 283,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTupleType",
"span": {
"start": 254,
"end": 283,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 255,
"end": 261,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 255,
"end": 261,
"ctxt": 0
},
"kind": "number"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 263,
"end": 273,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsTupleType",
"span": {
"start": 263,
"end": 273,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 264,
"end": 272,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsTupleType",
"span": {
"start": 264,
"end": 272,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 265,
"end": 271,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 265,
"end": 271,
"ctxt": 0
},
"kind": "string"
}
}
]
}
}
]
}
},
{
"type": "TsTupleElement",
"span": {
"start": 275,
"end": 282,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 275,
"end": 282,
"ctxt": 0
},
"kind": "boolean"
}
}
]
}
}
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 286,
"end": 308,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 287,
"end": 288,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 290,
"end": 301,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 291,
"end": 300,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 292,
"end": 299,
"ctxt": 0
},
"value": "hello",
"raw": "\"hello\""
}
}
]
}
}
]
}
},
{
"spread": null,
"expression": {
"type": "BooleanLiteral",
"span": {
"start": 303,
"end": 307,
"ctxt": 0
},
"value": true
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 524,
"end": 592,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 528,
"end": 591,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 528,
"end": 564,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 530,
"end": 532,
"ctxt": 0
},
"value": "b1",
"optional": false
},
"value": {
"type": "AssignmentPattern",
"span": {
"start": 534,
"end": 561,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 534,
"end": 541,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 536,
"end": 539,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 536,
"end": 539,
"ctxt": 0
},
"value": "b11",
"optional": false
},
"value": null
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 544,
"end": 561,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 546,
"end": 549,
"ctxt": 0
},
"value": "b11",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 551,
"end": 559,
"ctxt": 0
},
"value": "string",
"raw": "\"string\""
}
}
]
},
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 567,
"end": 591,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 569,
"end": 571,
"ctxt": 0
},
"value": "b1",
"optional": false
},
"value": {
"type": "ObjectExpression",
"span": {
"start": 573,
"end": 589,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 575,
"end": 578,
"ctxt": 0
},
"value": "b11",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 580,
"end": 587,
"ctxt": 0
},
"value": "world",
"raw": "\"world\""
}
}
]
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 593,
"end": 630,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 597,
"end": 629,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 597,
"end": 601,
"ctxt": 0
},
"value": "temp",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 604,
"end": 629,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 606,
"end": 608,
"ctxt": 0
},
"value": "t1",
"optional": false
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 610,
"end": 614,
"ctxt": 0
},
"value": true
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 616,
"end": 618,
"ctxt": 0
},
"value": "t2",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 620,
"end": 627,
"ctxt": 0
},
"value": "false",
"raw": "\"false\""
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 631,
"end": 707,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 635,
"end": 706,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 635,
"end": 665,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 636,
"end": 642,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 636,
"end": 638,
"ctxt": 0
},
"value": "b2",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 641,
"end": 642,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 644,
"end": 653,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 644,
"end": 646,
"ctxt": 0
},
"value": "b3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "BooleanLiteral",
"span": {
"start": 649,
"end": 653,
"ctxt": 0
},
"value": true
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 655,
"end": 664,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 655,
"end": 657,
"ctxt": 0
},
"value": "b4",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 660,
"end": 664,
"ctxt": 0
},
"value": "temp",
"optional": false
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 668,
"end": 706,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 669,
"end": 670,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
},
{
"spread": null,
"expression": {
"type": "BooleanLiteral",
"span": {
"start": 672,
"end": 677,
"ctxt": 0
},
"value": false
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 679,
"end": 705,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 681,
"end": 683,
"ctxt": 0
},
"value": "t1",
"optional": false
},
"value": {
"type": "BooleanLiteral",
"span": {
"start": 685,
"end": 690,
"ctxt": 0
},
"value": false
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 692,
"end": 694,
"ctxt": 0
},
"value": "t2",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 696,
"end": 703,
"ctxt": 0
},
"value": "hello",
"raw": "\"hello\""
}
}
]
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 708,
"end": 779,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 712,
"end": 778,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 712,
"end": 742,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 713,
"end": 719,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 713,
"end": 715,
"ctxt": 0
},
"value": "b5",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 718,
"end": 719,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 721,
"end": 730,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 721,
"end": 723,
"ctxt": 0
},
"value": "b6",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "BooleanLiteral",
"span": {
"start": 726,
"end": 730,
"ctxt": 0
},
"value": true
},
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 732,
"end": 741,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 732,
"end": 734,
"ctxt": 0
},
"value": "b7",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 737,
"end": 741,
"ctxt": 0
},
"value": "temp",
"optional": false
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 745,
"end": 778,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 746,
"end": 755,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 757,
"end": 766,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 768,
"end": 777,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1017,
"end": 1039,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1021,
"end": 1038,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1021,
"end": 1028,
"ctxt": 0
},
"elements": [
{
"type": "RestElement",
"span": {
"start": 1022,
"end": 1027,
"ctxt": 0
},
"rest": {
"start": 1022,
"end": 1025,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1025,
"end": 1027,
"ctxt": 0
},
"value": "c1",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1031,
"end": 1038,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1032,
"end": 1033,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1034,
"end": 1035,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1036,
"end": 1037,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1041,
"end": 1073,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1045,
"end": 1072,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1045,
"end": 1052,
"ctxt": 0
},
"elements": [
{
"type": "RestElement",
"span": {
"start": 1046,
"end": 1051,
"ctxt": 0
},
"rest": {
"start": 1046,
"end": 1049,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 1049,
"end": 1051,
"ctxt": 0
},
"value": "c2",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1055,
"end": 1072,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1056,
"end": 1057,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1058,
"end": 1059,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1060,
"end": 1061,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1063,
"end": 1071,
"ctxt": 0
},
"value": "string",
"raw": "\"string\""
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1404,
"end": 1430,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1408,
"end": 1430,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1408,
"end": 1415,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1409,
"end": 1411,
"ctxt": 0
},
"value": "d1",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1412,
"end": 1414,
"ctxt": 0
},
"value": "d2",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1418,
"end": 1430,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1419,
"end": 1420,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1421,
"end": 1429,
"ctxt": 0
},
"value": "string",
"raw": "\"string\""
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1679,
"end": 1710,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1683,
"end": 1710,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1683,
"end": 1688,
"ctxt": 0
},
"value": "temp1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1691,
"end": 1710,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "BooleanLiteral",
"span": {
"start": 1692,
"end": 1696,
"ctxt": 0
},
"value": true
}
},
{
"spread": null,
"expression": {
"type": "BooleanLiteral",
"span": {
"start": 1698,
"end": 1703,
"ctxt": 0
},
"value": false
}
},
{
"spread": null,
"expression": {
"type": "BooleanLiteral",
"span": {
"start": 1705,
"end": 1709,
"ctxt": 0
},
"value": true
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1711,
"end": 1750,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1715,
"end": 1749,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 1715,
"end": 1723,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1716,
"end": 1718,
"ctxt": 0
},
"value": "d3",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1720,
"end": 1722,
"ctxt": 0
},
"value": "d4",
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 1726,
"end": 1749,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1727,
"end": 1728,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 1730,
"end": 1738,
"ctxt": 0
},
"value": "string",
"raw": "\"string\""
}
},
{
"spread": {
"start": 1740,
"end": 1743,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1743,
"end": 1748,
"ctxt": 0
},
"value": "temp1",
"optional": false
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1795,
"end": 1875,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1799,
"end": 1874,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 1799,
"end": 1840,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1800,
"end": 1801,
"ctxt": 0
},
"value": "e",
"optional": false
},
"value": {
"type": "ArrayPattern",
"span": {
"start": 1803,
"end": 1839,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1804,
"end": 1806,
"ctxt": 0
},
"value": "e1",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1808,
"end": 1810,
"ctxt": 0
},
"value": "e2",
"optional": false,
"typeAnnotation": null
},
{
"type": "AssignmentPattern",
"span": {
"start": 1812,
"end": 1838,
"ctxt": 0
},
"left": {
"type": "Identifier",
"span": {
"start": 1812,
"end": 1814,
"ctxt": 0
},
"value": "e3",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 1817,
"end": 1838,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1819,
"end": 1821,
"ctxt": 0
},
"value": "b1",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1823,
"end": 1827,
"ctxt": 0
},
"value": 1000.0,
"raw": "1000"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1829,
"end": 1831,
"ctxt": 0
},
"value": "b4",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1833,
"end": 1836,
"ctxt": 0
},
"value": 200.0,
"raw": "200"
}
}
]
},
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 1843,
"end": 1874,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1845,
"end": 1846,
"ctxt": 0
},
"value": "e",
"optional": false
},
"value": {
"type": "ArrayExpression",
"span": {
"start": 1848,
"end": 1872,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1849,
"end": 1850,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1852,
"end": 1853,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1855,
"end": 1871,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1857,
"end": 1859,
"ctxt": 0
},
"value": "b1",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1861,
"end": 1862,
"ctxt": 0
},
"value": 4.0,
"raw": "4"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1864,
"end": 1866,
"ctxt": 0
},
"value": "b4",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1868,
"end": 1869,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
]
}
}
]
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1877,
"end": 1949,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1881,
"end": 1948,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 1881,
"end": 1914,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1882,
"end": 1883,
"ctxt": 0
},
"value": "f",
"optional": false
},
"value": {
"type": "ArrayPattern",
"span": {
"start": 1885,
"end": 1913,
"ctxt": 0
},
"elements": [
{
"type": "Identifier",
"span": {
"start": 1886,
"end": 1888,
"ctxt": 0
},
"value": "f1",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 1890,
"end": 1892,
"ctxt": 0
},
"value": "f2",
"optional": false,
"typeAnnotation": null
},
{
"type": "ObjectPattern",
"span": {
"start": 1894,
"end": 1908,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1896,
"end": 1898,
"ctxt": 0
},
"value": "f3",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 1900,
"end": 1902,
"ctxt": 0
},
"value": "f4",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "AssignmentPatternProperty",
"span": {
"start": 1904,
"end": 1906,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1904,
"end": 1906,
"ctxt": 0
},
"value": "f5",
"optional": false
},
"value": null
}
],
"optional": false,
"typeAnnotation": null
}
],
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 1917,
"end": 1948,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1919,
"end": 1920,
"ctxt": 0
},
"value": "f",
"optional": false
},
"value": {
"type": "ArrayExpression",
"span": {
"start": 1922,
"end": 1946,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1923,
"end": 1924,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1926,
"end": 1927,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
},
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 1929,
"end": 1945,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1931,
"end": 1933,
"ctxt": 0
},
"value": "f3",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1935,
"end": 1936,
"ctxt": 0
},
"value": 4.0,
"raw": "4"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 1938,
"end": 1940,
"ctxt": 0
},
"value": "f5",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1942,
"end": 1943,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
]
}
}
]
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 2271,
"end": 2351,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2275,
"end": 2350,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 2275,
"end": 2304,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 2276,
"end": 2277,
"ctxt": 0
},
"value": "g",
"optional": false
},
"value": {
"type": "ObjectPattern",
"span": {
"start": 2279,
"end": 2303,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 2280,
"end": 2302,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2280,
"end": 2282,
"ctxt": 0
},
"value": "g1",
"optional": false
},
"value": {
"type": "ArrayExpression",
"span": {
"start": 2285,
"end": 2302,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 2286,
"end": 2295,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "NullLiteral",
"span": {
"start": 2297,
"end": 2301,
"ctxt": 0
}
}
}
]
}
}
],
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2304,
"end": 2326,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 2306,
"end": 2326,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 2308,
"end": 2324,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 2308,
"end": 2309,
"ctxt": 0
},
"value": "g",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2309,
"end": 2324,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 2311,
"end": 2324,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 2313,
"end": 2322,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 2313,
"end": 2315,
"ctxt": 0
},
"value": "g1",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2315,
"end": 2322,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 2317,
"end": 2322,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 2317,
"end": 2320,
"ctxt": 0
},
"kind": "any"
}
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
}
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 2329,
"end": 2350,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 2331,
"end": 2332,
"ctxt": 0
},
"value": "g",
"optional": false
},
"value": {
"type": "ObjectExpression",
"span": {
"start": 2334,
"end": 2348,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 2336,
"end": 2338,
"ctxt": 0
},
"value": "g1",
"optional": false
},
"value": {
"type": "ArrayExpression",
"span": {
"start": 2340,
"end": 2346,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2341,
"end": 2342,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2344,
"end": 2345,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
]
}
}
]
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 2352,
"end": 2435,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2356,
"end": 2434,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 2356,
"end": 2385,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 2357,
"end": 2358,
"ctxt": 0
},
"value": "h",
"optional": false
},
"value": {
"type": "ObjectPattern",
"span": {
"start": 2360,
"end": 2384,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 2361,
"end": 2383,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2361,
"end": 2363,
"ctxt": 0
},
"value": "h1",
"optional": false
},
"value": {
"type": "ArrayExpression",
"span": {
"start": 2366,
"end": 2383,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 2367,
"end": 2376,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "NullLiteral",
"span": {
"start": 2378,
"end": 2382,
"ctxt": 0
}
}
}
]
}
}
],
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2385,
"end": 2410,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 2387,
"end": 2410,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 2389,
"end": 2408,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 2389,
"end": 2390,
"ctxt": 0
},
"value": "h",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2390,
"end": 2408,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 2392,
"end": 2408,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 2394,
"end": 2406,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 2394,
"end": 2396,
"ctxt": 0
},
"value": "h1",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2396,
"end": 2406,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 2398,
"end": 2406,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 2398,
"end": 2404,
"ctxt": 0
},
"kind": "number"
}
}
},
"typeParams": null
}
]
}
},
"typeParams": null
}
]
}
}
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 2413,
"end": 2434,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 2415,
"end": 2416,
"ctxt": 0
},
"value": "h",
"optional": false
},
"value": {
"type": "ObjectExpression",
"span": {
"start": 2418,
"end": 2432,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 2420,
"end": 2422,
"ctxt": 0
},
"value": "h1",
"optional": false
},
"value": {
"type": "ArrayExpression",
"span": {
"start": 2424,
"end": 2430,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2425,
"end": 2426,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 2428,
"end": 2429,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
]
}
}
]
}
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}