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

1948 lines
51 KiB
JSON

{
"type": "Script",
"span": {
"start": 23,
"end": 722,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 29,
"end": 31,
"ctxt": 0
},
"value": "C1",
"optional": false
},
"declare": false,
"span": {
"start": 23,
"end": 120,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 38,
"end": 46,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 38,
"end": 39,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 39,
"end": 45,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 41,
"end": 45,
"ctxt": 0
}
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassMethod",
"span": {
"start": 51,
"end": 89,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 51,
"end": 52,
"ctxt": 0
},
"value": "f",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 53,
"end": 60,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 53,
"end": 60,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 54,
"end": 60,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 56,
"end": 60,
"ctxt": 0
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 51,
"end": 89,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 68,
"end": 89,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 70,
"end": 87,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 77,
"end": 86,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 61,
"end": 67,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 63,
"end": 67,
"ctxt": 0
}
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "Constructor",
"span": {
"start": 94,
"end": 118,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 94,
"end": 105,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [
{
"type": "Parameter",
"span": {
"start": 106,
"end": 113,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 106,
"end": 113,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 107,
"end": 113,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 109,
"end": 113,
"ctxt": 0
}
}
}
}
}
],
"body": {
"type": "BlockStatement",
"span": {
"start": 115,
"end": 118,
"ctxt": 0
},
"stmts": []
},
"accessibility": null,
"isOptional": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 128,
"end": 130,
"ctxt": 0
},
"value": "C2",
"optional": false
},
"declare": false,
"span": {
"start": 122,
"end": 157,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "TsIndexSignature",
"params": [
{
"type": "Identifier",
"span": {
"start": 138,
"end": 147,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 139,
"end": 147,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 141,
"end": 147,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 148,
"end": 154,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 150,
"end": 154,
"ctxt": 0
}
}
},
"readonly": false,
"static": false,
"span": {
"start": 137,
"end": 155,
"ctxt": 0
}
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 159,
"end": 202,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 169,
"end": 172,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"declare": false,
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 172,
"end": 175,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 173,
"end": 174,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 173,
"end": 174,
"ctxt": 0
},
"value": "T",
"optional": false
},
"constraint": null,
"default": null
}
]
},
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 176,
"end": 202,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 182,
"end": 187,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 182,
"end": 183,
"ctxt": 0
},
"value": "x",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 183,
"end": 186,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 185,
"end": 186,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 185,
"end": 186,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 192,
"end": 200,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 192,
"end": 193,
"ctxt": 0
},
"value": "y",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 193,
"end": 199,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 195,
"end": 199,
"ctxt": 0
}
}
},
"typeParams": null
}
]
}
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 210,
"end": 212,
"ctxt": 0
},
"value": "C3",
"optional": false
},
"declare": false,
"span": {
"start": 204,
"end": 448,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 219,
"end": 229,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 219,
"end": 220,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 220,
"end": 228,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 222,
"end": 228,
"ctxt": 0
},
"elemType": {
"type": "TsThisType",
"span": {
"start": 222,
"end": 226,
"ctxt": 0
}
}
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 234,
"end": 250,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 234,
"end": 235,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 235,
"end": 249,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTupleType",
"span": {
"start": 237,
"end": 249,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 238,
"end": 242,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsThisType",
"span": {
"start": 238,
"end": 242,
"ctxt": 0
}
}
},
{
"type": "TsTupleElement",
"span": {
"start": 244,
"end": 248,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsThisType",
"span": {
"start": 244,
"end": 248,
"ctxt": 0
}
}
}
]
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 255,
"end": 270,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 255,
"end": 256,
"ctxt": 0
},
"value": "c",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 256,
"end": 269,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 258,
"end": 269,
"ctxt": 0
},
"types": [
{
"type": "TsThisType",
"span": {
"start": 258,
"end": 262,
"ctxt": 0
}
},
{
"type": "TsTypeReference",
"span": {
"start": 265,
"end": 269,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 265,
"end": 269,
"ctxt": 0
},
"value": "Date",
"optional": false
},
"typeParams": null
}
]
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 275,
"end": 290,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 275,
"end": 276,
"ctxt": 0
},
"value": "d",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 276,
"end": 289,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 278,
"end": 289,
"ctxt": 0
},
"types": [
{
"type": "TsThisType",
"span": {
"start": 278,
"end": 282,
"ctxt": 0
}
},
{
"type": "TsTypeReference",
"span": {
"start": 285,
"end": 289,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 285,
"end": 289,
"ctxt": 0
},
"value": "Date",
"optional": false
},
"typeParams": null
}
]
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 295,
"end": 309,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 295,
"end": 296,
"ctxt": 0
},
"value": "e",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 296,
"end": 308,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsParenthesizedType",
"span": {
"start": 298,
"end": 308,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsParenthesizedType",
"span": {
"start": 299,
"end": 307,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsParenthesizedType",
"span": {
"start": 300,
"end": 306,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 301,
"end": 305,
"ctxt": 0
}
}
}
}
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 314,
"end": 335,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 314,
"end": 315,
"ctxt": 0
},
"value": "f",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 315,
"end": 334,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 317,
"end": 334,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 318,
"end": 325,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 319,
"end": 325,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 321,
"end": 325,
"ctxt": 0
}
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 327,
"end": 334,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 330,
"end": 334,
"ctxt": 0
}
}
}
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 340,
"end": 365,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 340,
"end": 341,
"ctxt": 0
},
"value": "g",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 341,
"end": 364,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsConstructorType",
"span": {
"start": 343,
"end": 364,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 348,
"end": 355,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 349,
"end": 355,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 351,
"end": 355,
"ctxt": 0
}
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 357,
"end": 364,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 360,
"end": 364,
"ctxt": 0
}
}
},
"isAbstract": false
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 370,
"end": 383,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 370,
"end": 371,
"ctxt": 0
},
"value": "h",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 371,
"end": 382,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 373,
"end": 382,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 373,
"end": 376,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 376,
"end": 382,
"ctxt": 0
},
"params": [
{
"type": "TsThisType",
"span": {
"start": 377,
"end": 381,
"ctxt": 0
}
}
]
}
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 388,
"end": 416,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 388,
"end": 389,
"ctxt": 0
},
"value": "i",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 389,
"end": 415,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 391,
"end": 415,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 391,
"end": 394,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 394,
"end": 415,
"ctxt": 0
},
"params": [
{
"type": "TsUnionType",
"span": {
"start": 395,
"end": 414,
"ctxt": 0
},
"types": [
{
"type": "TsThisType",
"span": {
"start": 395,
"end": 399,
"ctxt": 0
}
},
{
"type": "TsParenthesizedType",
"span": {
"start": 402,
"end": 414,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 403,
"end": 413,
"ctxt": 0
},
"params": [],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 406,
"end": 413,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 409,
"end": 413,
"ctxt": 0
}
}
}
}
}
]
}
]
}
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 421,
"end": 446,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 421,
"end": 422,
"ctxt": 0
},
"value": "j",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 422,
"end": 445,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 424,
"end": 445,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 425,
"end": 431,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 426,
"end": 431,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 428,
"end": 431,
"ctxt": 0
},
"kind": "any"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 433,
"end": 445,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypePredicate",
"span": {
"start": 436,
"end": 445,
"ctxt": 0
},
"asserts": false,
"paramName": {
"type": "Identifier",
"span": {
"start": 436,
"end": 437,
"ctxt": 0
},
"value": "x",
"optional": false
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 441,
"end": 445,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 441,
"end": 445,
"ctxt": 0
}
}
}
}
}
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 456,
"end": 458,
"ctxt": 0
},
"value": "C4",
"optional": false
},
"declare": false,
"span": {
"start": 450,
"end": 722,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 465,
"end": 482,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 465,
"end": 467,
"ctxt": 0
},
"value": "x1",
"optional": false
},
"value": {
"type": "ObjectExpression",
"span": {
"start": 470,
"end": 481,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 472,
"end": 473,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "ThisExpression",
"span": {
"start": 475,
"end": 479,
"ctxt": 0
}
}
}
]
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 487,
"end": 499,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 487,
"end": 489,
"ctxt": 0
},
"value": "x2",
"optional": false
},
"value": {
"type": "ArrayExpression",
"span": {
"start": 492,
"end": 498,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ThisExpression",
"span": {
"start": 493,
"end": 497,
"ctxt": 0
}
}
}
]
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 504,
"end": 523,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 504,
"end": 506,
"ctxt": 0
},
"value": "x3",
"optional": false
},
"value": {
"type": "ArrayExpression",
"span": {
"start": 509,
"end": 522,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 510,
"end": 521,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 512,
"end": 513,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "ThisExpression",
"span": {
"start": 515,
"end": 519,
"ctxt": 0
}
}
}
]
}
}
]
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 528,
"end": 544,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 528,
"end": 530,
"ctxt": 0
},
"value": "x4",
"optional": false
},
"value": {
"type": "ArrowFunctionExpression",
"span": {
"start": 533,
"end": 543,
"ctxt": 0
},
"params": [],
"body": {
"type": "ThisExpression",
"span": {
"start": 539,
"end": 543,
"ctxt": 0
}
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassMethod",
"span": {
"start": 549,
"end": 589,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 549,
"end": 551,
"ctxt": 0
},
"value": "f1",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 549,
"end": 589,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 554,
"end": 589,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 564,
"end": 583,
"ctxt": 0
},
"argument": {
"type": "ObjectExpression",
"span": {
"start": 571,
"end": 582,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 573,
"end": 574,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "ThisExpression",
"span": {
"start": 576,
"end": 580,
"ctxt": 0
}
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 594,
"end": 629,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 594,
"end": 596,
"ctxt": 0
},
"value": "f2",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 594,
"end": 629,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 599,
"end": 629,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 609,
"end": 623,
"ctxt": 0
},
"argument": {
"type": "ArrayExpression",
"span": {
"start": 616,
"end": 622,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ThisExpression",
"span": {
"start": 617,
"end": 621,
"ctxt": 0
}
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 634,
"end": 676,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 634,
"end": 636,
"ctxt": 0
},
"value": "f3",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 634,
"end": 676,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 639,
"end": 676,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 649,
"end": 670,
"ctxt": 0
},
"argument": {
"type": "ArrayExpression",
"span": {
"start": 656,
"end": 669,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 657,
"end": 668,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 659,
"end": 660,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "ThisExpression",
"span": {
"start": 662,
"end": 666,
"ctxt": 0
}
}
}
]
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 681,
"end": 720,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 681,
"end": 683,
"ctxt": 0
},
"value": "f4",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 681,
"end": 720,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 686,
"end": 720,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 696,
"end": 714,
"ctxt": 0
},
"argument": {
"type": "ArrowFunctionExpression",
"span": {
"start": 703,
"end": 713,
"ctxt": 0
},
"params": [],
"body": {
"type": "ThisExpression",
"span": {
"start": 709,
"end": 713,
"ctxt": 0
}
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}