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

2600 lines
63 KiB
JSON

{
"type": "Script",
"span": {
"start": 1,
"end": 1600,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 1,
"end": 49,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 5,
"end": 48,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 5,
"end": 16,
"ctxt": 0
},
"value": "strNumTuple",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 16,
"end": 34,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTupleType",
"span": {
"start": 18,
"end": 34,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 19,
"end": 25,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 19,
"end": 25,
"ctxt": 0
},
"kind": "string"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 27,
"end": 33,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 27,
"end": 33,
"ctxt": 0
},
"kind": "number"
}
}
]
}
}
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 37,
"end": 48,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 38,
"end": 43,
"ctxt": 0
},
"value": "foo",
"raw": "\"foo\""
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 45,
"end": 47,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 50,
"end": 116,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 54,
"end": 115,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 54,
"end": 67,
"ctxt": 0
},
"value": "numTupleTuple",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 67,
"end": 95,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTupleType",
"span": {
"start": 69,
"end": 95,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 70,
"end": 76,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 70,
"end": 76,
"ctxt": 0
},
"kind": "number"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 78,
"end": 94,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsTupleType",
"span": {
"start": 78,
"end": 94,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 79,
"end": 85,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 79,
"end": 85,
"ctxt": 0
},
"kind": "string"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 87,
"end": 93,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 87,
"end": 93,
"ctxt": 0
},
"kind": "number"
}
}
]
}
}
]
}
}
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 98,
"end": 115,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 99,
"end": 101,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
}
},
{
"spread": null,
"expression": {
"type": "ArrayExpression",
"span": {
"start": 103,
"end": 114,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 104,
"end": 109,
"ctxt": 0
},
"value": "bar",
"raw": "\"bar\""
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 111,
"end": 113,
"ctxt": 0
},
"value": 20.0,
"raw": "20"
}
}
]
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 117,
"end": 173,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 121,
"end": 172,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 121,
"end": 132,
"ctxt": 0
},
"value": "unionTuple1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 132,
"end": 158,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTupleType",
"span": {
"start": 134,
"end": 158,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 135,
"end": 141,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 135,
"end": 141,
"ctxt": 0
},
"kind": "number"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 143,
"end": 157,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsUnionType",
"span": {
"start": 143,
"end": 157,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 143,
"end": 149,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 151,
"end": 157,
"ctxt": 0
},
"kind": "number"
}
]
}
}
]
}
}
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 161,
"end": 172,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 162,
"end": 164,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 166,
"end": 171,
"ctxt": 0
},
"value": "foo",
"raw": "\"foo\""
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 174,
"end": 233,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 178,
"end": 232,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 178,
"end": 189,
"ctxt": 0
},
"value": "unionTuple2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 189,
"end": 216,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTupleType",
"span": {
"start": 191,
"end": 216,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 192,
"end": 199,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 192,
"end": 199,
"ctxt": 0
},
"kind": "boolean"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 201,
"end": 215,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsUnionType",
"span": {
"start": 201,
"end": 215,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 201,
"end": 207,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 209,
"end": 215,
"ctxt": 0
},
"kind": "number"
}
]
}
}
]
}
}
},
"init": {
"type": "ArrayExpression",
"span": {
"start": 219,
"end": 232,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "BooleanLiteral",
"span": {
"start": 220,
"end": 224,
"ctxt": 0
},
"value": true
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 226,
"end": 231,
"ctxt": 0
},
"value": "foo",
"raw": "\"foo\""
}
}
]
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 247,
"end": 260,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 251,
"end": 259,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 251,
"end": 255,
"ctxt": 0
},
"value": "idx0",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 258,
"end": 259,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 261,
"end": 274,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 265,
"end": 273,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 265,
"end": 269,
"ctxt": 0
},
"value": "idx1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 272,
"end": 273,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 275,
"end": 302,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 279,
"end": 301,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 279,
"end": 284,
"ctxt": 0
},
"value": "ele10",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 287,
"end": 301,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 287,
"end": 298,
"ctxt": 0
},
"value": "strNumTuple",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 298,
"end": 301,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 299,
"end": 300,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 313,
"end": 340,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 317,
"end": 339,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 317,
"end": 322,
"ctxt": 0
},
"value": "ele11",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 325,
"end": 339,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 325,
"end": 336,
"ctxt": 0
},
"value": "strNumTuple",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 336,
"end": 339,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 337,
"end": 338,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 351,
"end": 378,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 355,
"end": 377,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 355,
"end": 360,
"ctxt": 0
},
"value": "ele12",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 363,
"end": 377,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 363,
"end": 374,
"ctxt": 0
},
"value": "strNumTuple",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 374,
"end": 377,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 375,
"end": 376,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 398,
"end": 428,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 402,
"end": 427,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 402,
"end": 407,
"ctxt": 0
},
"value": "ele13",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 410,
"end": 427,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 410,
"end": 421,
"ctxt": 0
},
"value": "strNumTuple",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 421,
"end": 427,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 422,
"end": 426,
"ctxt": 0
},
"value": "idx0",
"optional": false
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 448,
"end": 478,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 452,
"end": 477,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 452,
"end": 457,
"ctxt": 0
},
"value": "ele14",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 460,
"end": 477,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 460,
"end": 471,
"ctxt": 0
},
"value": "strNumTuple",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 471,
"end": 477,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 472,
"end": 476,
"ctxt": 0
},
"value": "idx1",
"optional": false
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 498,
"end": 527,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 502,
"end": 526,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 502,
"end": 507,
"ctxt": 0
},
"value": "ele15",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 510,
"end": 526,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 510,
"end": 521,
"ctxt": 0
},
"value": "strNumTuple",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 521,
"end": 526,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 522,
"end": 525,
"ctxt": 0
},
"value": "0",
"raw": "\"0\""
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 538,
"end": 567,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 542,
"end": 566,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 542,
"end": 547,
"ctxt": 0
},
"value": "ele16",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 550,
"end": 566,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 550,
"end": 561,
"ctxt": 0
},
"value": "strNumTuple",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 561,
"end": 566,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 562,
"end": 565,
"ctxt": 0
},
"value": "1",
"raw": "\"1\""
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 578,
"end": 614,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 582,
"end": 613,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 582,
"end": 594,
"ctxt": 0
},
"value": "strNumTuple1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 597,
"end": 613,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 597,
"end": 610,
"ctxt": 0
},
"value": "numTupleTuple",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 610,
"end": 613,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 611,
"end": 612,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 636,
"end": 665,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 640,
"end": 664,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 640,
"end": 645,
"ctxt": 0
},
"value": "ele17",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 648,
"end": 664,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 648,
"end": 661,
"ctxt": 0
},
"value": "numTupleTuple",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 661,
"end": 664,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 662,
"end": 663,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 695,
"end": 722,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 699,
"end": 722,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 699,
"end": 704,
"ctxt": 0
},
"value": "ele19",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 707,
"end": 722,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 707,
"end": 718,
"ctxt": 0
},
"value": "strNumTuple",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 718,
"end": 722,
"ctxt": 0
},
"expression": {
"type": "UnaryExpression",
"span": {
"start": 719,
"end": 721,
"ctxt": 0
},
"operator": "-",
"argument": {
"type": "NumericLiteral",
"span": {
"start": 720,
"end": 721,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 739,
"end": 771,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 743,
"end": 770,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 743,
"end": 753,
"ctxt": 0
},
"value": "eleUnion10",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 756,
"end": 770,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 756,
"end": 767,
"ctxt": 0
},
"value": "unionTuple1",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 767,
"end": 770,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 768,
"end": 769,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 782,
"end": 814,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 786,
"end": 813,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 786,
"end": 796,
"ctxt": 0
},
"value": "eleUnion11",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 799,
"end": 813,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 799,
"end": 810,
"ctxt": 0
},
"value": "unionTuple1",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 810,
"end": 813,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 811,
"end": 812,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 834,
"end": 866,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 838,
"end": 865,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 838,
"end": 848,
"ctxt": 0
},
"value": "eleUnion12",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 851,
"end": 865,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 851,
"end": 862,
"ctxt": 0
},
"value": "unionTuple1",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 862,
"end": 865,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 863,
"end": 864,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 886,
"end": 921,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 890,
"end": 920,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 890,
"end": 900,
"ctxt": 0
},
"value": "eleUnion13",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 903,
"end": 920,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 903,
"end": 914,
"ctxt": 0
},
"value": "unionTuple1",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 914,
"end": 920,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 915,
"end": 919,
"ctxt": 0
},
"value": "idx0",
"optional": false
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 941,
"end": 976,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 945,
"end": 975,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 945,
"end": 955,
"ctxt": 0
},
"value": "eleUnion14",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 958,
"end": 975,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 958,
"end": 969,
"ctxt": 0
},
"value": "unionTuple1",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 969,
"end": 975,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 970,
"end": 974,
"ctxt": 0
},
"value": "idx1",
"optional": false
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 996,
"end": 1030,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1000,
"end": 1029,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1000,
"end": 1010,
"ctxt": 0
},
"value": "eleUnion15",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 1013,
"end": 1029,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1013,
"end": 1024,
"ctxt": 0
},
"value": "unionTuple1",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 1024,
"end": 1029,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 1025,
"end": 1028,
"ctxt": 0
},
"value": "0",
"raw": "\"0\""
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1041,
"end": 1075,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1045,
"end": 1074,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1045,
"end": 1055,
"ctxt": 0
},
"value": "eleUnion16",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 1058,
"end": 1074,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1058,
"end": 1069,
"ctxt": 0
},
"value": "unionTuple1",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 1069,
"end": 1074,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 1070,
"end": 1073,
"ctxt": 0
},
"value": "1",
"raw": "\"1\""
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1096,
"end": 1128,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1100,
"end": 1127,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1100,
"end": 1110,
"ctxt": 0
},
"value": "eleUnion20",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 1113,
"end": 1127,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1113,
"end": 1124,
"ctxt": 0
},
"value": "unionTuple2",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 1124,
"end": 1127,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1125,
"end": 1126,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1140,
"end": 1172,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1144,
"end": 1171,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1144,
"end": 1154,
"ctxt": 0
},
"value": "eleUnion21",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 1157,
"end": 1171,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1157,
"end": 1168,
"ctxt": 0
},
"value": "unionTuple2",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 1168,
"end": 1171,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1169,
"end": 1170,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1192,
"end": 1224,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1196,
"end": 1223,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1196,
"end": 1206,
"ctxt": 0
},
"value": "eleUnion22",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 1209,
"end": 1223,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1209,
"end": 1220,
"ctxt": 0
},
"value": "unionTuple2",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 1220,
"end": 1223,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1221,
"end": 1222,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1254,
"end": 1289,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1258,
"end": 1288,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1258,
"end": 1268,
"ctxt": 0
},
"value": "eleUnion23",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 1271,
"end": 1288,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1271,
"end": 1282,
"ctxt": 0
},
"value": "unionTuple2",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 1282,
"end": 1288,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1283,
"end": 1287,
"ctxt": 0
},
"value": "idx0",
"optional": false
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1319,
"end": 1354,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1323,
"end": 1353,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1323,
"end": 1333,
"ctxt": 0
},
"value": "eleUnion24",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 1336,
"end": 1353,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1336,
"end": 1347,
"ctxt": 0
},
"value": "unionTuple2",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 1347,
"end": 1353,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1348,
"end": 1352,
"ctxt": 0
},
"value": "idx1",
"optional": false
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1384,
"end": 1418,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1388,
"end": 1417,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1388,
"end": 1398,
"ctxt": 0
},
"value": "eleUnion25",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 1401,
"end": 1417,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1401,
"end": 1412,
"ctxt": 0
},
"value": "unionTuple2",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 1412,
"end": 1417,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 1413,
"end": 1416,
"ctxt": 0
},
"value": "0",
"raw": "\"0\""
}
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1430,
"end": 1464,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1434,
"end": 1463,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1434,
"end": 1444,
"ctxt": 0
},
"value": "eleUnion26",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 1447,
"end": 1463,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1447,
"end": 1458,
"ctxt": 0
},
"value": "unionTuple2",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 1458,
"end": 1463,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 1459,
"end": 1462,
"ctxt": 0
},
"value": "1",
"raw": "\"1\""
}
}
},
"definite": false
}
]
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 1485,
"end": 1515,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 1490,
"end": 1492,
"ctxt": 0
},
"value": "t1",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 1495,
"end": 1514,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTupleType",
"span": {
"start": 1495,
"end": 1511,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 1496,
"end": 1502,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1496,
"end": 1502,
"ctxt": 0
},
"kind": "string"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 1504,
"end": 1510,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1504,
"end": 1510,
"ctxt": 0
},
"kind": "number"
}
}
]
},
"indexType": {
"type": "TsLiteralType",
"span": {
"start": 1512,
"end": 1513,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1512,
"end": 1513,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 1527,
"end": 1557,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 1532,
"end": 1534,
"ctxt": 0
},
"value": "t2",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 1537,
"end": 1556,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTupleType",
"span": {
"start": 1537,
"end": 1553,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 1538,
"end": 1544,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1538,
"end": 1544,
"ctxt": 0
},
"kind": "string"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 1546,
"end": 1552,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1546,
"end": 1552,
"ctxt": 0
},
"kind": "number"
}
}
]
},
"indexType": {
"type": "TsLiteralType",
"span": {
"start": 1554,
"end": 1555,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1554,
"end": 1555,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 1569,
"end": 1600,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 1574,
"end": 1576,
"ctxt": 0
},
"value": "t3",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 1579,
"end": 1599,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTupleType",
"span": {
"start": 1579,
"end": 1595,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 1580,
"end": 1586,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1580,
"end": 1586,
"ctxt": 0
},
"kind": "string"
}
},
{
"type": "TsTupleElement",
"span": {
"start": 1588,
"end": 1594,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsKeywordType",
"span": {
"start": 1588,
"end": 1594,
"ctxt": 0
},
"kind": "number"
}
}
]
},
"indexType": {
"type": "TsLiteralType",
"span": {
"start": 1596,
"end": 1598,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 1597,
"end": 1598,
"ctxt": 0
},
"value": -1.0,
"raw": "-1"
}
}
}
}
],
"interpreter": null
}