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

91 lines
2.0 KiB
JSON
Raw Normal View History

{
"type": "Module",
"span": {
"start": 15,
"end": 69,
"ctxt": 0
},
"body": [
{
"type": "ExportDefaultDeclaration",
"span": {
"start": 15,
"end": 69,
"ctxt": 0
},
"decl": {
"type": "ClassExpression",
"identifier": null,
"span": {
"start": 30,
"end": 69,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 42,
"end": 67,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 49,
"end": 50,
"ctxt": 0
},
"value": "z",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 61,
"end": 66,
"ctxt": 0
},
"value": "Foo",
"raw": "\"Foo\""
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 50,
"end": 58,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 52,
"end": 58,
"ctxt": 0
},
"kind": "string"
}
},
"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": []
}
}
],
"interpreter": null
}