mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
407 lines
11 KiB
JSON
407 lines
11 KiB
JSON
{
|
|
"type": "Module",
|
|
"span": {
|
|
"start": 145,
|
|
"end": 431,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"span": {
|
|
"start": 145,
|
|
"end": 163,
|
|
"ctxt": 0
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ImportDefaultSpecifier",
|
|
"span": {
|
|
"start": 152,
|
|
"end": 153,
|
|
"ctxt": 0
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 152,
|
|
"end": 153,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 159,
|
|
"end": 162,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"raw": "\"a\""
|
|
},
|
|
"typeOnly": false,
|
|
"asserts": null
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 164,
|
|
"end": 168,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"span": {
|
|
"start": 164,
|
|
"end": 167,
|
|
"ctxt": 0
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 164,
|
|
"end": 165,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"arguments": [],
|
|
"typeArguments": null
|
|
}
|
|
},
|
|
{
|
|
"type": "TsModuleDeclaration",
|
|
"span": {
|
|
"start": 198,
|
|
"end": 364,
|
|
"ctxt": 0
|
|
},
|
|
"declare": true,
|
|
"global": false,
|
|
"id": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 213,
|
|
"end": 216,
|
|
"ctxt": 0
|
|
},
|
|
"value": "b",
|
|
"raw": "\"b\""
|
|
},
|
|
"body": {
|
|
"type": "TsModuleBlock",
|
|
"span": {
|
|
"start": 217,
|
|
"end": 364,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExportDeclaration",
|
|
"span": {
|
|
"start": 223,
|
|
"end": 249,
|
|
"ctxt": 0
|
|
},
|
|
"declaration": {
|
|
"type": "FunctionDeclaration",
|
|
"identifier": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 239,
|
|
"end": 240,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"declare": false,
|
|
"params": [],
|
|
"decorators": [],
|
|
"span": {
|
|
"start": 230,
|
|
"end": 249,
|
|
"ctxt": 0
|
|
},
|
|
"body": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"typeParameters": null,
|
|
"returnType": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 242,
|
|
"end": 248,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 244,
|
|
"end": 248,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "void"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportDeclaration",
|
|
"span": {
|
|
"start": 254,
|
|
"end": 340,
|
|
"ctxt": 0
|
|
},
|
|
"declaration": {
|
|
"type": "TsModuleDeclaration",
|
|
"span": {
|
|
"start": 261,
|
|
"end": 340,
|
|
"ctxt": 0
|
|
},
|
|
"declare": false,
|
|
"global": false,
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 271,
|
|
"end": 272,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"body": {
|
|
"type": "TsModuleBlock",
|
|
"span": {
|
|
"start": 273,
|
|
"end": 340,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 283,
|
|
"end": 300,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 287,
|
|
"end": 299,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 287,
|
|
"end": 289,
|
|
"ctxt": 0
|
|
},
|
|
"value": "_a",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 289,
|
|
"end": 299,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsTypeQuery",
|
|
"span": {
|
|
"start": 291,
|
|
"end": 299,
|
|
"ctxt": 0
|
|
},
|
|
"exprName": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 298,
|
|
"end": 299,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"typeArguments": null
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"span": {
|
|
"start": 309,
|
|
"end": 334,
|
|
"ctxt": 0
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ExportSpecifier",
|
|
"span": {
|
|
"start": 318,
|
|
"end": 331,
|
|
"ctxt": 0
|
|
},
|
|
"orig": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 318,
|
|
"end": 320,
|
|
"ctxt": 0
|
|
},
|
|
"value": "_a",
|
|
"optional": false
|
|
},
|
|
"exported": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 324,
|
|
"end": 331,
|
|
"ctxt": 0
|
|
},
|
|
"value": "default",
|
|
"optional": false
|
|
},
|
|
"isTypeOnly": false
|
|
}
|
|
],
|
|
"source": null,
|
|
"typeOnly": false,
|
|
"asserts": null
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportDefaultExpression",
|
|
"span": {
|
|
"start": 345,
|
|
"end": 362,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 360,
|
|
"end": 361,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "TsModuleDeclaration",
|
|
"span": {
|
|
"start": 366,
|
|
"end": 431,
|
|
"ctxt": 0
|
|
},
|
|
"declare": true,
|
|
"global": false,
|
|
"id": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 381,
|
|
"end": 384,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"raw": "\"a\""
|
|
},
|
|
"body": {
|
|
"type": "TsModuleBlock",
|
|
"span": {
|
|
"start": 385,
|
|
"end": 431,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"span": {
|
|
"start": 391,
|
|
"end": 413,
|
|
"ctxt": 0
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"span": {
|
|
"start": 400,
|
|
"end": 401,
|
|
"ctxt": 0
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 400,
|
|
"end": 401,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"imported": null,
|
|
"isTypeOnly": false
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 409,
|
|
"end": 412,
|
|
"ctxt": 0
|
|
},
|
|
"value": "b",
|
|
"raw": "\"b\""
|
|
},
|
|
"typeOnly": false,
|
|
"asserts": null
|
|
},
|
|
{
|
|
"type": "TsExportAssignment",
|
|
"span": {
|
|
"start": 418,
|
|
"end": 429,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 427,
|
|
"end": 428,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|