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

2747 lines
71 KiB
JSON
Raw Normal View History

{
"type": "Module",
"span": {
"start": 116,
"end": 2824,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 116,
"end": 133,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 129,
"end": 130,
"ctxt": 0
},
"value": "A",
"optional": false
},
"declare": false,
"span": {
"start": 123,
"end": 133,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 135,
"end": 177,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 148,
"end": 149,
"ctxt": 0
},
"value": "B",
"optional": false
},
"declare": false,
"span": {
"start": 142,
"end": 177,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 156,
"end": 175,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 163,
"end": 166,
"ctxt": 0
},
"value": "cat",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 169,
"end": 174,
"ctxt": 0
},
"value": "cat",
"raw": "\"cat\""
},
"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": "ExportDeclaration",
"span": {
"start": 179,
"end": 223,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 192,
"end": 193,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 186,
"end": 223,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 200,
"end": 221,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 207,
"end": 210,
"ctxt": 0
},
"value": "Cls",
"optional": false
},
"value": {
"type": "ClassExpression",
"identifier": null,
"span": {
"start": 213,
"end": 221,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
"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": "ExportDeclaration",
"span": {
"start": 225,
"end": 334,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 238,
"end": 239,
"ctxt": 0
},
"value": "D",
"optional": false
},
"declare": false,
"span": {
"start": 232,
"end": 334,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "Constructor",
"span": {
"start": 312,
"end": 332,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 312,
"end": 323,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [
{
"type": "Parameter",
"span": {
"start": 324,
"end": 325,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 324,
"end": 325,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 327,
"end": 328,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 327,
"end": 328,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"body": {
"type": "BlockStatement",
"span": {
"start": 330,
"end": 332,
"ctxt": 0
},
"stmts": []
},
"accessibility": null,
"isOptional": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 361,
"end": 1560,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 374,
"end": 375,
"ctxt": 0
},
"value": "E",
"optional": false
},
"declare": false,
"span": {
"start": 368,
"end": 1560,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 419,
"end": 425,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 419,
"end": 424,
"ctxt": 0
},
"value": "field",
"optional": false
},
"value": null,
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 579,
"end": 593,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 579,
"end": 592,
"ctxt": 0
},
"value": "readonlyField",
"optional": false
},
"value": null,
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 599,
"end": 621,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 599,
"end": 615,
"ctxt": 0
},
"value": "initializedField",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 618,
"end": 620,
"ctxt": 0
},
"value": 12.0,
"raw": "12"
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassMethod",
"span": {
"start": 662,
"end": 705,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 666,
"end": 668,
"ctxt": 0
},
"value": "f1",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 662,
"end": 705,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 671,
"end": 705,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 673,
"end": 703,
"ctxt": 0
},
"argument": {
"type": "ParenthesisExpression",
"span": {
"start": 696,
"end": 702,
"ctxt": 0
},
"expression": {
"type": "NullLiteral",
"span": {
"start": 697,
"end": 701,
"ctxt": 0
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "getter",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 748,
"end": 761,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 752,
"end": 754,
"ctxt": 0
},
"value": "f1",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 755,
"end": 757,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 755,
"end": 757,
"ctxt": 0
},
"value": "_p",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 748,
"end": 761,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 759,
"end": 761,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "setter",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 802,
"end": 845,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 806,
"end": 808,
"ctxt": 0
},
"value": "f2",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 802,
"end": 845,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 811,
"end": 845,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 813,
"end": 843,
"ctxt": 0
},
"argument": {
"type": "ParenthesisExpression",
"span": {
"start": 836,
"end": 842,
"ctxt": 0
},
"expression": {
"type": "NullLiteral",
"span": {
"start": 837,
"end": 841,
"ctxt": 0
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "getter",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 888,
"end": 901,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 892,
"end": 894,
"ctxt": 0
},
"value": "f3",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 895,
"end": 897,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 895,
"end": 897,
"ctxt": 0
},
"value": "_p",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 888,
"end": 901,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 899,
"end": 901,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "setter",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "Constructor",
"span": {
"start": 963,
"end": 983,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 963,
"end": 974,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [
{
"type": "Parameter",
"span": {
"start": 975,
"end": 976,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 975,
"end": 976,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 978,
"end": 979,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 978,
"end": 979,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"body": {
"type": "BlockStatement",
"span": {
"start": 981,
"end": 983,
"ctxt": 0
},
"stmts": []
},
"accessibility": null,
"isOptional": false
},
{
"type": "ClassProperty",
"span": {
"start": 1028,
"end": 1047,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1035,
"end": 1046,
"ctxt": 0
},
"value": "staticField",
"optional": false
},
"value": null,
"typeAnnotation": null,
"isStatic": true,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 1202,
"end": 1229,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1209,
"end": 1228,
"ctxt": 0
},
"value": "staticReadonlyField",
"optional": false
},
"value": null,
"typeAnnotation": null,
"isStatic": true,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 1235,
"end": 1270,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1242,
"end": 1264,
"ctxt": 0
},
"value": "staticInitializedField",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 1267,
"end": 1269,
"ctxt": 0
},
"value": 12.0,
"raw": "12"
},
"typeAnnotation": null,
"isStatic": true,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassMethod",
"span": {
"start": 1316,
"end": 1346,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1327,
"end": 1329,
"ctxt": 0
},
"value": "s1",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1316,
"end": 1346,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1332,
"end": 1346,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1334,
"end": 1344,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 1341,
"end": 1343,
"ctxt": 0
},
"value": "",
"raw": "\"\""
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "getter",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1394,
"end": 1414,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1405,
"end": 1407,
"ctxt": 0
},
"value": "s1",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 1408,
"end": 1410,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1408,
"end": 1410,
"ctxt": 0
},
"value": "_p",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 1394,
"end": 1414,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1412,
"end": 1414,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "setter",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1460,
"end": 1490,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1471,
"end": 1473,
"ctxt": 0
},
"value": "s2",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 1460,
"end": 1490,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1476,
"end": 1490,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1478,
"end": 1488,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 1485,
"end": 1487,
"ctxt": 0
},
"value": "",
"raw": "\"\""
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "getter",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
},
{
"type": "ClassMethod",
"span": {
"start": 1538,
"end": 1558,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1549,
"end": 1551,
"ctxt": 0
},
"value": "s3",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 1552,
"end": 1554,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1552,
"end": 1554,
"ctxt": 0
},
"value": "_p",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 1538,
"end": 1558,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1556,
"end": 1558,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "setter",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 1587,
"end": 1860,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1600,
"end": 1601,
"ctxt": 0
},
"value": "F",
"optional": false
},
"declare": false,
"span": {
"start": 1594,
"end": 1860,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 1645,
"end": 1651,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1645,
"end": 1650,
"ctxt": 0
},
"value": "field",
"optional": false
},
"value": null,
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "Constructor",
"span": {
"start": 1712,
"end": 1732,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1712,
"end": 1723,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [
{
"type": "Parameter",
"span": {
"start": 1724,
"end": 1725,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1724,
"end": 1725,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 1727,
"end": 1728,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1727,
"end": 1728,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"body": {
"type": "BlockStatement",
"span": {
"start": 1730,
"end": 1732,
"ctxt": 0
},
"stmts": []
},
"accessibility": null,
"isOptional": false
},
{
"type": "ClassMethod",
"span": {
"start": 1815,
"end": 1858,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 1822,
"end": 1828,
"ctxt": 0
},
"value": "create",
"optional": false
},
"function": {
"params": [
{
"type": "Parameter",
"span": {
"start": 1829,
"end": 1830,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1829,
"end": 1830,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 1832,
"end": 1833,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1832,
"end": 1833,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 1815,
"end": 1858,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1835,
"end": 1858,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1837,
"end": 1856,
"ctxt": 0
},
"argument": {
"type": "NewExpression",
"span": {
"start": 1844,
"end": 1855,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1848,
"end": 1849,
"ctxt": 0
},
"value": "F",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 1850,
"end": 1851,
"ctxt": 0
},
"value": "a",
"optional": false
}
},
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 1853,
"end": 1854,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
],
"typeArguments": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1868,
"end": 1869,
"ctxt": 0
},
"value": "G",
"optional": false
},
"declare": false,
"span": {
"start": 1862,
"end": 1872,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 1874,
"end": 1887,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 1883,
"end": 1884,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 1883,
"end": 1884,
"ctxt": 0
},
"value": "G",
"optional": false
},
"exported": null,
"isTypeOnly": false
}
],
"source": null,
"typeOnly": false,
"asserts": null
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1895,
"end": 1897,
"ctxt": 0
},
"value": "HH",
"optional": false
},
"declare": false,
"span": {
"start": 1889,
"end": 1900,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 1902,
"end": 1921,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 1911,
"end": 1918,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 1911,
"end": 1913,
"ctxt": 0
},
"value": "HH",
"optional": false
},
"exported": {
"type": "Identifier",
"span": {
"start": 1917,
"end": 1918,
"ctxt": 0
},
"value": "H",
"optional": false
},
"isTypeOnly": false
}
],
"source": null,
"typeOnly": false,
"asserts": null
},
{
"type": "ExportDeclaration",
"span": {
"start": 1923,
"end": 1940,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1936,
"end": 1937,
"ctxt": 0
},
"value": "I",
"optional": false
},
"declare": false,
"span": {
"start": 1930,
"end": 1940,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 1941,
"end": 1960,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 1950,
"end": 1957,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 1950,
"end": 1951,
"ctxt": 0
},
"value": "I",
"optional": false
},
"exported": {
"type": "Identifier",
"span": {
"start": 1955,
"end": 1957,
"ctxt": 0
},
"value": "II",
"optional": false
},
"isTypeOnly": false
}
],
"source": null,
"typeOnly": false,
"asserts": null
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 1962,
"end": 1981,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 1971,
"end": 1978,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 1971,
"end": 1972,
"ctxt": 0
},
"value": "J",
"optional": false
},
"exported": {
"type": "Identifier",
"span": {
"start": 1976,
"end": 1978,
"ctxt": 0
},
"value": "JJ",
"optional": false
},
"isTypeOnly": false
}
],
"source": null,
"typeOnly": false,
"asserts": null
},
{
"type": "ExportDeclaration",
"span": {
"start": 1982,
"end": 1999,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1995,
"end": 1996,
"ctxt": 0
},
"value": "J",
"optional": false
},
"declare": false,
"span": {
"start": 1989,
"end": 1999,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 2002,
"end": 2138,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2015,
"end": 2016,
"ctxt": 0
},
"value": "K",
"optional": false
},
"declare": false,
"span": {
"start": 2009,
"end": 2138,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "Constructor",
"span": {
"start": 2023,
"end": 2090,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2023,
"end": 2034,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 2037,
"end": 2090,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2047,
"end": 2060,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 2047,
"end": 2059,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 2047,
"end": 2054,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 2047,
"end": 2051,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2052,
"end": 2054,
"ctxt": 0
},
"value": "p1",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 2057,
"end": 2059,
"ctxt": 0
},
"value": 12.0,
"raw": "12"
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2069,
"end": 2084,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 2069,
"end": 2083,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 2069,
"end": 2076,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 2069,
"end": 2073,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2074,
"end": 2076,
"ctxt": 0
},
"value": "p2",
"optional": false
}
},
"right": {
"type": "StringLiteral",
"span": {
"start": 2079,
"end": 2083,
"ctxt": 0
},
"value": "ok",
"raw": "\"ok\""
}
}
}
]
},
"accessibility": null,
"isOptional": false
},
{
"type": "ClassMethod",
"span": {
"start": 2096,
"end": 2136,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2096,
"end": 2102,
"ctxt": 0
},
"value": "method",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 2096,
"end": 2136,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2105,
"end": 2136,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 2115,
"end": 2130,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 2122,
"end": 2129,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 2122,
"end": 2126,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2127,
"end": 2129,
"ctxt": 0
},
"value": "p1",
"optional": false
}
}
}
]
},
"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": []
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 2140,
"end": 2167,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2153,
"end": 2154,
"ctxt": 0
},
"value": "L",
"optional": false
},
"declare": false,
"span": {
"start": 2147,
"end": 2167,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": {
"type": "Identifier",
"span": {
"start": 2163,
"end": 2164,
"ctxt": 0
},
"value": "K",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 2169,
"end": 2250,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2182,
"end": 2183,
"ctxt": 0
},
"value": "M",
"optional": false
},
"declare": false,
"span": {
"start": 2176,
"end": 2250,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "Constructor",
"span": {
"start": 2203,
"end": 2248,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2203,
"end": 2214,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [],
"body": {
"type": "BlockStatement",
"span": {
"start": 2217,
"end": 2248,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2227,
"end": 2242,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 2227,
"end": 2241,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 2227,
"end": 2236,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 2227,
"end": 2231,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2232,
"end": 2236,
"ctxt": 0
},
"value": "prop",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 2239,
"end": 2241,
"ctxt": 0
},
"value": 12.0,
"raw": "12"
}
}
}
]
},
"accessibility": null,
"isOptional": false
}
],
"superClass": {
"type": "NullLiteral",
"span": {
"start": 2192,
"end": 2196,
"ctxt": 0
}
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 2276,
"end": 2423,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2289,
"end": 2290,
"ctxt": 0
},
"value": "N",
"optional": false
},
"declare": false,
"span": {
"start": 2283,
"end": 2423,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "Constructor",
"span": {
"start": 2348,
"end": 2421,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2348,
"end": 2359,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [
{
"type": "Parameter",
"span": {
"start": 2360,
"end": 2365,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2360,
"end": 2365,
"ctxt": 0
},
"value": "param",
"optional": false,
"typeAnnotation": null
}
}
],
"body": {
"type": "BlockStatement",
"span": {
"start": 2367,
"end": 2421,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2377,
"end": 2385,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 2377,
"end": 2384,
"ctxt": 0
},
"callee": {
"type": "Super",
"span": {
"start": 2377,
"end": 2382,
"ctxt": 0
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2394,
"end": 2415,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 2394,
"end": 2414,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 2394,
"end": 2406,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 2394,
"end": 2398,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2399,
"end": 2406,
"ctxt": 0
},
"value": "another",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 2409,
"end": 2414,
"ctxt": 0
},
"value": "param",
"optional": false
}
}
}
]
},
"accessibility": null,
"isOptional": false
}
],
"superClass": {
"type": "Identifier",
"span": {
"start": 2299,
"end": 2300,
"ctxt": 0
},
"value": "L",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 2467,
"end": 2620,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2480,
"end": 2481,
"ctxt": 0
},
"value": "O",
"optional": false
},
"declare": false,
"span": {
"start": 2474,
"end": 2620,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "Constructor",
"span": {
"start": 2539,
"end": 2618,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2539,
"end": 2550,
"ctxt": 0
},
"value": "constructor",
"optional": false
},
"params": [
{
"type": "Parameter",
"span": {
"start": 2551,
"end": 2556,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 2551,
"end": 2556,
"ctxt": 0
},
"value": "param",
"optional": false,
"typeAnnotation": null
}
}
],
"body": {
"type": "BlockStatement",
"span": {
"start": 2558,
"end": 2618,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 2568,
"end": 2581,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 2568,
"end": 2580,
"ctxt": 0
},
"callee": {
"type": "Super",
"span": {
"start": 2568,
"end": 2573,
"ctxt": 0
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "Identifier",
"span": {
"start": 2574,
"end": 2579,
"ctxt": 0
},
"value": "param",
"optional": false
}
}
],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 2590,
"end": 2612,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 2590,
"end": 2611,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 2590,
"end": 2603,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 2590,
"end": 2594,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 2595,
"end": 2603,
"ctxt": 0
},
"value": "another2",
"optional": false
}
},
"right": {
"type": "Identifier",
"span": {
"start": 2606,
"end": 2611,
"ctxt": 0
},
"value": "param",
"optional": false
}
}
}
]
},
"accessibility": null,
"isOptional": false
}
],
"superClass": {
"type": "Identifier",
"span": {
"start": 2490,
"end": 2491,
"ctxt": 0
},
"value": "N",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 2622,
"end": 2653,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 2626,
"end": 2652,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 2626,
"end": 2627,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ParenthesisExpression",
"span": {
"start": 2646,
"end": 2652,
"ctxt": 0
},
"expression": {
"type": "NullLiteral",
"span": {
"start": 2647,
"end": 2651,
"ctxt": 0
}
}
},
"definite": false
}
]
},
{
"type": "ExportDeclaration",
"span": {
"start": 2655,
"end": 2693,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2668,
"end": 2680,
"ctxt": 0
},
"value": "VariableBase",
"optional": false
},
"declare": false,
"span": {
"start": 2662,
"end": 2693,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": {
"type": "Identifier",
"span": {
"start": 2689,
"end": 2690,
"ctxt": 0
},
"value": "x",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 2695,
"end": 2751,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2708,
"end": 2718,
"ctxt": 0
},
"value": "HasStatics",
"optional": false
},
"declare": false,
"span": {
"start": 2702,
"end": 2751,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 2725,
"end": 2749,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2732,
"end": 2744,
"ctxt": 0
},
"value": "staticMethod",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 2725,
"end": 2749,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2747,
"end": 2749,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 2753,
"end": 2824,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 2766,
"end": 2780,
"ctxt": 0
},
"value": "ExtendsStatics",
"optional": false
},
"declare": false,
"span": {
"start": 2760,
"end": 2824,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 2806,
"end": 2822,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 2813,
"end": 2817,
"ctxt": 0
},
"value": "also",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 2806,
"end": 2822,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 2820,
"end": 2822,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": {
"type": "Identifier",
"span": {
"start": 2789,
"end": 2799,
"ctxt": 0
},
"value": "HasStatics",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
}
],
"interpreter": null
}