swc/crates/swc_ecma_parser/tests/tsc/controlFlowBindingPatternOrder.json
Donny/강동윤 3958f1792c
refactor(es/ast): Remove unused fields (#7518)
**Related issue:**

 - Closes #7347.
 - Closes #7487.
2023-06-12 08:02:34 +00:00

1889 lines
60 KiB
JSON

{
"type": "Script",
"span": {
"start": 115,
"end": 657,
"ctxt": 0
},
"body": [
{
"type": "BlockStatement",
"span": {
"start": 115,
"end": 214,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 121,
"end": 138,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 125,
"end": 137,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 125,
"end": 126,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 126,
"end": 133,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 128,
"end": 133,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 128,
"end": 129,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 128,
"end": 129,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 132,
"end": 133,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 132,
"end": 133,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 136,
"end": 137,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 143,
"end": 191,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 149,
"end": 190,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 149,
"end": 185,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 150,
"end": 184,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 150,
"end": 166,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 152,
"end": 161,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 153,
"end": 160,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 154,
"end": 159,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 154,
"end": 155,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 158,
"end": 159,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
}
},
"value": {
"type": "Identifier",
"span": {
"start": 163,
"end": 164,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "TsConstAssertion",
"span": {
"start": 169,
"end": 184,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 169,
"end": 175,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 170,
"end": 171,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 173,
"end": 174,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
]
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 188,
"end": 190,
"ctxt": 0
},
"elements": []
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 196,
"end": 212,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 202,
"end": 211,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 202,
"end": 204,
"ctxt": 0
},
"value": "bb",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 204,
"end": 207,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 206,
"end": 207,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 206,
"end": 207,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 210,
"end": 211,
"ctxt": 0
},
"value": "b",
"optional": false
},
"definite": false
}
]
}
]
},
{
"type": "BlockStatement",
"span": {
"start": 215,
"end": 312,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 221,
"end": 238,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 225,
"end": 237,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 225,
"end": 226,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 226,
"end": 233,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 228,
"end": 233,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 228,
"end": 229,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 228,
"end": 229,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 232,
"end": 233,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 232,
"end": 233,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 236,
"end": 237,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 243,
"end": 289,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 249,
"end": 288,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 249,
"end": 283,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 250,
"end": 282,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 250,
"end": 260,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 252,
"end": 255,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 253,
"end": 254,
"ctxt": 0
},
"value": "a",
"optional": false
}
},
"value": {
"type": "Identifier",
"span": {
"start": 257,
"end": 258,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "TsConstAssertion",
"span": {
"start": 263,
"end": 282,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 263,
"end": 273,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 264,
"end": 265,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
},
{
"spread": null,
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 267,
"end": 272,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 267,
"end": 268,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 271,
"end": 272,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
}
]
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 286,
"end": 288,
"ctxt": 0
},
"elements": []
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 294,
"end": 310,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 300,
"end": 309,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 300,
"end": 302,
"ctxt": 0
},
"value": "bb",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 302,
"end": 305,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 304,
"end": 305,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 304,
"end": 305,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 308,
"end": 309,
"ctxt": 0
},
"value": "b",
"optional": false
},
"definite": false
}
]
}
]
},
{
"type": "BlockStatement",
"span": {
"start": 313,
"end": 421,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 319,
"end": 340,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 323,
"end": 339,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 323,
"end": 324,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 324,
"end": 335,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 326,
"end": 335,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 326,
"end": 327,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 326,
"end": 327,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 330,
"end": 331,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 330,
"end": 331,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 334,
"end": 335,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 334,
"end": 335,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
]
}
}
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 338,
"end": 339,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 345,
"end": 394,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 351,
"end": 393,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 351,
"end": 388,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 352,
"end": 387,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 352,
"end": 362,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 354,
"end": 357,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 355,
"end": 356,
"ctxt": 0
},
"value": "a",
"optional": false
}
},
"value": {
"type": "Identifier",
"span": {
"start": 359,
"end": 360,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "TsConstAssertion",
"span": {
"start": 365,
"end": 387,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 365,
"end": 378,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 366,
"end": 367,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
},
{
"spread": null,
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 369,
"end": 374,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 369,
"end": 370,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 373,
"end": 374,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 376,
"end": 377,
"ctxt": 0
},
"value": 5.0,
"raw": "5"
}
}
]
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 391,
"end": 393,
"ctxt": 0
},
"elements": []
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 399,
"end": 419,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 405,
"end": 418,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 405,
"end": 407,
"ctxt": 0
},
"value": "bb",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 407,
"end": 414,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 409,
"end": 414,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 409,
"end": 410,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 409,
"end": 410,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 413,
"end": 414,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 413,
"end": 414,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 417,
"end": 418,
"ctxt": 0
},
"value": "b",
"optional": false
},
"definite": false
}
]
}
]
},
{
"type": "BlockStatement",
"span": {
"start": 422,
"end": 540,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 428,
"end": 445,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 432,
"end": 444,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 432,
"end": 433,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 433,
"end": 440,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 435,
"end": 440,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 435,
"end": 436,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 435,
"end": 436,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 439,
"end": 440,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 439,
"end": 440,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 443,
"end": 444,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 450,
"end": 513,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 456,
"end": 512,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 456,
"end": 492,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 457,
"end": 491,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 457,
"end": 473,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 459,
"end": 468,
"ctxt": 0
},
"expression": {
"type": "ParenthesisExpression",
"span": {
"start": 460,
"end": 467,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 461,
"end": 466,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 461,
"end": 462,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 465,
"end": 466,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
}
},
"value": {
"type": "Identifier",
"span": {
"start": 470,
"end": 471,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "TsConstAssertion",
"span": {
"start": 476,
"end": 491,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 476,
"end": 482,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 477,
"end": 478,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 480,
"end": 481,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
]
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 495,
"end": 512,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "TsConstAssertion",
"span": {
"start": 496,
"end": 511,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 496,
"end": 502,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 497,
"end": 498,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 500,
"end": 501,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
}
]
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 518,
"end": 538,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 524,
"end": 537,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 524,
"end": 526,
"ctxt": 0
},
"value": "bb",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 526,
"end": 533,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 528,
"end": 533,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 528,
"end": 529,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 528,
"end": 529,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 532,
"end": 533,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 532,
"end": 533,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
}
]
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 536,
"end": 537,
"ctxt": 0
},
"value": "b",
"optional": false
},
"definite": false
}
]
}
]
},
{
"type": "BlockStatement",
"span": {
"start": 541,
"end": 657,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 547,
"end": 564,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 551,
"end": 563,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 551,
"end": 552,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 552,
"end": 559,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 554,
"end": 559,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 554,
"end": 555,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 554,
"end": 555,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 558,
"end": 559,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 558,
"end": 559,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
}
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 562,
"end": 563,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 569,
"end": 630,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 575,
"end": 629,
"ctxt": 0
},
"id": {
"type": "ArrayPattern",
"span": {
"start": 575,
"end": 609,
"ctxt": 0
},
"elements": [
{
"type": "AssignmentPattern",
"span": {
"start": 576,
"end": 608,
"ctxt": 0
},
"left": {
"type": "ObjectPattern",
"span": {
"start": 576,
"end": 586,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Computed",
"span": {
"start": 578,
"end": 581,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 579,
"end": 580,
"ctxt": 0
},
"value": "a",
"optional": false
}
},
"value": {
"type": "Identifier",
"span": {
"start": 583,
"end": 584,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "TsConstAssertion",
"span": {
"start": 589,
"end": 608,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 589,
"end": 599,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 590,
"end": 595,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 590,
"end": 591,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 594,
"end": 595,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 597,
"end": 598,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 612,
"end": 629,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "TsConstAssertion",
"span": {
"start": 613,
"end": 628,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 613,
"end": 619,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 614,
"end": 615,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 617,
"end": 618,
"ctxt": 0
},
"value": 9.0,
"raw": "9"
}
}
]
}
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 635,
"end": 655,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 641,
"end": 654,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 641,
"end": 643,
"ctxt": 0
},
"value": "bb",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 643,
"end": 650,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 645,
"end": 650,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 645,
"end": 646,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 645,
"end": 646,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 649,
"end": 650,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 649,
"end": 650,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
}
}
]
}
}
},
"init": {
"type": "Identifier",
"span": {
"start": 653,
"end": 654,
"ctxt": 0
},
"value": "b",
"optional": false
},
"definite": false
}
]
}
]
}
],
"interpreter": null
}