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

91 lines
2.0 KiB
JSON
Raw Normal View History

{
"type": "Module",
"span": {
"start": 16,
"end": 70,
"ctxt": 0
},
"body": [
{
"type": "ExportDefaultDeclaration",
"span": {
"start": 16,
"end": 70,
"ctxt": 0
},
"decl": {
"type": "ClassExpression",
"identifier": null,
"span": {
"start": 31,
"end": 70,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 43,
"end": 68,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 50,
"end": 51,
"ctxt": 0
},
"value": "z",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 62,
"end": 67,
"ctxt": 0
},
"value": "Foo",
"raw": "\"Foo\""
},
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 51,
"end": 59,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 53,
"end": 59,
"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
}