swc/crates/swc_ecma_parser/tests/tsc/implementsClause.json
2022-03-22 07:54:08 +00:00

349 lines
7.4 KiB
JSON

{
"type": "Module",
"span": {
"start": 23,
"end": 327,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 23,
"end": 52,
"ctxt": 0
},
"declaration": {
"type": "TsInterfaceDeclaration",
"span": {
"start": 30,
"end": 52,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 40,
"end": 49,
"ctxt": 0
},
"value": "Component",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 50,
"end": 52,
"ctxt": 0
},
"body": []
}
}
},
{
"type": "ImportDeclaration",
"span": {
"start": 74,
"end": 112,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportNamespaceSpecifier",
"span": {
"start": 86,
"end": 96,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 91,
"end": 96,
"ctxt": 0
},
"value": "types",
"optional": false
}
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 102,
"end": 111,
"ctxt": 0
},
"value": "./types",
"raw": "'./types'"
},
"typeOnly": true,
"asserts": null
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 113,
"end": 130,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 122,
"end": 127,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 122,
"end": 127,
"ctxt": 0
},
"value": "types",
"optional": false
},
"exported": null,
"isTypeOnly": false
}
],
"source": null,
"typeOnly": false,
"asserts": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 155,
"end": 193,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportNamespaceSpecifier",
"span": {
"start": 167,
"end": 177,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 172,
"end": 177,
"ctxt": 0
},
"value": "types",
"optional": false
}
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 183,
"end": 192,
"ctxt": 0
},
"value": "./types",
"raw": "'./types'"
},
"typeOnly": true,
"asserts": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 194,
"end": 234,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportNamespaceSpecifier",
"span": {
"start": 201,
"end": 221,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 206,
"end": 221,
"ctxt": 0
},
"value": "nestedNamespace",
"optional": false
}
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 227,
"end": 233,
"ctxt": 0
},
"value": "./ns",
"raw": "'./ns'"
},
"typeOnly": false,
"asserts": null
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 242,
"end": 243,
"ctxt": 0
},
"value": "C",
"optional": false
},
"declare": false,
"span": {
"start": 236,
"end": 273,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": [
{
"type": "TsExpressionWithTypeArguments",
"span": {
"start": 255,
"end": 270,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 255,
"end": 270,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 255,
"end": 260,
"ctxt": 0
},
"value": "types",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 261,
"end": 270,
"ctxt": 0
},
"value": "Component",
"optional": false
}
},
"typeArguments": null
}
]
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 280,
"end": 281,
"ctxt": 0
},
"value": "D",
"optional": false
},
"declare": false,
"span": {
"start": 274,
"end": 327,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": [
{
"type": "TsExpressionWithTypeArguments",
"span": {
"start": 293,
"end": 324,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 293,
"end": 324,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 293,
"end": 314,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 293,
"end": 308,
"ctxt": 0
},
"value": "nestedNamespace",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 309,
"end": 314,
"ctxt": 0
},
"value": "types",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 315,
"end": 324,
"ctxt": 0
},
"value": "Component",
"optional": false
}
},
"typeArguments": null
}
]
}
],
"interpreter": null
}