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

588 lines
13 KiB
JSON

{
"type": "Script",
"span": {
"start": 52,
"end": 528,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 58,
"end": 61,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"declare": false,
"span": {
"start": 52,
"end": 115,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 69,
"end": 81,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 69,
"end": 77,
"ctxt": 0
},
"value": "property",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 80,
"end": 81,
"ctxt": 0
},
"value": 1.0
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 87,
"end": 112,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 94,
"end": 108,
"ctxt": 0
},
"value": "staticProperty",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 111,
"end": 112,
"ctxt": 0
},
"value": 2.0
},
"typeAnnotation": null,
"isStatic": true,
"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": 125,
"end": 131,
"ctxt": 0
},
"value": "SubFoo",
"optional": false
},
"declare": false,
"span": {
"start": 119,
"end": 194,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 151,
"end": 165,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 151,
"end": 159,
"ctxt": 0
},
"value": "property",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 162,
"end": 164,
"ctxt": 0
},
"value": 42.0
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 171,
"end": 191,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 171,
"end": 185,
"ctxt": 0
},
"value": "staticProperty",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 188,
"end": 190,
"ctxt": 0
},
"value": 42.0
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": {
"type": "Identifier",
"span": {
"start": 140,
"end": 143,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 204,
"end": 216,
"ctxt": 0
},
"value": "StaticSubFoo",
"optional": false
},
"declare": false,
"span": {
"start": 198,
"end": 293,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 236,
"end": 257,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 243,
"end": 251,
"ctxt": 0
},
"value": "property",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 254,
"end": 256,
"ctxt": 0
},
"value": 42.0
},
"typeAnnotation": null,
"isStatic": true,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 263,
"end": 290,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 270,
"end": 284,
"ctxt": 0
},
"value": "staticProperty",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 287,
"end": 289,
"ctxt": 0
},
"value": 42.0
},
"typeAnnotation": null,
"isStatic": true,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": {
"type": "Identifier",
"span": {
"start": 225,
"end": 228,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 303,
"end": 315,
"ctxt": 0
},
"value": "Intermediate",
"optional": false
},
"declare": false,
"span": {
"start": 297,
"end": 330,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": {
"type": "Identifier",
"span": {
"start": 324,
"end": 327,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 340,
"end": 347,
"ctxt": 0
},
"value": "Derived",
"optional": false
},
"declare": false,
"span": {
"start": 334,
"end": 419,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 376,
"end": 390,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 376,
"end": 384,
"ctxt": 0
},
"value": "property",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 387,
"end": 389,
"ctxt": 0
},
"value": 42.0
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 396,
"end": 416,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 396,
"end": 410,
"ctxt": 0
},
"value": "staticProperty",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 413,
"end": 415,
"ctxt": 0
},
"value": 42.0
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": {
"type": "Identifier",
"span": {
"start": 356,
"end": 368,
"ctxt": 0
},
"value": "Intermediate",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 429,
"end": 442,
"ctxt": 0
},
"value": "StaticDerived",
"optional": false
},
"declare": false,
"span": {
"start": 423,
"end": 528,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 471,
"end": 492,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 478,
"end": 486,
"ctxt": 0
},
"value": "property",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 489,
"end": 491,
"ctxt": 0
},
"value": 42.0
},
"typeAnnotation": null,
"isStatic": true,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 498,
"end": 525,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 505,
"end": 519,
"ctxt": 0
},
"value": "staticProperty",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 522,
"end": 524,
"ctxt": 0
},
"value": 42.0
},
"typeAnnotation": null,
"isStatic": true,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": {
"type": "Identifier",
"span": {
"start": 451,
"end": 463,
"ctxt": 0
},
"value": "Intermediate",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
],
"interpreter": null
}