swc/crates/swc_ecma_parser/tests/tsc/callWithSpread4.json
2022-02-04 17:08:38 +09:00

1908 lines
57 KiB
JSON

{
"type": "Script",
"span": {
"start": 36,
"end": 715,
"ctxt": 0
},
"body": [
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 36,
"end": 58,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 41,
"end": 42,
"ctxt": 0
},
"value": "R",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 45,
"end": 58,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 47,
"end": 56,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 47,
"end": 48,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 48,
"end": 56,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 50,
"end": 56,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 59,
"end": 81,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 64,
"end": 65,
"ctxt": 0
},
"value": "W",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 68,
"end": 81,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 70,
"end": 79,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 70,
"end": 71,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 71,
"end": 79,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 73,
"end": 79,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
},
{
"type": "TsTypeAliasDeclaration",
"span": {
"start": 82,
"end": 116,
"ctxt": 0
},
"declare": false,
"id": {
"type": "Identifier",
"span": {
"start": 87,
"end": 89,
"ctxt": 0
},
"value": "RW",
"optional": false
},
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 92,
"end": 116,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 94,
"end": 104,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 94,
"end": 95,
"ctxt": 0
},
"value": "a",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 95,
"end": 103,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 97,
"end": 103,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 105,
"end": 114,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 105,
"end": 106,
"ctxt": 0
},
"value": "b",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 106,
"end": 114,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 108,
"end": 114,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 117,
"end": 322,
"ctxt": 0
},
"kind": "const",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 131,
"end": 322,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 131,
"end": 134,
"ctxt": 0
},
"value": "pli",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 134,
"end": 322,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 136,
"end": 322,
"ctxt": 0
},
"members": [
{
"type": "TsCallSignatureDeclaration",
"span": {
"start": 142,
"end": 196,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 143,
"end": 148,
"ctxt": 0
},
"value": "s1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 145,
"end": 148,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 147,
"end": 148,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 147,
"end": 148,
"ctxt": 0
},
"value": "R",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "Identifier",
"span": {
"start": 150,
"end": 156,
"ctxt": 0
},
"value": "s2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 152,
"end": 156,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 154,
"end": 156,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 154,
"end": 156,
"ctxt": 0
},
"value": "RW",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "Identifier",
"span": {
"start": 158,
"end": 164,
"ctxt": 0
},
"value": "s3",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 160,
"end": 164,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 162,
"end": 164,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 162,
"end": 164,
"ctxt": 0
},
"value": "RW",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "Identifier",
"span": {
"start": 166,
"end": 172,
"ctxt": 0
},
"value": "s4",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 168,
"end": 172,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 170,
"end": 172,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 170,
"end": 172,
"ctxt": 0
},
"value": "RW",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "Identifier",
"span": {
"start": 174,
"end": 179,
"ctxt": 0
},
"value": "s5",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 176,
"end": 179,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 178,
"end": 179,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 178,
"end": 179,
"ctxt": 0
},
"value": "W",
"optional": false
},
"typeParams": null
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 180,
"end": 195,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 182,
"end": 195,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 182,
"end": 189,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 189,
"end": 195,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 190,
"end": 194,
"ctxt": 0
},
"kind": "void"
}
]
}
}
},
"typeParams": null
},
{
"type": "TsCallSignatureDeclaration",
"span": {
"start": 201,
"end": 253,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 202,
"end": 236,
"ctxt": 0
},
"value": "streams",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 209,
"end": 236,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 211,
"end": 236,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 211,
"end": 224,
"ctxt": 0
},
"value": "ReadonlyArray",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 224,
"end": 236,
"ctxt": 0
},
"params": [
{
"type": "TsUnionType",
"span": {
"start": 225,
"end": 235,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 225,
"end": 226,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 225,
"end": 226,
"ctxt": 0
},
"value": "R",
"optional": false
},
"typeParams": null
},
{
"type": "TsTypeReference",
"span": {
"start": 229,
"end": 230,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 229,
"end": 230,
"ctxt": 0
},
"value": "W",
"optional": false
},
"typeParams": null
},
{
"type": "TsTypeReference",
"span": {
"start": 233,
"end": 235,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 233,
"end": 235,
"ctxt": 0
},
"value": "RW",
"optional": false
},
"typeParams": null
}
]
}
]
}
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 237,
"end": 252,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 239,
"end": 252,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 239,
"end": 246,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 246,
"end": 252,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 247,
"end": 251,
"ctxt": 0
},
"kind": "void"
}
]
}
}
},
"typeParams": null
},
{
"type": "TsCallSignatureDeclaration",
"span": {
"start": 258,
"end": 320,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 259,
"end": 264,
"ctxt": 0
},
"value": "s1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 261,
"end": 264,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 263,
"end": 264,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 263,
"end": 264,
"ctxt": 0
},
"value": "R",
"optional": false
},
"typeParams": null
}
}
},
{
"type": "Identifier",
"span": {
"start": 266,
"end": 276,
"ctxt": 0
},
"value": "s2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 268,
"end": 276,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 270,
"end": 276,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 270,
"end": 272,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 270,
"end": 272,
"ctxt": 0
},
"value": "RW",
"optional": false
},
"typeParams": null
},
{
"type": "TsTypeReference",
"span": {
"start": 275,
"end": 276,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 275,
"end": 276,
"ctxt": 0
},
"value": "W",
"optional": false
},
"typeParams": null
}
]
}
}
},
{
"type": "RestElement",
"span": {
"start": 278,
"end": 303,
"ctxt": 0
},
"rest": {
"start": 278,
"end": 281,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 281,
"end": 288,
"ctxt": 0
},
"value": "streams",
"optional": false,
"typeAnnotation": null
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 288,
"end": 303,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 290,
"end": 303,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 290,
"end": 295,
"ctxt": 0
},
"value": "Array",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 295,
"end": 303,
"ctxt": 0
},
"params": [
{
"type": "TsUnionType",
"span": {
"start": 296,
"end": 302,
"ctxt": 0
},
"types": [
{
"type": "TsTypeReference",
"span": {
"start": 296,
"end": 298,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 296,
"end": 298,
"ctxt": 0
},
"value": "RW",
"optional": false
},
"typeParams": null
},
{
"type": "TsTypeReference",
"span": {
"start": 301,
"end": 302,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 301,
"end": 302,
"ctxt": 0
},
"value": "W",
"optional": false
},
"typeParams": null
}
]
}
]
}
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 304,
"end": 319,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 306,
"end": 319,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 306,
"end": 313,
"ctxt": 0
},
"value": "Promise",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 313,
"end": 319,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 314,
"end": 318,
"ctxt": 0
},
"kind": "void"
}
]
}
}
},
"typeParams": null
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 324,
"end": 345,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 336,
"end": 345,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 336,
"end": 342,
"ctxt": 0
},
"value": "writes",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 342,
"end": 345,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 344,
"end": 345,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 344,
"end": 345,
"ctxt": 0
},
"value": "W",
"optional": false
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 346,
"end": 366,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 358,
"end": 366,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 358,
"end": 363,
"ctxt": 0
},
"value": "reads",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 363,
"end": 366,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 365,
"end": 366,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 365,
"end": 366,
"ctxt": 0
},
"value": "R",
"optional": false
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 367,
"end": 384,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 379,
"end": 384,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 379,
"end": 381,
"ctxt": 0
},
"value": "tr",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 381,
"end": 384,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 383,
"end": 384,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 383,
"end": 384,
"ctxt": 0
},
"value": "W",
"optional": false
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 385,
"end": 406,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 397,
"end": 406,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 397,
"end": 400,
"ctxt": 0
},
"value": "gun",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 400,
"end": 406,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 402,
"end": 406,
"ctxt": 0
},
"elemType": {
"type": "TsTypeReference",
"span": {
"start": 402,
"end": 404,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 402,
"end": 404,
"ctxt": 0
},
"value": "RW",
"optional": false
},
"typeParams": null
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 407,
"end": 427,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 419,
"end": 427,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 419,
"end": 421,
"ctxt": 0
},
"value": "gz",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 421,
"end": 427,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 423,
"end": 427,
"ctxt": 0
},
"elemType": {
"type": "TsTypeReference",
"span": {
"start": 423,
"end": 425,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 423,
"end": 425,
"ctxt": 0
},
"value": "RW",
"optional": false
},
"typeParams": null
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 428,
"end": 496,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 440,
"end": 496,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 440,
"end": 443,
"ctxt": 0
},
"value": "fun",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 443,
"end": 496,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 445,
"end": 496,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 446,
"end": 454,
"ctxt": 0
},
"value": "inp",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 449,
"end": 454,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 451,
"end": 454,
"ctxt": 0
},
"kind": "any"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 456,
"end": 496,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 459,
"end": 496,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 459,
"end": 473,
"ctxt": 0
},
"value": "AsyncGenerator",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 473,
"end": 496,
"ctxt": 0
},
"params": [
{
"type": "TsKeywordType",
"span": {
"start": 474,
"end": 480,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 482,
"end": 486,
"ctxt": 0
},
"kind": "void"
},
{
"type": "TsKeywordType",
"span": {
"start": 488,
"end": 495,
"ctxt": 0
},
"kind": "unknown"
}
]
}
}
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 497,
"end": 566,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 497,
"end": 565,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 497,
"end": 500,
"ctxt": 0
},
"value": "pli",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 506,
"end": 511,
"ctxt": 0
},
"value": "reads",
"optional": false
}
},
{
"spread": {
"start": 517,
"end": 520,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 520,
"end": 523,
"ctxt": 0
},
"value": "gun",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 529,
"end": 531,
"ctxt": 0
},
"value": "tr",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 537,
"end": 540,
"ctxt": 0
},
"value": "fun",
"optional": false
}
},
{
"spread": {
"start": 546,
"end": 549,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 549,
"end": 551,
"ctxt": 0
},
"value": "gz",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 557,
"end": 563,
"ctxt": 0
},
"value": "writes",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 585,
"end": 589,
"ctxt": 0
},
"value": "test",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 590,
"end": 596,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 590,
"end": 596,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 591,
"end": 596,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 593,
"end": 596,
"ctxt": 0
},
"kind": "any"
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 598,
"end": 613,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 598,
"end": 613,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 599,
"end": 613,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 601,
"end": 613,
"ctxt": 0
},
"params": [],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 604,
"end": 613,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 607,
"end": 613,
"ctxt": 0
},
"kind": "string"
}
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 568,
"end": 635,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 614,
"end": 634,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 616,
"end": 634,
"ctxt": 0
},
"types": [
{
"type": "TsKeywordType",
"span": {
"start": 616,
"end": 622,
"ctxt": 0
},
"kind": "string"
},
{
"type": "TsKeywordType",
"span": {
"start": 625,
"end": 634,
"ctxt": 0
},
"kind": "undefined"
}
]
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 636,
"end": 659,
"ctxt": 0
},
"kind": "var",
"declare": true,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 648,
"end": 659,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 648,
"end": 652,
"ctxt": 0
},
"value": "anys",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 652,
"end": 659,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 654,
"end": 659,
"ctxt": 0
},
"elemType": {
"type": "TsKeywordType",
"span": {
"start": 654,
"end": 657,
"ctxt": 0
},
"kind": "any"
}
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 660,
"end": 673,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 660,
"end": 673,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 660,
"end": 664,
"ctxt": 0
},
"value": "test",
"optional": false
},
"arguments": [
{
"spread": {
"start": 665,
"end": 668,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 668,
"end": 672,
"ctxt": 0
},
"value": "anys",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 675,
"end": 715,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 675,
"end": 715,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 675,
"end": 678,
"ctxt": 0
},
"value": "pli",
"optional": false
},
"arguments": [
{
"spread": {
"start": 679,
"end": 682,
"ctxt": 0
},
"expression": {
"type": "TsConstAssertion",
"span": {
"start": 682,
"end": 714,
"ctxt": 0
},
"expression": {
"type": "ArrayExpression",
"span": {
"start": 682,
"end": 705,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 683,
"end": 688,
"ctxt": 0
},
"value": "reads",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 690,
"end": 696,
"ctxt": 0
},
"value": "writes",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 698,
"end": 704,
"ctxt": 0
},
"value": "writes",
"optional": false
}
}
]
}
}
}
],
"typeArguments": null
}
}
],
"interpreter": null
}