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

10777 lines
297 KiB
JSON

{
"type": "Module",
"span": {
"start": 38,
"end": 4416,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 47,
"end": 49,
"ctxt": 0
},
"value": "f1",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 50,
"end": 89,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 50,
"end": 89,
"ctxt": 0
},
"value": "obj",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 53,
"end": 89,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 55,
"end": 89,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 57,
"end": 67,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 57,
"end": 58,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 58,
"end": 66,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 60,
"end": 66,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 68,
"end": 77,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 68,
"end": 69,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 69,
"end": 76,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 71,
"end": 76,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 71,
"end": 72,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 71,
"end": 72,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 75,
"end": 76,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 75,
"end": 76,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
]
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 78,
"end": 87,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 78,
"end": 79,
"ctxt": 0
},
"value": "c",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 79,
"end": 87,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 81,
"end": 87,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 91,
"end": 98,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 91,
"end": 98,
"ctxt": 0
},
"value": "k0",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 93,
"end": 98,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 95,
"end": 98,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 95,
"end": 98,
"ctxt": 0
},
"value": "a",
"raw": "'a'"
}
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 100,
"end": 113,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 100,
"end": 113,
"ctxt": 0
},
"value": "k1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 102,
"end": 113,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 104,
"end": 113,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 104,
"end": 107,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 104,
"end": 107,
"ctxt": 0
},
"value": "a",
"raw": "'a'"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 110,
"end": 113,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 110,
"end": 113,
"ctxt": 0
},
"value": "b",
"raw": "'b'"
}
}
]
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 115,
"end": 134,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 115,
"end": 134,
"ctxt": 0
},
"value": "k2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 117,
"end": 134,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 119,
"end": 134,
"ctxt": 0
},
"types": [
{
"type": "TsLiteralType",
"span": {
"start": 119,
"end": 122,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 119,
"end": 122,
"ctxt": 0
},
"value": "a",
"raw": "'a'"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 125,
"end": 128,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 125,
"end": 128,
"ctxt": 0
},
"value": "b",
"raw": "'b'"
}
},
{
"type": "TsLiteralType",
"span": {
"start": 131,
"end": 134,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 131,
"end": 134,
"ctxt": 0
},
"value": "c",
"raw": "'c'"
}
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 38,
"end": 364,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 136,
"end": 364,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 142,
"end": 154,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 142,
"end": 153,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 142,
"end": 149,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 142,
"end": 145,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 145,
"end": 149,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 146,
"end": 148,
"ctxt": 0
},
"value": "k0",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 152,
"end": 153,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 159,
"end": 171,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 159,
"end": 170,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 159,
"end": 166,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 159,
"end": 162,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 162,
"end": 166,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 163,
"end": 165,
"ctxt": 0
},
"value": "k0",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 169,
"end": 170,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 176,
"end": 190,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 176,
"end": 189,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 176,
"end": 183,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 176,
"end": 179,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 179,
"end": 183,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 180,
"end": 182,
"ctxt": 0
},
"value": "k0",
"optional": false
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 186,
"end": 189,
"ctxt": 0
},
"value": "x",
"raw": "'x'"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 205,
"end": 217,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 205,
"end": 216,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 205,
"end": 212,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 205,
"end": 208,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 208,
"end": 212,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 209,
"end": 211,
"ctxt": 0
},
"value": "k1",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 215,
"end": 216,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 222,
"end": 234,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 222,
"end": 233,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 222,
"end": 229,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 222,
"end": 225,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 225,
"end": 229,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 226,
"end": 228,
"ctxt": 0
},
"value": "k1",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 232,
"end": 233,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 251,
"end": 265,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 251,
"end": 264,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 251,
"end": 258,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 251,
"end": 254,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 254,
"end": 258,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 255,
"end": 257,
"ctxt": 0
},
"value": "k1",
"optional": false
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 261,
"end": 264,
"ctxt": 0
},
"value": "x",
"raw": "'x'"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 280,
"end": 292,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 280,
"end": 291,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 280,
"end": 287,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 280,
"end": 283,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 283,
"end": 287,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 284,
"end": 286,
"ctxt": 0
},
"value": "k2",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 290,
"end": 291,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 309,
"end": 321,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 309,
"end": 320,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 309,
"end": 316,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 309,
"end": 312,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 312,
"end": 316,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 313,
"end": 315,
"ctxt": 0
},
"value": "k2",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 319,
"end": 320,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 338,
"end": 352,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 338,
"end": 351,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 338,
"end": 345,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 338,
"end": 341,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 341,
"end": 345,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 342,
"end": 344,
"ctxt": 0
},
"value": "k2",
"optional": false
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 348,
"end": 351,
"ctxt": 0
},
"value": "x",
"raw": "'x'"
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 375,
"end": 377,
"ctxt": 0
},
"value": "f2",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 415,
"end": 442,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 415,
"end": 442,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 416,
"end": 442,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 418,
"end": 442,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 420,
"end": 430,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 420,
"end": 421,
"ctxt": 0
},
"value": "x",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 421,
"end": 429,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 423,
"end": 429,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 431,
"end": 440,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 431,
"end": 432,
"ctxt": 0
},
"value": "y",
"optional": false
},
"computed": false,
"optional": false,
"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
}
]
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 444,
"end": 472,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 444,
"end": 472,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 445,
"end": 472,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 447,
"end": 472,
"ctxt": 0
},
"members": [
{
"type": "TsIndexSignature",
"params": [
{
"type": "Identifier",
"span": {
"start": 450,
"end": 461,
"ctxt": 0
},
"value": "key",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 453,
"end": 461,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 455,
"end": 461,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 462,
"end": 470,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 464,
"end": 470,
"ctxt": 0
},
"kind": "number"
}
},
"readonly": false,
"static": false,
"span": {
"start": 449,
"end": 470,
"ctxt": 0
}
}
]
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 474,
"end": 478,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 474,
"end": 478,
"ctxt": 0
},
"value": "c",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 475,
"end": 478,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 477,
"end": 478,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 477,
"end": 478,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 480,
"end": 490,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 480,
"end": 490,
"ctxt": 0
},
"value": "k",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 481,
"end": 490,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeOperator",
"span": {
"start": 483,
"end": 490,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 489,
"end": 490,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 489,
"end": 490,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 366,
"end": 1072,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 492,
"end": 1072,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 498,
"end": 504,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 498,
"end": 503,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 498,
"end": 499,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 502,
"end": 503,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 583,
"end": 589,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 583,
"end": 588,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 583,
"end": 584,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 587,
"end": 588,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 668,
"end": 674,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 668,
"end": 673,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 668,
"end": 669,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 672,
"end": 673,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 679,
"end": 685,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 679,
"end": 684,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 679,
"end": 680,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 683,
"end": 684,
"ctxt": 0
},
"value": "c",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 690,
"end": 696,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 690,
"end": 695,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 690,
"end": 691,
"ctxt": 0
},
"value": "c",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 694,
"end": 695,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 776,
"end": 782,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 776,
"end": 781,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 776,
"end": 777,
"ctxt": 0
},
"value": "c",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 780,
"end": 781,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 862,
"end": 866,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 862,
"end": 865,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 862,
"end": 863,
"ctxt": 0
},
"value": "a",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 864,
"end": 865,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 871,
"end": 875,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 871,
"end": 874,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 871,
"end": 872,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 873,
"end": 874,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 880,
"end": 884,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 880,
"end": 883,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 880,
"end": 881,
"ctxt": 0
},
"value": "c",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 882,
"end": 883,
"ctxt": 0
},
"value": "x",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 889,
"end": 894,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 889,
"end": 893,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 889,
"end": 890,
"ctxt": 0
},
"value": "c",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 890,
"end": 893,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 891,
"end": 892,
"ctxt": 0
},
"value": "k",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 899,
"end": 907,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 899,
"end": 906,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 899,
"end": 902,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 899,
"end": 900,
"ctxt": 0
},
"value": "a",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 901,
"end": 902,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 905,
"end": 906,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 912,
"end": 920,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 912,
"end": 919,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 912,
"end": 915,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 912,
"end": 913,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 914,
"end": 915,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 918,
"end": 919,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 925,
"end": 933,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 925,
"end": 932,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 925,
"end": 928,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 925,
"end": 926,
"ctxt": 0
},
"value": "c",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 927,
"end": 928,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 931,
"end": 932,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1000,
"end": 1009,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1000,
"end": 1008,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1000,
"end": 1004,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1000,
"end": 1001,
"ctxt": 0
},
"value": "c",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 1001,
"end": 1004,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1002,
"end": 1003,
"ctxt": 0
},
"value": "k",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1007,
"end": 1008,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 377,
"end": 414,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 378,
"end": 413,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 378,
"end": 379,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeLiteral",
"span": {
"start": 388,
"end": 413,
"ctxt": 0
},
"members": [
{
"type": "TsIndexSignature",
"params": [
{
"type": "Identifier",
"span": {
"start": 391,
"end": 402,
"ctxt": 0
},
"value": "key",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 394,
"end": 402,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 396,
"end": 402,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 403,
"end": 411,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 405,
"end": 411,
"ctxt": 0
},
"kind": "number"
}
},
"readonly": false,
"static": false,
"span": {
"start": 390,
"end": 411,
"ctxt": 0
}
}
]
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1083,
"end": 1085,
"ctxt": 0
},
"value": "f3",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 1104,
"end": 1127,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1104,
"end": 1127,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1105,
"end": 1127,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsMappedType",
"span": {
"start": 1107,
"end": 1127,
"ctxt": 0
},
"readonly": null,
"typeParam": {
"type": "TsTypeParameter",
"span": {
"start": 1110,
"end": 1116,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1110,
"end": 1111,
"ctxt": 0
},
"value": "P",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 1115,
"end": 1116,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1115,
"end": 1116,
"ctxt": 0
},
"value": "K",
"optional": false
},
"typeParams": null
},
"default": null
},
"nameType": null,
"optional": null,
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1119,
"end": 1125,
"ctxt": 0
},
"kind": "number"
}
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1129,
"end": 1157,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1129,
"end": 1157,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1130,
"end": 1157,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 1132,
"end": 1157,
"ctxt": 0
},
"members": [
{
"type": "TsIndexSignature",
"params": [
{
"type": "Identifier",
"span": {
"start": 1135,
"end": 1146,
"ctxt": 0
},
"value": "key",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1138,
"end": 1146,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1140,
"end": 1146,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1147,
"end": 1155,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1149,
"end": 1155,
"ctxt": 0
},
"kind": "number"
}
},
"readonly": false,
"static": false,
"span": {
"start": 1134,
"end": 1155,
"ctxt": 0
}
}
]
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1159,
"end": 1163,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1159,
"end": 1163,
"ctxt": 0
},
"value": "k",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1160,
"end": 1163,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1162,
"end": 1163,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1162,
"end": 1163,
"ctxt": 0
},
"value": "K",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 1074,
"end": 1278,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1165,
"end": 1278,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1171,
"end": 1177,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1171,
"end": 1176,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1171,
"end": 1172,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 1175,
"end": 1176,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1246,
"end": 1252,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1246,
"end": 1251,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1246,
"end": 1247,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 1250,
"end": 1251,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1257,
"end": 1262,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 1257,
"end": 1261,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1257,
"end": 1258,
"ctxt": 0
},
"value": "a",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 1258,
"end": 1261,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1259,
"end": 1260,
"ctxt": 0
},
"value": "k",
"optional": false
}
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1267,
"end": 1276,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1267,
"end": 1275,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1267,
"end": 1271,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1267,
"end": 1268,
"ctxt": 0
},
"value": "a",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 1268,
"end": 1271,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1269,
"end": 1270,
"ctxt": 0
},
"value": "k",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1274,
"end": 1275,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1085,
"end": 1103,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1086,
"end": 1102,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1086,
"end": 1087,
"ctxt": 0
},
"value": "K",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsKeywordType",
"span": {
"start": 1096,
"end": 1102,
"ctxt": 0
},
"kind": "string"
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1289,
"end": 1292,
"ctxt": 0
},
"value": "f3b",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 1311,
"end": 1334,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1311,
"end": 1334,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1312,
"end": 1334,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsMappedType",
"span": {
"start": 1314,
"end": 1334,
"ctxt": 0
},
"readonly": null,
"typeParam": {
"type": "TsTypeParameter",
"span": {
"start": 1317,
"end": 1323,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1317,
"end": 1318,
"ctxt": 0
},
"value": "P",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 1322,
"end": 1323,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1322,
"end": 1323,
"ctxt": 0
},
"value": "K",
"optional": false
},
"typeParams": null
},
"default": null
},
"nameType": null,
"optional": null,
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1326,
"end": 1332,
"ctxt": 0
},
"kind": "number"
}
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1336,
"end": 1364,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1336,
"end": 1364,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1337,
"end": 1364,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsMappedType",
"span": {
"start": 1339,
"end": 1364,
"ctxt": 0
},
"readonly": null,
"typeParam": {
"type": "TsTypeParameter",
"span": {
"start": 1342,
"end": 1353,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1342,
"end": 1343,
"ctxt": 0
},
"value": "P",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsKeywordType",
"span": {
"start": 1347,
"end": 1353,
"ctxt": 0
},
"kind": "string"
},
"default": null
},
"nameType": null,
"optional": null,
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1356,
"end": 1362,
"ctxt": 0
},
"kind": "number"
}
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1366,
"end": 1370,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1366,
"end": 1370,
"ctxt": 0
},
"value": "k",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1367,
"end": 1370,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1369,
"end": 1370,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1369,
"end": 1370,
"ctxt": 0
},
"value": "K",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 1280,
"end": 1461,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1372,
"end": 1461,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1378,
"end": 1384,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1378,
"end": 1383,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1378,
"end": 1379,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 1382,
"end": 1383,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1453,
"end": 1459,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1453,
"end": 1458,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1453,
"end": 1454,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 1457,
"end": 1458,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1292,
"end": 1310,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1293,
"end": 1309,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1293,
"end": 1294,
"ctxt": 0
},
"value": "K",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsKeywordType",
"span": {
"start": 1303,
"end": 1309,
"ctxt": 0
},
"kind": "string"
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1472,
"end": 1474,
"ctxt": 0
},
"value": "f4",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 1493,
"end": 1524,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1493,
"end": 1524,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1494,
"end": 1524,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 1496,
"end": 1524,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeLiteral",
"span": {
"start": 1496,
"end": 1521,
"ctxt": 0
},
"members": [
{
"type": "TsIndexSignature",
"params": [
{
"type": "Identifier",
"span": {
"start": 1499,
"end": 1510,
"ctxt": 0
},
"value": "key",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1502,
"end": 1510,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1504,
"end": 1510,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1511,
"end": 1519,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1513,
"end": 1519,
"ctxt": 0
},
"kind": "number"
}
},
"readonly": false,
"static": false,
"span": {
"start": 1498,
"end": 1519,
"ctxt": 0
}
}
]
},
"indexType": {
"type": "TsTypeReference",
"span": {
"start": 1522,
"end": 1523,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1522,
"end": 1523,
"ctxt": 0
},
"value": "K",
"optional": false
},
"typeParams": null
}
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1526,
"end": 1535,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1526,
"end": 1535,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1527,
"end": 1535,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1529,
"end": 1535,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"decorators": [],
"span": {
"start": 1463,
"end": 1558,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1537,
"end": 1558,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1541,
"end": 1547,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1541,
"end": 1546,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1541,
"end": 1542,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 1545,
"end": 1546,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1550,
"end": 1556,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1550,
"end": 1555,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "Identifier",
"span": {
"start": 1550,
"end": 1551,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
},
"right": {
"type": "Identifier",
"span": {
"start": 1554,
"end": 1555,
"ctxt": 0
},
"value": "a",
"optional": false
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1474,
"end": 1492,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1475,
"end": 1491,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1475,
"end": 1476,
"ctxt": 0
},
"value": "K",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsKeywordType",
"span": {
"start": 1485,
"end": 1491,
"ctxt": 0
},
"kind": "string"
},
"default": null
}
]
},
"returnType": null
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 1560,
"end": 1597,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 1565,
"end": 1569,
"ctxt": 0
},
"value": "Item",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 1572,
"end": 1596,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 1574,
"end": 1584,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1574,
"end": 1575,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1575,
"end": 1583,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1577,
"end": 1583,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1585,
"end": 1594,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1585,
"end": 1586,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1586,
"end": 1594,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1588,
"end": 1594,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1608,
"end": 1611,
"ctxt": 0
},
"value": "f10",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 1647,
"end": 1653,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1647,
"end": 1653,
"ctxt": 0
},
"value": "obj",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1650,
"end": 1653,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1652,
"end": 1653,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1652,
"end": 1653,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1655,
"end": 1665,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1655,
"end": 1665,
"ctxt": 0
},
"value": "k1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1657,
"end": 1665,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1659,
"end": 1665,
"ctxt": 0
},
"kind": "string"
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1667,
"end": 1681,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1667,
"end": 1681,
"ctxt": 0
},
"value": "k2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1669,
"end": 1681,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeOperator",
"span": {
"start": 1671,
"end": 1681,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1677,
"end": 1681,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1677,
"end": 1681,
"ctxt": 0
},
"value": "Item",
"optional": false
},
"typeParams": null
}
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1683,
"end": 1694,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1683,
"end": 1694,
"ctxt": 0
},
"value": "k3",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1685,
"end": 1694,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeOperator",
"span": {
"start": 1687,
"end": 1694,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1693,
"end": 1694,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1693,
"end": 1694,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1696,
"end": 1701,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1696,
"end": 1701,
"ctxt": 0
},
"value": "k4",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1698,
"end": 1701,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1700,
"end": 1701,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1700,
"end": 1701,
"ctxt": 0
},
"value": "K",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 1599,
"end": 1814,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1703,
"end": 1814,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1707,
"end": 1721,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1707,
"end": 1720,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1707,
"end": 1714,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1707,
"end": 1710,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 1710,
"end": 1714,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1711,
"end": 1713,
"ctxt": 0
},
"value": "k1",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1717,
"end": 1720,
"ctxt": 0
},
"value": 123.0,
"raw": "123"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1734,
"end": 1748,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1734,
"end": 1747,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1734,
"end": 1741,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1734,
"end": 1737,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 1737,
"end": 1741,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1738,
"end": 1740,
"ctxt": 0
},
"value": "k2",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1744,
"end": 1747,
"ctxt": 0
},
"value": 123.0,
"raw": "123"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1761,
"end": 1775,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1761,
"end": 1774,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1761,
"end": 1768,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1761,
"end": 1764,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 1764,
"end": 1768,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1765,
"end": 1767,
"ctxt": 0
},
"value": "k3",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1771,
"end": 1774,
"ctxt": 0
},
"value": 123.0,
"raw": "123"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1788,
"end": 1802,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1788,
"end": 1801,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1788,
"end": 1795,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1788,
"end": 1791,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 1791,
"end": 1795,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1792,
"end": 1794,
"ctxt": 0
},
"value": "k4",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1798,
"end": 1801,
"ctxt": 0
},
"value": 123.0,
"raw": "123"
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1611,
"end": 1646,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1612,
"end": 1626,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1612,
"end": 1613,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 1622,
"end": 1626,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1622,
"end": 1626,
"ctxt": 0
},
"value": "Item",
"optional": false
},
"typeParams": null
},
"default": null
},
{
"type": "TsTypeParameter",
"span": {
"start": 1628,
"end": 1645,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1628,
"end": 1629,
"ctxt": 0
},
"value": "K",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeOperator",
"span": {
"start": 1638,
"end": 1645,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1644,
"end": 1645,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1644,
"end": 1645,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
},
"default": null
}
]
},
"returnType": null
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 1816,
"end": 1851,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 1821,
"end": 1825,
"ctxt": 0
},
"value": "Dict",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1828,
"end": 1850,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1828,
"end": 1834,
"ctxt": 0
},
"value": "Record",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 1834,
"end": 1850,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 1835,
"end": 1841,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 1843,
"end": 1849,
"ctxt": 0
},
"kind": "number"
}
]
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1862,
"end": 1865,
"ctxt": 0
},
"value": "f11",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 1888,
"end": 1897,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1888,
"end": 1897,
"ctxt": 0
},
"value": "obj",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1891,
"end": 1897,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1893,
"end": 1897,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1893,
"end": 1897,
"ctxt": 0
},
"value": "Dict",
"optional": false
},
"typeParams": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1899,
"end": 1913,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1899,
"end": 1913,
"ctxt": 0
},
"value": "k1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1901,
"end": 1913,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeOperator",
"span": {
"start": 1903,
"end": 1913,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1909,
"end": 1913,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1909,
"end": 1913,
"ctxt": 0
},
"value": "Dict",
"optional": false
},
"typeParams": null
}
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1915,
"end": 1920,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1915,
"end": 1920,
"ctxt": 0
},
"value": "k2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1917,
"end": 1920,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1919,
"end": 1920,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1919,
"end": 1920,
"ctxt": 0
},
"value": "K",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 1853,
"end": 1976,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1922,
"end": 1976,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 1926,
"end": 1940,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1926,
"end": 1939,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1926,
"end": 1933,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1926,
"end": 1929,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1930,
"end": 1933,
"ctxt": 0
},
"value": "foo",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1936,
"end": 1939,
"ctxt": 0
},
"value": 123.0,
"raw": "123"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1943,
"end": 1957,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1943,
"end": 1956,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1943,
"end": 1950,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1943,
"end": 1946,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 1946,
"end": 1950,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1947,
"end": 1949,
"ctxt": 0
},
"value": "k1",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1953,
"end": 1956,
"ctxt": 0
},
"value": 123.0,
"raw": "123"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 1960,
"end": 1974,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 1960,
"end": 1973,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 1960,
"end": 1967,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1960,
"end": 1963,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 1963,
"end": 1967,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 1964,
"end": 1966,
"ctxt": 0
},
"value": "k2",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 1970,
"end": 1973,
"ctxt": 0
},
"value": 123.0,
"raw": "123"
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1865,
"end": 1887,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1866,
"end": 1886,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1866,
"end": 1867,
"ctxt": 0
},
"value": "K",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeOperator",
"span": {
"start": 1876,
"end": 1886,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1882,
"end": 1886,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 1882,
"end": 1886,
"ctxt": 0
},
"value": "Dict",
"optional": false
},
"typeParams": null
}
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1987,
"end": 1990,
"ctxt": 0
},
"value": "f12",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 2036,
"end": 2042,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2036,
"end": 2042,
"ctxt": 0
},
"value": "obj",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2039,
"end": 2042,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2041,
"end": 2042,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2041,
"end": 2042,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 2044,
"end": 2058,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2044,
"end": 2058,
"ctxt": 0
},
"value": "k1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2046,
"end": 2058,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeOperator",
"span": {
"start": 2048,
"end": 2058,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2054,
"end": 2058,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2054,
"end": 2058,
"ctxt": 0
},
"value": "Dict",
"optional": false
},
"typeParams": null
}
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 2060,
"end": 2071,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2060,
"end": 2071,
"ctxt": 0
},
"value": "k2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2062,
"end": 2071,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeOperator",
"span": {
"start": 2064,
"end": 2071,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2070,
"end": 2071,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2070,
"end": 2071,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 2073,
"end": 2078,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2073,
"end": 2078,
"ctxt": 0
},
"value": "k3",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2075,
"end": 2078,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2077,
"end": 2078,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2077,
"end": 2078,
"ctxt": 0
},
"value": "K",
"optional": false
},
"typeParams": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 1978,
"end": 2191,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2080,
"end": 2191,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2084,
"end": 2098,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 2084,
"end": 2097,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 2084,
"end": 2091,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 2084,
"end": 2087,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 2088,
"end": 2091,
"ctxt": 0
},
"value": "foo",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 2094,
"end": 2097,
"ctxt": 0
},
"value": 123.0,
"raw": "123"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2111,
"end": 2125,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 2111,
"end": 2124,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 2111,
"end": 2118,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 2111,
"end": 2114,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 2114,
"end": 2118,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2115,
"end": 2117,
"ctxt": 0
},
"value": "k1",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 2121,
"end": 2124,
"ctxt": 0
},
"value": 123.0,
"raw": "123"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2138,
"end": 2152,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 2138,
"end": 2151,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 2138,
"end": 2145,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 2138,
"end": 2141,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 2141,
"end": 2145,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2142,
"end": 2144,
"ctxt": 0
},
"value": "k2",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 2148,
"end": 2151,
"ctxt": 0
},
"value": 123.0,
"raw": "123"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2165,
"end": 2179,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 2165,
"end": 2178,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 2165,
"end": 2172,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 2165,
"end": 2168,
"ctxt": 0
},
"value": "obj",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 2168,
"end": 2172,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2169,
"end": 2171,
"ctxt": 0
},
"value": "k3",
"optional": false
}
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 2175,
"end": 2178,
"ctxt": 0
},
"value": 123.0,
"raw": "123"
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 1990,
"end": 2035,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 1991,
"end": 2015,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1991,
"end": 1992,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 2001,
"end": 2015,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2001,
"end": 2009,
"ctxt": 0
},
"value": "Readonly",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 2009,
"end": 2015,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 2010,
"end": 2014,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2010,
"end": 2014,
"ctxt": 0
},
"value": "Dict",
"optional": false
},
"typeParams": null
}
]
}
},
"default": null
},
{
"type": "TsTypeParameter",
"span": {
"start": 2017,
"end": 2034,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 2017,
"end": 2018,
"ctxt": 0
},
"value": "K",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeOperator",
"span": {
"start": 2027,
"end": 2034,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2033,
"end": 2034,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2033,
"end": 2034,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
},
"default": null
}
]
},
"returnType": null
},
{
"type": "ExportDeclaration",
"span": {
"start": 2215,
"end": 2267,
"ctxt": 0
},
"declaration": {
"type": "TsInterfaceDeclaration",
"span": {
"start": 2222,
"end": 2267,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 2232,
"end": 2238,
"ctxt": 0
},
"value": "Entity",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 2239,
"end": 2267,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 2245,
"end": 2265,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 2245,
"end": 2247,
"ctxt": 0
},
"value": "id",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2247,
"end": 2264,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 2249,
"end": 2264,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 2249,
"end": 2255,
"ctxt": 0
},
"kind": "number"
},
{
"type": "TsKeywordType",
"span": {
"start": 2258,
"end": 2264,
"ctxt": 0
},
"kind": "string"
}
]
}
},
"typeParams": null
}
]
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 2269,
"end": 2314,
"ctxt": 0
},
"declaration": {
"type": "TsTypeAliasDeclaration",
"span": {
"start": 2276,
"end": 2314,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 2281,
"end": 2285,
"ctxt": 0
},
"value": "IdOf",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 2285,
"end": 2303,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 2286,
"end": 2302,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 2286,
"end": 2287,
"ctxt": 0
},
"value": "E",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 2296,
"end": 2302,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2296,
"end": 2302,
"ctxt": 0
},
"value": "Entity",
"optional": false
},
"typeParams": null
},
"default": null
}
]
},
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 2306,
"end": 2313,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 2306,
"end": 2307,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2306,
"end": 2307,
"ctxt": 0
},
"value": "E",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsLiteralType",
"span": {
"start": 2308,
"end": 2312,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 2308,
"end": 2312,
"ctxt": 0
},
"value": "id",
"raw": "'id'"
}
}
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 2316,
"end": 2440,
"ctxt": 0
},
"declaration": {
"type": "TsInterfaceDeclaration",
"span": {
"start": 2323,
"end": 2440,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 2333,
"end": 2344,
"ctxt": 0
},
"value": "EntityState",
"optional": false
},
"declare": false,
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 2344,
"end": 2362,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 2345,
"end": 2361,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 2345,
"end": 2346,
"ctxt": 0
},
"value": "E",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 2355,
"end": 2361,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2355,
"end": 2361,
"ctxt": 0
},
"value": "Entity",
"optional": false
},
"typeParams": null
},
"default": null
}
]
},
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 2363,
"end": 2440,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 2369,
"end": 2384,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 2369,
"end": 2372,
"ctxt": 0
},
"value": "ids",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2372,
"end": 2383,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 2374,
"end": 2383,
"ctxt": 0
},
"elemType": {
"type": "TsTypeReference",
"span": {
"start": 2374,
"end": 2381,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2374,
"end": 2378,
"ctxt": 0
},
"value": "IdOf",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 2378,
"end": 2381,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 2379,
"end": 2380,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2379,
"end": 2380,
"ctxt": 0
},
"value": "E",
"optional": false
},
"typeParams": null
}
]
}
}
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 2389,
"end": 2438,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 2389,
"end": 2397,
"ctxt": 0
},
"value": "entities",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2397,
"end": 2437,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 2399,
"end": 2437,
"ctxt": 0
},
"members": [
{
"type": "TsIndexSignature",
"params": [
{
"type": "Identifier",
"span": {
"start": 2402,
"end": 2413,
"ctxt": 0
},
"value": "key",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2405,
"end": 2413,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2407,
"end": 2413,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2414,
"end": 2417,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2416,
"end": 2417,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2416,
"end": 2417,
"ctxt": 0
},
"value": "E",
"optional": false
},
"typeParams": null
}
},
"readonly": false,
"static": false,
"span": {
"start": 2401,
"end": 2418,
"ctxt": 0
}
},
{
"type": "TsIndexSignature",
"params": [
{
"type": "Identifier",
"span": {
"start": 2420,
"end": 2431,
"ctxt": 0
},
"value": "key",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2423,
"end": 2431,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 2425,
"end": 2431,
"ctxt": 0
},
"kind": "number"
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2432,
"end": 2435,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2434,
"end": 2435,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2434,
"end": 2435,
"ctxt": 0
},
"value": "E",
"optional": false
},
"typeParams": null
}
},
"readonly": false,
"static": false,
"span": {
"start": 2419,
"end": 2435,
"ctxt": 0
}
}
]
}
},
"typeParams": null
}
]
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 2443,
"end": 2600,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2459,
"end": 2473,
"ctxt": 0
},
"value": "getAllEntities",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 2492,
"end": 2513,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2492,
"end": 2513,
"ctxt": 0
},
"value": "state",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2497,
"end": 2513,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2499,
"end": 2513,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2499,
"end": 2510,
"ctxt": 0
},
"value": "EntityState",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 2510,
"end": 2513,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 2511,
"end": 2512,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2511,
"end": 2512,
"ctxt": 0
},
"value": "E",
"optional": false
},
"typeParams": null
}
]
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 2450,
"end": 2600,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2520,
"end": 2600,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 2526,
"end": 2558,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2532,
"end": 2557,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 2532,
"end": 2549,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 2534,
"end": 2537,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2534,
"end": 2537,
"ctxt": 0
},
"value": "ids",
"optional": false
},
"value": null
},
{
"type": "AssignmentPatternProperty",
"span": {
"start": 2539,
"end": 2547,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2539,
"end": 2547,
"ctxt": 0
},
"value": "entities",
"optional": false
},
"value": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 2552,
"end": 2557,
"ctxt": 0
},
"value": "state",
"optional": false
},
"definite": false
}
]
},
{
"type": "ReturnStatement",
"span": {
"start": 2563,
"end": 2598,
"ctxt": 0
},
"argument": {
"type": "CallExpression",
"span": {
"start": 2570,
"end": 2597,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 2570,
"end": 2577,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 2570,
"end": 2573,
"ctxt": 0
},
"value": "ids",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 2574,
"end": 2577,
"ctxt": 0
},
"value": "map",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ArrowFunctionExpression",
"span": {
"start": 2578,
"end": 2596,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 2578,
"end": 2580,
"ctxt": 0
},
"value": "id",
"optional": false,
"typeAnnotation": null
}
],
"body": {
"type": "MemberExpression",
"span": {
"start": 2584,
"end": 2596,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 2584,
"end": 2592,
"ctxt": 0
},
"value": "entities",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 2592,
"end": 2596,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2593,
"end": 2595,
"ctxt": 0
},
"value": "id",
"optional": false
}
}
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
],
"typeArguments": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 2473,
"end": 2491,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 2474,
"end": 2490,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 2474,
"end": 2475,
"ctxt": 0
},
"value": "E",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 2484,
"end": 2490,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2484,
"end": 2490,
"ctxt": 0
},
"value": "Entity",
"optional": false
},
"typeParams": null
},
"default": null
}
]
},
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 2514,
"end": 2519,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 2516,
"end": 2519,
"ctxt": 0
},
"elemType": {
"type": "TsTypeReference",
"span": {
"start": 2516,
"end": 2517,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2516,
"end": 2517,
"ctxt": 0
},
"value": "E",
"optional": false
},
"typeParams": null
}
}
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 2602,
"end": 2825,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2618,
"end": 2627,
"ctxt": 0
},
"value": "getEntity",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 2646,
"end": 2657,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2646,
"end": 2657,
"ctxt": 0
},
"value": "id",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2648,
"end": 2657,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2650,
"end": 2657,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2650,
"end": 2654,
"ctxt": 0
},
"value": "IdOf",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 2654,
"end": 2657,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 2655,
"end": 2656,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2655,
"end": 2656,
"ctxt": 0
},
"value": "E",
"optional": false
},
"typeParams": null
}
]
}
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 2659,
"end": 2680,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2659,
"end": 2680,
"ctxt": 0
},
"value": "state",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2664,
"end": 2680,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2666,
"end": 2680,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2666,
"end": 2677,
"ctxt": 0
},
"value": "EntityState",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 2677,
"end": 2680,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 2678,
"end": 2679,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2678,
"end": 2679,
"ctxt": 0
},
"value": "E",
"optional": false
},
"typeParams": null
}
]
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 2609,
"end": 2825,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2697,
"end": 2825,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 2703,
"end": 2735,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2709,
"end": 2734,
"ctxt": 0
},
"id": {
"type": "ObjectPattern",
"span": {
"start": 2709,
"end": 2726,
"ctxt": 0
},
"properties": [
{
"type": "AssignmentPatternProperty",
"span": {
"start": 2711,
"end": 2714,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2711,
"end": 2714,
"ctxt": 0
},
"value": "ids",
"optional": false
},
"value": null
},
{
"type": "AssignmentPatternProperty",
"span": {
"start": 2716,
"end": 2724,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2716,
"end": 2724,
"ctxt": 0
},
"value": "entities",
"optional": false
},
"value": null
}
],
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 2729,
"end": 2734,
"ctxt": 0
},
"value": "state",
"optional": false
},
"definite": false
}
]
},
{
"type": "IfStatement",
"span": {
"start": 2741,
"end": 2797,
"ctxt": 0
},
"test": {
"type": "UnaryExpression",
"span": {
"start": 2745,
"end": 2762,
"ctxt": 0
},
"operator": "!",
"argument": {
"type": "CallExpression",
"span": {
"start": 2746,
"end": 2762,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 2746,
"end": 2758,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 2746,
"end": 2749,
"ctxt": 0
},
"value": "ids",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 2750,
"end": 2758,
"ctxt": 0
},
"value": "includes",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 2759,
"end": 2761,
"ctxt": 0
},
"value": "id",
"optional": false
}
}
],
"typeArguments": null
}
},
"consequent": {
"type": "BlockStatement",
"span": {
"start": 2764,
"end": 2797,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 2774,
"end": 2791,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 2781,
"end": 2790,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
]
},
"alternate": null
},
{
"type": "ReturnStatement",
"span": {
"start": 2803,
"end": 2823,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 2810,
"end": 2822,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 2810,
"end": 2818,
"ctxt": 0
},
"value": "entities",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 2818,
"end": 2822,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 2819,
"end": 2821,
"ctxt": 0
},
"value": "id",
"optional": false
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 2627,
"end": 2645,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 2628,
"end": 2644,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 2628,
"end": 2629,
"ctxt": 0
},
"value": "E",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 2638,
"end": 2644,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2638,
"end": 2644,
"ctxt": 0
},
"value": "Entity",
"optional": false
},
"typeParams": null
},
"default": null
}
]
},
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 2681,
"end": 2696,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 2683,
"end": 2696,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 2683,
"end": 2684,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2683,
"end": 2684,
"ctxt": 0
},
"value": "E",
"optional": false
},
"typeParams": null
},
{
"type": "TsKeywordType",
"span": {
"start": 2687,
"end": 2696,
"ctxt": 0
},
"kind": "undefined"
}
]
}
}
}
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 2849,
"end": 2901,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 2859,
"end": 2863,
"ctxt": 0
},
"value": "Type",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 2864,
"end": 2901,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 2870,
"end": 2877,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 2870,
"end": 2871,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2871,
"end": 2876,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 2873,
"end": 2876,
"ctxt": 0
},
"literal": {
"type": "NumericLiteral",
"span": {
"start": 2873,
"end": 2876,
"ctxt": 0
},
"value": 123.0,
"raw": "123"
}
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 2882,
"end": 2899,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 2882,
"end": 2883,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 2883,
"end": 2898,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsLiteralType",
"span": {
"start": 2885,
"end": 2898,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 2885,
"end": 2898,
"ctxt": 0
},
"value": "some string",
"raw": "\"some string\""
}
}
},
"typeParams": null
}
]
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2912,
"end": 2918,
"ctxt": 0
},
"value": "get123",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 2903,
"end": 2981,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2952,
"end": 2981,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 2958,
"end": 2969,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 2965,
"end": 2968,
"ctxt": 0
},
"value": 123.0,
"raw": "123"
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 2918,
"end": 2940,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 2919,
"end": 2939,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 2919,
"end": 2920,
"ctxt": 0
},
"value": "K",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeOperator",
"span": {
"start": 2929,
"end": 2939,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 2935,
"end": 2939,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2935,
"end": 2939,
"ctxt": 0
},
"value": "Type",
"optional": false
},
"typeParams": null
}
},
"default": null
}
]
},
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 2942,
"end": 2951,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 2944,
"end": 2951,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 2944,
"end": 2948,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2944,
"end": 2948,
"ctxt": 0
},
"value": "Type",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsTypeReference",
"span": {
"start": 2949,
"end": 2950,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 2949,
"end": 2950,
"ctxt": 0
},
"value": "K",
"optional": false
},
"typeParams": null
}
}
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 3005,
"end": 3078,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 3010,
"end": 3023,
"ctxt": 0
},
"value": "StrictExtract",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 3023,
"end": 3029,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 3024,
"end": 3025,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3024,
"end": 3025,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
},
{
"type": "TsTypeParameter",
"span": {
"start": 3027,
"end": 3028,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3027,
"end": 3028,
"ctxt": 0
},
"value": "U",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
}
]
},
"typeAnnotation": {
"type": "TsConditionalType",
"span": {
"start": 3032,
"end": 3077,
"ctxt": 0
},
"checkType": {
"type": "TsTypeReference",
"span": {
"start": 3032,
"end": 3033,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3032,
"end": 3033,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
"extendsType": {
"type": "TsTypeReference",
"span": {
"start": 3042,
"end": 3043,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3042,
"end": 3043,
"ctxt": 0
},
"value": "U",
"optional": false
},
"typeParams": null
},
"trueType": {
"type": "TsConditionalType",
"span": {
"start": 3046,
"end": 3069,
"ctxt": 0
},
"checkType": {
"type": "TsTypeReference",
"span": {
"start": 3046,
"end": 3047,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3046,
"end": 3047,
"ctxt": 0
},
"value": "U",
"optional": false
},
"typeParams": null
},
"extendsType": {
"type": "TsTypeReference",
"span": {
"start": 3056,
"end": 3057,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3056,
"end": 3057,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
"trueType": {
"type": "TsTypeReference",
"span": {
"start": 3060,
"end": 3061,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3060,
"end": 3061,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
"falseType": {
"type": "TsKeywordType",
"span": {
"start": 3064,
"end": 3069,
"ctxt": 0
},
"kind": "never"
}
},
"falseType": {
"type": "TsKeywordType",
"span": {
"start": 3072,
"end": 3077,
"ctxt": 0
},
"kind": "never"
}
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 3079,
"end": 3148,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 3084,
"end": 3097,
"ctxt": 0
},
"value": "StrictExclude",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 3097,
"end": 3103,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 3098,
"end": 3099,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3098,
"end": 3099,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
},
{
"type": "TsTypeParameter",
"span": {
"start": 3101,
"end": 3102,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3101,
"end": 3102,
"ctxt": 0
},
"value": "U",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
}
]
},
"typeAnnotation": {
"type": "TsConditionalType",
"span": {
"start": 3106,
"end": 3147,
"ctxt": 0
},
"checkType": {
"type": "TsTypeReference",
"span": {
"start": 3106,
"end": 3107,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3106,
"end": 3107,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
"extendsType": {
"type": "TsTypeReference",
"span": {
"start": 3116,
"end": 3135,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3116,
"end": 3129,
"ctxt": 0
},
"value": "StrictExtract",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 3129,
"end": 3135,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 3130,
"end": 3131,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3130,
"end": 3131,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
{
"type": "TsTypeReference",
"span": {
"start": 3133,
"end": 3134,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3133,
"end": 3134,
"ctxt": 0
},
"value": "U",
"optional": false
},
"typeParams": null
}
]
}
},
"trueType": {
"type": "TsKeywordType",
"span": {
"start": 3138,
"end": 3143,
"ctxt": 0
},
"kind": "never"
},
"falseType": {
"type": "TsTypeReference",
"span": {
"start": 3146,
"end": 3147,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3146,
"end": 3147,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 3149,
"end": 3211,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 3154,
"end": 3155,
"ctxt": 0
},
"value": "A",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 3155,
"end": 3158,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 3156,
"end": 3157,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3156,
"end": 3157,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
}
]
},
"typeAnnotation": {
"type": "TsMappedType",
"span": {
"start": 3161,
"end": 3210,
"ctxt": 0
},
"readonly": null,
"typeParam": {
"type": "TsTypeParameter",
"span": {
"start": 3164,
"end": 3200,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3164,
"end": 3165,
"ctxt": 0
},
"value": "Q",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsIndexedAccessType",
"span": {
"start": 3169,
"end": 3200,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsMappedType",
"span": {
"start": 3169,
"end": 3191,
"ctxt": 0
},
"readonly": null,
"typeParam": {
"type": "TsTypeParameter",
"span": {
"start": 3172,
"end": 3184,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3172,
"end": 3173,
"ctxt": 0
},
"value": "P",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeOperator",
"span": {
"start": 3177,
"end": 3184,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 3183,
"end": 3184,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3183,
"end": 3184,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
},
"default": null
},
"nameType": null,
"optional": null,
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 3187,
"end": 3188,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3187,
"end": 3188,
"ctxt": 0
},
"value": "P",
"optional": false
},
"typeParams": null
}
},
"indexType": {
"type": "TsTypeOperator",
"span": {
"start": 3192,
"end": 3199,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 3198,
"end": 3199,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3198,
"end": 3199,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
},
"default": null
},
"nameType": null,
"optional": null,
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 3203,
"end": 3207,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 3203,
"end": 3204,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3203,
"end": 3204,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsTypeReference",
"span": {
"start": 3205,
"end": 3206,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3205,
"end": 3206,
"ctxt": 0
},
"value": "Q",
"optional": false
},
"typeParams": null
}
}
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 3212,
"end": 3281,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 3217,
"end": 3218,
"ctxt": 0
},
"value": "B",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 3218,
"end": 3224,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 3219,
"end": 3220,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3219,
"end": 3220,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
},
{
"type": "TsTypeParameter",
"span": {
"start": 3222,
"end": 3223,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3222,
"end": 3223,
"ctxt": 0
},
"value": "V",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
}
]
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 3227,
"end": 3280,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3227,
"end": 3228,
"ctxt": 0
},
"value": "A",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 3228,
"end": 3280,
"ctxt": 0
},
"params": [
{
"type": "TsMappedType",
"span": {
"start": 3229,
"end": 3279,
"ctxt": 0
},
"readonly": null,
"typeParam": {
"type": "TsTypeParameter",
"span": {
"start": 3232,
"end": 3244,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3232,
"end": 3233,
"ctxt": 0
},
"value": "Q",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeOperator",
"span": {
"start": 3237,
"end": 3244,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 3243,
"end": 3244,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3243,
"end": 3244,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
},
"default": null
},
"nameType": null,
"optional": null,
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 3247,
"end": 3276,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3247,
"end": 3260,
"ctxt": 0
},
"value": "StrictExclude",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 3260,
"end": 3276,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 3261,
"end": 3271,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3261,
"end": 3262,
"ctxt": 0
},
"value": "B",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 3262,
"end": 3271,
"ctxt": 0
},
"params": [
{
"type": "TsIndexedAccessType",
"span": {
"start": 3263,
"end": 3267,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 3263,
"end": 3264,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3263,
"end": 3264,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsTypeReference",
"span": {
"start": 3265,
"end": 3266,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3265,
"end": 3266,
"ctxt": 0
},
"value": "Q",
"optional": false
},
"typeParams": null
}
},
{
"type": "TsTypeReference",
"span": {
"start": 3269,
"end": 3270,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3269,
"end": 3270,
"ctxt": 0
},
"value": "V",
"optional": false
},
"typeParams": null
}
]
}
},
{
"type": "TsTypeLiteral",
"span": {
"start": 3273,
"end": 3275,
"ctxt": 0
},
"members": []
}
]
}
}
}
]
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 3315,
"end": 3317,
"ctxt": 0
},
"value": "fn",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 3383,
"end": 3391,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 3383,
"end": 3391,
"ctxt": 0
},
"value": "param",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3388,
"end": 3391,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 3390,
"end": 3391,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3390,
"end": 3391,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 3393,
"end": 3437,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 3393,
"end": 3437,
"ctxt": 0
},
"value": "cb",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3395,
"end": 3437,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 3397,
"end": 3437,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 3398,
"end": 3428,
"ctxt": 0
},
"value": "element",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3405,
"end": 3428,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 3407,
"end": 3428,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsIndexedAccessType",
"span": {
"start": 3407,
"end": 3420,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 3407,
"end": 3408,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3407,
"end": 3408,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsLiteralType",
"span": {
"start": 3409,
"end": 3419,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 3409,
"end": 3419,
"ctxt": 0
},
"value": "elements",
"raw": "'elements'"
}
}
},
"indexType": {
"type": "TsKeywordType",
"span": {
"start": 3421,
"end": 3427,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3430,
"end": 3437,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 3433,
"end": 3437,
"ctxt": 0
},
"kind": "void"
}
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 3306,
"end": 3469,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 3439,
"end": 3469,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 3445,
"end": 3467,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 3445,
"end": 3466,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 3445,
"end": 3447,
"ctxt": 0
},
"value": "cb",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "MemberExpression",
"span": {
"start": 3448,
"end": 3465,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 3448,
"end": 3462,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 3448,
"end": 3453,
"ctxt": 0
},
"value": "param",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 3454,
"end": 3462,
"ctxt": 0
},
"value": "elements",
"optional": false
}
},
"property": {
"type": "Computed",
"span": {
"start": 3462,
"end": 3465,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 3463,
"end": 3464,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
}
}
],
"typeArguments": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 3317,
"end": 3382,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 3318,
"end": 3381,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3318,
"end": 3319,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsUnionType",
"span": {
"start": 3328,
"end": 3381,
"ctxt": 0
},
"types": [
{
"type": "TsTypeLiteral",
"span": {
"start": 3328,
"end": 3353,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 3329,
"end": 3352,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 3329,
"end": 3337,
"ctxt": 0
},
"value": "elements",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3337,
"end": 3352,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 3339,
"end": 3352,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3339,
"end": 3344,
"ctxt": 0
},
"value": "Array",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 3344,
"end": 3352,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 3345,
"end": 3351,
"ctxt": 0
},
"kind": "string"
}
]
}
}
},
"typeParams": null
}
]
},
{
"type": "TsTypeLiteral",
"span": {
"start": 3356,
"end": 3381,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 3357,
"end": 3380,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 3357,
"end": 3365,
"ctxt": 0
},
"value": "elements",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3365,
"end": 3380,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 3367,
"end": 3380,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3367,
"end": 3372,
"ctxt": 0
},
"value": "Array",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 3372,
"end": 3380,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 3373,
"end": 3379,
"ctxt": 0
},
"kind": "number"
}
]
}
}
},
"typeParams": null
}
]
}
]
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 3480,
"end": 3483,
"ctxt": 0
},
"value": "fn2",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 3509,
"end": 3517,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 3509,
"end": 3517,
"ctxt": 0
},
"value": "param",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3514,
"end": 3517,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 3516,
"end": 3517,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3516,
"end": 3517,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 3519,
"end": 3551,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 3519,
"end": 3551,
"ctxt": 0
},
"value": "cb",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3521,
"end": 3551,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 3523,
"end": 3551,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 3524,
"end": 3542,
"ctxt": 0
},
"value": "element",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3531,
"end": 3542,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 3533,
"end": 3542,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 3533,
"end": 3534,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3533,
"end": 3534,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsKeywordType",
"span": {
"start": 3535,
"end": 3541,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3544,
"end": 3551,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 3547,
"end": 3551,
"ctxt": 0
},
"kind": "void"
}
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 3471,
"end": 3574,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 3553,
"end": 3574,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 3559,
"end": 3572,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 3559,
"end": 3571,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 3559,
"end": 3561,
"ctxt": 0
},
"value": "cb",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "MemberExpression",
"span": {
"start": 3562,
"end": 3570,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 3562,
"end": 3567,
"ctxt": 0
},
"value": "param",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 3567,
"end": 3570,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 3568,
"end": 3569,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
}
}
],
"typeArguments": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 3483,
"end": 3508,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 3484,
"end": 3507,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3484,
"end": 3485,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 3494,
"end": 3507,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3494,
"end": 3499,
"ctxt": 0
},
"value": "Array",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 3499,
"end": 3507,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 3500,
"end": 3506,
"ctxt": 0
},
"kind": "string"
}
]
}
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 3607,
"end": 3610,
"ctxt": 0
},
"value": "fn3",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 3644,
"end": 3652,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 3644,
"end": 3652,
"ctxt": 0
},
"value": "param",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3649,
"end": 3652,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 3651,
"end": 3652,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3651,
"end": 3652,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 3654,
"end": 3686,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 3654,
"end": 3686,
"ctxt": 0
},
"value": "cb",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3656,
"end": 3686,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 3658,
"end": 3686,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 3659,
"end": 3677,
"ctxt": 0
},
"value": "element",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3666,
"end": 3677,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 3668,
"end": 3677,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 3668,
"end": 3669,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3668,
"end": 3669,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsKeywordType",
"span": {
"start": 3670,
"end": 3676,
"ctxt": 0
},
"kind": "number"
}
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3679,
"end": 3686,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 3682,
"end": 3686,
"ctxt": 0
},
"kind": "void"
}
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 3598,
"end": 3709,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 3688,
"end": 3709,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 3694,
"end": 3707,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 3694,
"end": 3706,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 3694,
"end": 3696,
"ctxt": 0
},
"value": "cb",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "MemberExpression",
"span": {
"start": 3697,
"end": 3705,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 3697,
"end": 3702,
"ctxt": 0
},
"value": "param",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 3702,
"end": 3705,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 3703,
"end": 3704,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
}
}
],
"typeArguments": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 3610,
"end": 3643,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 3611,
"end": 3642,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3611,
"end": 3612,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 3621,
"end": 3642,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3621,
"end": 3634,
"ctxt": 0
},
"value": "ReadonlyArray",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 3634,
"end": 3642,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 3635,
"end": 3641,
"ctxt": 0
},
"kind": "string"
}
]
}
},
"default": null
}
]
},
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 3720,
"end": 3723,
"ctxt": 0
},
"value": "fn4",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 3711,
"end": 3829,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 3744,
"end": 3829,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 3750,
"end": 3782,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 3754,
"end": 3781,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 3754,
"end": 3755,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3755,
"end": 3773,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 3757,
"end": 3773,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 3757,
"end": 3770,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3757,
"end": 3762,
"ctxt": 0
},
"value": "Array",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 3762,
"end": 3770,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 3763,
"end": 3769,
"ctxt": 0
},
"kind": "string"
}
]
}
},
"indexType": {
"type": "TsTypeReference",
"span": {
"start": 3771,
"end": 3772,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3771,
"end": 3772,
"ctxt": 0
},
"value": "K",
"optional": false
},
"typeParams": null
}
}
}
},
"init": {
"type": "StringLiteral",
"span": {
"start": 3776,
"end": 3781,
"ctxt": 0
},
"value": "abc",
"raw": "'abc'"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 3787,
"end": 3827,
"ctxt": 0
},
"kind": "let",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 3791,
"end": 3826,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 3791,
"end": 3792,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3792,
"end": 3818,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 3794,
"end": 3818,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 3794,
"end": 3815,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3794,
"end": 3807,
"ctxt": 0
},
"value": "ReadonlyArray",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 3807,
"end": 3815,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 3808,
"end": 3814,
"ctxt": 0
},
"kind": "string"
}
]
}
},
"indexType": {
"type": "TsTypeReference",
"span": {
"start": 3816,
"end": 3817,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 3816,
"end": 3817,
"ctxt": 0
},
"value": "K",
"optional": false
},
"typeParams": null
}
}
}
},
"init": {
"type": "StringLiteral",
"span": {
"start": 3821,
"end": 3826,
"ctxt": 0
},
"value": "abc",
"raw": "'abc'"
},
"definite": false
}
]
}
]
},
"generator": false,
"async": false,
"typeParameters": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 3723,
"end": 3741,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 3724,
"end": 3740,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3724,
"end": 3725,
"ctxt": 0
},
"value": "K",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsKeywordType",
"span": {
"start": 3734,
"end": 3740,
"ctxt": 0
},
"kind": "number"
},
"default": null
}
]
},
"returnType": null
},
{
"type": "ExportDeclaration",
"span": {
"start": 3864,
"end": 3966,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 3877,
"end": 3878,
"ctxt": 0
},
"value": "c",
"optional": false
},
"declare": false,
"span": {
"start": 3871,
"end": 3966,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "TsIndexSignature",
"params": [
{
"type": "Identifier",
"span": {
"start": 3884,
"end": 3893,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3885,
"end": 3893,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 3887,
"end": 3893,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 3894,
"end": 3902,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 3896,
"end": 3902,
"ctxt": 0
},
"kind": "string"
}
},
"readonly": false,
"static": false,
"span": {
"start": 3883,
"end": 3903,
"ctxt": 0
}
},
{
"type": "Constructor",
"span": {
"start": 3906,
"end": 3964,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 3906,
"end": 3917,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 3920,
"end": 3964,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 3926,
"end": 3939,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 3926,
"end": 3938,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 3926,
"end": 3932,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 3926,
"end": 3930,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 3931,
"end": 3932,
"ctxt": 0
},
"value": "a",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 3935,
"end": 3938,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 3944,
"end": 3960,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 3944,
"end": 3959,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 3944,
"end": 3953,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 3944,
"end": 3948,
"ctxt": 0
}
},
"property": {
"type": "Computed",
"span": {
"start": 3948,
"end": 3953,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 3949,
"end": 3952,
"ctxt": 0
},
"value": "a",
"raw": "\"a\""
}
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 3956,
"end": 3959,
"ctxt": 0
},
"value": "b",
"raw": "\"b\""
}
}
}
]
},
"accessibility": null,
"isOptional": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 3990,
"end": 4054,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 3995,
"end": 3998,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 3998,
"end": 4001,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 3999,
"end": 4000,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3999,
"end": 4000,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
}
]
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 4004,
"end": 4053,
"ctxt": 0
},
"members": [
{
"type": "TsIndexSignature",
"params": [
{
"type": "Identifier",
"span": {
"start": 4007,
"end": 4018,
"ctxt": 0
},
"value": "key",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4010,
"end": 4018,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 4012,
"end": 4018,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4019,
"end": 4051,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 4021,
"end": 4051,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsMappedType",
"span": {
"start": 4021,
"end": 4042,
"ctxt": 0
},
"readonly": null,
"typeParam": {
"type": "TsTypeParameter",
"span": {
"start": 4024,
"end": 4036,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 4024,
"end": 4025,
"ctxt": 0
},
"value": "K",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeOperator",
"span": {
"start": 4029,
"end": 4036,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 4035,
"end": 4036,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4035,
"end": 4036,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
},
"default": null
},
"nameType": null,
"optional": null,
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 4039,
"end": 4040,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4039,
"end": 4040,
"ctxt": 0
},
"value": "K",
"optional": false
},
"typeParams": null
}
},
"indexType": {
"type": "TsTypeOperator",
"span": {
"start": 4043,
"end": 4050,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 4049,
"end": 4050,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4049,
"end": 4050,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
},
"readonly": false,
"static": false,
"span": {
"start": 4006,
"end": 4051,
"ctxt": 0
}
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 4056,
"end": 4122,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 4061,
"end": 4064,
"ctxt": 0
},
"value": "Bar",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 4064,
"end": 4067,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 4065,
"end": 4066,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 4065,
"end": 4066,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
}
]
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 4070,
"end": 4121,
"ctxt": 0
},
"members": [
{
"type": "TsIndexSignature",
"params": [
{
"type": "Identifier",
"span": {
"start": 4073,
"end": 4084,
"ctxt": 0
},
"value": "key",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4076,
"end": 4084,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 4078,
"end": 4084,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 4085,
"end": 4119,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 4087,
"end": 4119,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsMappedType",
"span": {
"start": 4087,
"end": 4110,
"ctxt": 0
},
"readonly": null,
"typeParam": {
"type": "TsTypeParameter",
"span": {
"start": 4090,
"end": 4102,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 4090,
"end": 4091,
"ctxt": 0
},
"value": "K",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeOperator",
"span": {
"start": 4095,
"end": 4102,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 4101,
"end": 4102,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4101,
"end": 4102,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
},
"default": null
},
"nameType": null,
"optional": null,
"typeAnnotation": {
"type": "TsTupleType",
"span": {
"start": 4105,
"end": 4108,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 4106,
"end": 4107,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsTypeReference",
"span": {
"start": 4106,
"end": 4107,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4106,
"end": 4107,
"ctxt": 0
},
"value": "K",
"optional": false
},
"typeParams": null
}
}
]
}
},
"indexType": {
"type": "TsTypeOperator",
"span": {
"start": 4111,
"end": 4118,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 4117,
"end": 4118,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4117,
"end": 4118,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
}
}
},
"readonly": false,
"static": false,
"span": {
"start": 4072,
"end": 4119,
"ctxt": 0
}
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 4124,
"end": 4184,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 4129,
"end": 4132,
"ctxt": 0
},
"value": "Baz",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 4132,
"end": 4153,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 4133,
"end": 4134,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 4133,
"end": 4134,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
},
{
"type": "TsTypeParameter",
"span": {
"start": 4136,
"end": 4152,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 4136,
"end": 4137,
"ctxt": 0
},
"value": "Q",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 4146,
"end": 4152,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4146,
"end": 4149,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 4149,
"end": 4152,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 4150,
"end": 4151,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4150,
"end": 4151,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
]
}
},
"default": null
}
]
},
"typeAnnotation": {
"type": "TsMappedType",
"span": {
"start": 4156,
"end": 4183,
"ctxt": 0
},
"readonly": null,
"typeParam": {
"type": "TsTypeParameter",
"span": {
"start": 4159,
"end": 4171,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 4159,
"end": 4160,
"ctxt": 0
},
"value": "K",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeOperator",
"span": {
"start": 4164,
"end": 4171,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 4170,
"end": 4171,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4170,
"end": 4171,
"ctxt": 0
},
"value": "Q",
"optional": false
},
"typeParams": null
}
},
"default": null
},
"nameType": null,
"optional": null,
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 4174,
"end": 4181,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 4174,
"end": 4175,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4174,
"end": 4175,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsIndexedAccessType",
"span": {
"start": 4176,
"end": 4180,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 4176,
"end": 4177,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4176,
"end": 4177,
"ctxt": 0
},
"value": "Q",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsTypeReference",
"span": {
"start": 4178,
"end": 4179,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4178,
"end": 4179,
"ctxt": 0
},
"value": "K",
"optional": false
},
"typeParams": null
}
}
}
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 4186,
"end": 4251,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 4191,
"end": 4194,
"ctxt": 0
},
"value": "Qux",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 4194,
"end": 4215,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 4195,
"end": 4196,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 4195,
"end": 4196,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"constraint": null,
"default": null
},
{
"type": "TsTypeParameter",
"span": {
"start": 4198,
"end": 4214,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 4198,
"end": 4199,
"ctxt": 0
},
"value": "Q",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeReference",
"span": {
"start": 4208,
"end": 4214,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4208,
"end": 4211,
"ctxt": 0
},
"value": "Bar",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 4211,
"end": 4214,
"ctxt": 0
},
"params": [
{
"type": "TsTypeReference",
"span": {
"start": 4212,
"end": 4213,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4212,
"end": 4213,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
]
}
},
"default": null
}
]
},
"typeAnnotation": {
"type": "TsMappedType",
"span": {
"start": 4218,
"end": 4250,
"ctxt": 0
},
"readonly": null,
"typeParam": {
"type": "TsTypeParameter",
"span": {
"start": 4221,
"end": 4233,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 4221,
"end": 4222,
"ctxt": 0
},
"value": "K",
"optional": false
},
"in": false,
"out": false,
"constraint": {
"type": "TsTypeOperator",
"span": {
"start": 4226,
"end": 4233,
"ctxt": 0
},
"op": "keyof",
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 4232,
"end": 4233,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4232,
"end": 4233,
"ctxt": 0
},
"value": "Q",
"optional": false
},
"typeParams": null
}
},
"default": null
},
"nameType": null,
"optional": null,
"typeAnnotation": {
"type": "TsIndexedAccessType",
"span": {
"start": 4236,
"end": 4248,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 4236,
"end": 4237,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4236,
"end": 4237,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsIndexedAccessType",
"span": {
"start": 4238,
"end": 4247,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsIndexedAccessType",
"span": {
"start": 4238,
"end": 4242,
"ctxt": 0
},
"readonly": false,
"objectType": {
"type": "TsTypeReference",
"span": {
"start": 4238,
"end": 4239,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4238,
"end": 4239,
"ctxt": 0
},
"value": "Q",
"optional": false
},
"typeParams": null
},
"indexType": {
"type": "TsTypeReference",
"span": {
"start": 4240,
"end": 4241,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 4240,
"end": 4241,
"ctxt": 0
},
"value": "K",
"optional": false
},
"typeParams": null
}
},
"indexType": {
"type": "TsLiteralType",
"span": {
"start": 4243,
"end": 4246,
"ctxt": 0
},
"literal": {
"type": "StringLiteral",
"span": {
"start": 4243,
"end": 4246,
"ctxt": 0
},
"value": "0",
"raw": "\"0\""
}
}
}
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 4275,
"end": 4325,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4281,
"end": 4324,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4281,
"end": 4288,
"ctxt": 0
},
"value": "actions",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "TsConstAssertion",
"span": {
"start": 4291,
"end": 4324,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 4291,
"end": 4315,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 4292,
"end": 4302,
"ctxt": 0
},
"value": "resizeTo",
"raw": "'resizeTo'"
}
},
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 4304,
"end": 4314,
"ctxt": 0
},
"value": "resizeBy",
"raw": "'resizeBy'"
}
}
]
}
},
"definite": false
}
]
},
{
"type": "ForOfStatement",
"span": {
"start": 4326,
"end": 4416,
"ctxt": 0
},
"await": null,
"left": {
"type": "VariableDeclaration",
"span": {
"start": 4331,
"end": 4343,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 4337,
"end": 4343,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 4337,
"end": 4343,
"ctxt": 0
},
"value": "action",
"optional": false,
"typeAnnotation": null
},
"init": null,
"definite": false
}
]
},
"right": {
"type": "Identifier",
"span": {
"start": 4347,
"end": 4354,
"ctxt": 0
},
"value": "actions",
"optional": false
},
"body": {
"type": "BlockStatement",
"span": {
"start": 4356,
"end": 4416,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 4359,
"end": 4414,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 4359,
"end": 4414,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 4359,
"end": 4373,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 4359,
"end": 4365,
"ctxt": 0
},
"value": "window",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 4365,
"end": 4373,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 4366,
"end": 4372,
"ctxt": 0
},
"value": "action",
"optional": false
}
}
},
"right": {
"type": "ArrowFunctionExpression",
"span": {
"start": 4376,
"end": 4414,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 4377,
"end": 4378,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
{
"type": "Identifier",
"span": {
"start": 4380,
"end": 4381,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
}
],
"body": {
"type": "BlockStatement",
"span": {
"start": 4386,
"end": 4414,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 4390,
"end": 4411,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 4390,
"end": 4410,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 4390,
"end": 4404,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 4390,
"end": 4396,
"ctxt": 0
},
"value": "window",
"optional": false
},
"property": {
"type": "Computed",
"span": {
"start": 4396,
"end": 4404,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 4397,
"end": 4403,
"ctxt": 0
},
"value": "action",
"optional": false
}
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 4405,
"end": 4406,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 4408,
"end": 4409,
"ctxt": 0
},
"value": "y",
"optional": false
}
}
],
"typeArguments": null
}
}
]
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
}
]
}
}
],
"interpreter": null
}