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

1951 lines
51 KiB
JSON

{
"type": "Script",
"span": {
"start": 24,
"end": 723,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 30,
"end": 32,
"ctxt": 0
},
"value": "C1",
"optional": false
},
"declare": false,
"span": {
"start": 24,
"end": 121,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 39,
"end": 47,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 39,
"end": 40,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 40,
"end": 46,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 42,
"end": 46,
"ctxt": 0
}
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassMethod",
"span": {
"start": 52,
"end": 90,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 52,
"end": 53,
"ctxt": 0
},
"value": "f",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 54,
"end": 61,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 54,
"end": 61,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 55,
"end": 61,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 57,
"end": 61,
"ctxt": 0
}
}
}
}
}
],
"decorators": [],
"span": {
"start": 52,
"end": 90,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 69,
"end": 90,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 71,
"end": 88,
"ctxt": 0
},
"argument": {
"type": "Identifier",
"span": {
"start": 78,
"end": 87,
"ctxt": 0
},
"value": "undefined",
"optional": false
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 62,
"end": 68,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 64,
"end": 68,
"ctxt": 0
}
}
}
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "Constructor",
"span": {
"start": 95,
"end": 119,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 95,
"end": 106,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [
{
"type": "Parameter",
"span": {
"start": 107,
"end": 114,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 107,
"end": 114,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 108,
"end": 114,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 110,
"end": 114,
"ctxt": 0
}
}
}
}
}
],
"body": {
"type": "BlockStatement",
"span": {
"start": 116,
"end": 119,
"ctxt": 0
},
"stmts": []
},
"accessibility": null,
"isOptional": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 129,
"end": 131,
"ctxt": 0
},
"value": "C2",
"optional": false
},
"declare": false,
"span": {
"start": 123,
"end": 158,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "TsIndexSignature",
"params": [
{
"type": "Identifier",
"span": {
"start": 139,
"end": 148,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 140,
"end": 148,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 142,
"end": 148,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 149,
"end": 155,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 151,
"end": 155,
"ctxt": 0
}
}
},
"readonly": false,
"static": false,
"span": {
"start": 138,
"end": 156,
"ctxt": 0
}
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 160,
"end": 203,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 170,
"end": 173,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"declare": false,
"typeParams": {
"type": "TsTypeParameterDeclaration",
"span": {
"start": 173,
"end": 176,
"ctxt": 0
},
"parameters": [
{
"type": "TsTypeParameter",
"span": {
"start": 174,
"end": 175,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 174,
"end": 175,
"ctxt": 0
},
"value": "T",
"optional": false
},
"in": false,
"out": false,
"const": false,
"constraint": null,
"default": null
}
]
},
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 177,
"end": 203,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 183,
"end": 188,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 183,
"end": 184,
"ctxt": 0
},
"value": "x",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 184,
"end": 187,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 186,
"end": 187,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 186,
"end": 187,
"ctxt": 0
},
"value": "T",
"optional": false
},
"typeParams": null
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 193,
"end": 201,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 193,
"end": 194,
"ctxt": 0
},
"value": "y",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 194,
"end": 200,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 196,
"end": 200,
"ctxt": 0
}
}
},
"typeParams": null
}
]
}
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 211,
"end": 213,
"ctxt": 0
},
"value": "C3",
"optional": false
},
"declare": false,
"span": {
"start": 205,
"end": 449,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 220,
"end": 230,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 220,
"end": 221,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 221,
"end": 229,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsArrayType",
"span": {
"start": 223,
"end": 229,
"ctxt": 0
},
"elemType": {
"type": "TsThisType",
"span": {
"start": 223,
"end": 227,
"ctxt": 0
}
}
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 235,
"end": 251,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 235,
"end": 236,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 236,
"end": 250,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTupleType",
"span": {
"start": 238,
"end": 250,
"ctxt": 0
},
"elemTypes": [
{
"type": "TsTupleElement",
"span": {
"start": 239,
"end": 243,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsThisType",
"span": {
"start": 239,
"end": 243,
"ctxt": 0
}
}
},
{
"type": "TsTupleElement",
"span": {
"start": 245,
"end": 249,
"ctxt": 0
},
"label": null,
"ty": {
"type": "TsThisType",
"span": {
"start": 245,
"end": 249,
"ctxt": 0
}
}
}
]
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 256,
"end": 271,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 256,
"end": 257,
"ctxt": 0
},
"value": "c",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 257,
"end": 270,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsUnionType",
"span": {
"start": 259,
"end": 270,
"ctxt": 0
},
"types": [
{
"type": "TsThisType",
"span": {
"start": 259,
"end": 263,
"ctxt": 0
}
},
{
"type": "TsTypeReference",
"span": {
"start": 266,
"end": 270,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 266,
"end": 270,
"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": 276,
"end": 291,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 276,
"end": 277,
"ctxt": 0
},
"value": "d",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 277,
"end": 290,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsIntersectionType",
"span": {
"start": 279,
"end": 290,
"ctxt": 0
},
"types": [
{
"type": "TsThisType",
"span": {
"start": 279,
"end": 283,
"ctxt": 0
}
},
{
"type": "TsTypeReference",
"span": {
"start": 286,
"end": 290,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 286,
"end": 290,
"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": 296,
"end": 310,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 296,
"end": 297,
"ctxt": 0
},
"value": "e",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 297,
"end": 309,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsParenthesizedType",
"span": {
"start": 299,
"end": 309,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsParenthesizedType",
"span": {
"start": 300,
"end": 308,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsParenthesizedType",
"span": {
"start": 301,
"end": 307,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 302,
"end": 306,
"ctxt": 0
}
}
}
}
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 315,
"end": 336,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 315,
"end": 316,
"ctxt": 0
},
"value": "f",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 316,
"end": 335,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 318,
"end": 335,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 319,
"end": 326,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 320,
"end": 326,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 322,
"end": 326,
"ctxt": 0
}
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 328,
"end": 335,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 331,
"end": 335,
"ctxt": 0
}
}
}
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 341,
"end": 366,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 341,
"end": 342,
"ctxt": 0
},
"value": "g",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 342,
"end": 365,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsConstructorType",
"span": {
"start": 344,
"end": 365,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 349,
"end": 356,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 350,
"end": 356,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 352,
"end": 356,
"ctxt": 0
}
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 358,
"end": 365,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 361,
"end": 365,
"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": 371,
"end": 384,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 371,
"end": 372,
"ctxt": 0
},
"value": "h",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 372,
"end": 383,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 374,
"end": 383,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 374,
"end": 377,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 377,
"end": 383,
"ctxt": 0
},
"params": [
{
"type": "TsThisType",
"span": {
"start": 378,
"end": 382,
"ctxt": 0
}
}
]
}
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 389,
"end": 417,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 389,
"end": 390,
"ctxt": 0
},
"value": "i",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 390,
"end": 416,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 392,
"end": 416,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 392,
"end": 395,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"typeParams": {
"type": "TsTypeParameterInstantiation",
"span": {
"start": 395,
"end": 416,
"ctxt": 0
},
"params": [
{
"type": "TsUnionType",
"span": {
"start": 396,
"end": 415,
"ctxt": 0
},
"types": [
{
"type": "TsThisType",
"span": {
"start": 396,
"end": 400,
"ctxt": 0
}
},
{
"type": "TsParenthesizedType",
"span": {
"start": 403,
"end": 415,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 404,
"end": 414,
"ctxt": 0
},
"params": [],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 407,
"end": 414,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 410,
"end": 414,
"ctxt": 0
}
}
}
}
}
]
}
]
}
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 422,
"end": 447,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 422,
"end": 423,
"ctxt": 0
},
"value": "j",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 423,
"end": 446,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsFunctionType",
"span": {
"start": 425,
"end": 446,
"ctxt": 0
},
"params": [
{
"type": "Identifier",
"span": {
"start": 426,
"end": 432,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 427,
"end": 432,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 429,
"end": 432,
"ctxt": 0
},
"kind": "any"
}
}
}
],
"typeParams": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 434,
"end": 446,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypePredicate",
"span": {
"start": 437,
"end": 446,
"ctxt": 0
},
"asserts": false,
"paramName": {
"type": "Identifier",
"span": {
"start": 437,
"end": 438,
"ctxt": 0
},
"value": "x",
"optional": false
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 442,
"end": 446,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsThisType",
"span": {
"start": 442,
"end": 446,
"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": 457,
"end": 459,
"ctxt": 0
},
"value": "C4",
"optional": false
},
"declare": false,
"span": {
"start": 451,
"end": 723,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 466,
"end": 483,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 466,
"end": 468,
"ctxt": 0
},
"value": "x1",
"optional": false
},
"value": {
"type": "ObjectExpression",
"span": {
"start": 471,
"end": 482,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 473,
"end": 474,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "ThisExpression",
"span": {
"start": 476,
"end": 480,
"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": 488,
"end": 500,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 488,
"end": 490,
"ctxt": 0
},
"value": "x2",
"optional": false
},
"value": {
"type": "ArrayExpression",
"span": {
"start": 493,
"end": 499,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ThisExpression",
"span": {
"start": 494,
"end": 498,
"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": 505,
"end": 524,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 505,
"end": 507,
"ctxt": 0
},
"value": "x3",
"optional": false
},
"value": {
"type": "ArrayExpression",
"span": {
"start": 510,
"end": 523,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 511,
"end": 522,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 513,
"end": 514,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "ThisExpression",
"span": {
"start": 516,
"end": 520,
"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": 529,
"end": 545,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 529,
"end": 531,
"ctxt": 0
},
"value": "x4",
"optional": false
},
"value": {
"type": "ArrowFunctionExpression",
"span": {
"start": 534,
"end": 544,
"ctxt": 0
},
"params": [],
"body": {
"type": "ThisExpression",
"span": {
"start": 540,
"end": 544,
"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": 550,
"end": 590,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 550,
"end": 552,
"ctxt": 0
},
"value": "f1",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 550,
"end": 590,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 555,
"end": 590,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 565,
"end": 584,
"ctxt": 0
},
"argument": {
"type": "ObjectExpression",
"span": {
"start": 572,
"end": 583,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 574,
"end": 575,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "ThisExpression",
"span": {
"start": 577,
"end": 581,
"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": 595,
"end": 630,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 595,
"end": 597,
"ctxt": 0
},
"value": "f2",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 595,
"end": 630,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 600,
"end": 630,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 610,
"end": 624,
"ctxt": 0
},
"argument": {
"type": "ArrayExpression",
"span": {
"start": 617,
"end": 623,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ThisExpression",
"span": {
"start": 618,
"end": 622,
"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": 635,
"end": 677,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 635,
"end": 637,
"ctxt": 0
},
"value": "f3",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 635,
"end": 677,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 640,
"end": 677,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 650,
"end": 671,
"ctxt": 0
},
"argument": {
"type": "ArrayExpression",
"span": {
"start": 657,
"end": 670,
"ctxt": 0
},
"elements": [
{
"spread": null,
"expression": {
"type": "ObjectExpression",
"span": {
"start": 658,
"end": 669,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 660,
"end": 661,
"ctxt": 0
},
"value": "a",
"optional": false
},
"value": {
"type": "ThisExpression",
"span": {
"start": 663,
"end": 667,
"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": 682,
"end": 721,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 682,
"end": 684,
"ctxt": 0
},
"value": "f4",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 682,
"end": 721,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 687,
"end": 721,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 697,
"end": 715,
"ctxt": 0
},
"argument": {
"type": "ArrowFunctionExpression",
"span": {
"start": 704,
"end": 714,
"ctxt": 0
},
"params": [],
"body": {
"type": "ThisExpression",
"span": {
"start": 710,
"end": 714,
"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
}