mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
610 lines
13 KiB
JSON
610 lines
13 KiB
JSON
{
|
|
"type": "Module",
|
|
"span": {
|
|
"start": 99,
|
|
"end": 476,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExportDeclaration",
|
|
"span": {
|
|
"start": 99,
|
|
"end": 118,
|
|
"ctxt": 0
|
|
},
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 106,
|
|
"end": 118,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "const",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 112,
|
|
"end": 117,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 112,
|
|
"end": 113,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 116,
|
|
"end": 117,
|
|
"ctxt": 0
|
|
},
|
|
"value": 1.0,
|
|
"raw": "1"
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportDeclaration",
|
|
"span": {
|
|
"start": 119,
|
|
"end": 138,
|
|
"ctxt": 0
|
|
},
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 126,
|
|
"end": 138,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "const",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 132,
|
|
"end": 137,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 132,
|
|
"end": 133,
|
|
"ctxt": 0
|
|
},
|
|
"value": "b",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 136,
|
|
"end": 137,
|
|
"ctxt": 0
|
|
},
|
|
"value": 2.0,
|
|
"raw": "2"
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"span": {
|
|
"start": 159,
|
|
"end": 203,
|
|
"ctxt": 0
|
|
},
|
|
"specifiers": [],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 174,
|
|
"end": 179,
|
|
"ctxt": 0
|
|
},
|
|
"value": "./0",
|
|
"raw": "'./0'"
|
|
},
|
|
"typeOnly": false,
|
|
"asserts": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 187,
|
|
"end": 203,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 189,
|
|
"end": 193,
|
|
"ctxt": 0
|
|
},
|
|
"value": "type",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 195,
|
|
"end": 201,
|
|
"ctxt": 0
|
|
},
|
|
"value": "json",
|
|
"raw": "\"json\""
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"span": {
|
|
"start": 204,
|
|
"end": 254,
|
|
"ctxt": 0
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ExportSpecifier",
|
|
"span": {
|
|
"start": 213,
|
|
"end": 214,
|
|
"ctxt": 0
|
|
},
|
|
"orig": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 213,
|
|
"end": 214,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"exported": null,
|
|
"isTypeOnly": false
|
|
},
|
|
{
|
|
"type": "ExportSpecifier",
|
|
"span": {
|
|
"start": 216,
|
|
"end": 217,
|
|
"ctxt": 0
|
|
},
|
|
"orig": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 216,
|
|
"end": 217,
|
|
"ctxt": 0
|
|
},
|
|
"value": "b",
|
|
"optional": false
|
|
},
|
|
"exported": null,
|
|
"isTypeOnly": false
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 225,
|
|
"end": 230,
|
|
"ctxt": 0
|
|
},
|
|
"value": "./0",
|
|
"raw": "'./0'"
|
|
},
|
|
"typeOnly": false,
|
|
"asserts": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 238,
|
|
"end": 254,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 240,
|
|
"end": 244,
|
|
"ctxt": 0
|
|
},
|
|
"value": "type",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 246,
|
|
"end": 252,
|
|
"ctxt": 0
|
|
},
|
|
"value": "json",
|
|
"raw": "\"json\""
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportAllDeclaration",
|
|
"span": {
|
|
"start": 255,
|
|
"end": 298,
|
|
"ctxt": 0
|
|
},
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 269,
|
|
"end": 274,
|
|
"ctxt": 0
|
|
},
|
|
"value": "./0",
|
|
"raw": "'./0'"
|
|
},
|
|
"asserts": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 282,
|
|
"end": 298,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 284,
|
|
"end": 288,
|
|
"ctxt": 0
|
|
},
|
|
"value": "type",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 290,
|
|
"end": 296,
|
|
"ctxt": 0
|
|
},
|
|
"value": "json",
|
|
"raw": "\"json\""
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"span": {
|
|
"start": 299,
|
|
"end": 348,
|
|
"ctxt": 0
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ExportNamespaceSpecifier",
|
|
"span": {
|
|
"start": 306,
|
|
"end": 313,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 311,
|
|
"end": 313,
|
|
"ctxt": 0
|
|
},
|
|
"value": "ns",
|
|
"optional": false
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 319,
|
|
"end": 324,
|
|
"ctxt": 0
|
|
},
|
|
"value": "./0",
|
|
"raw": "'./0'"
|
|
},
|
|
"typeOnly": false,
|
|
"asserts": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 332,
|
|
"end": 348,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 334,
|
|
"end": 338,
|
|
"ctxt": 0
|
|
},
|
|
"value": "type",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 340,
|
|
"end": 346,
|
|
"ctxt": 0
|
|
},
|
|
"value": "json",
|
|
"raw": "\"json\""
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"span": {
|
|
"start": 369,
|
|
"end": 405,
|
|
"ctxt": 0
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ExportSpecifier",
|
|
"span": {
|
|
"start": 378,
|
|
"end": 379,
|
|
"ctxt": 0
|
|
},
|
|
"orig": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 378,
|
|
"end": 379,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"exported": null,
|
|
"isTypeOnly": false
|
|
},
|
|
{
|
|
"type": "ExportSpecifier",
|
|
"span": {
|
|
"start": 381,
|
|
"end": 382,
|
|
"ctxt": 0
|
|
},
|
|
"orig": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 381,
|
|
"end": 382,
|
|
"ctxt": 0
|
|
},
|
|
"value": "b",
|
|
"optional": false
|
|
},
|
|
"exported": null,
|
|
"isTypeOnly": false
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 390,
|
|
"end": 395,
|
|
"ctxt": 0
|
|
},
|
|
"value": "./0",
|
|
"raw": "'./0'"
|
|
},
|
|
"typeOnly": false,
|
|
"asserts": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 403,
|
|
"end": 405,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"span": {
|
|
"start": 406,
|
|
"end": 476,
|
|
"ctxt": 0
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ExportSpecifier",
|
|
"span": {
|
|
"start": 415,
|
|
"end": 421,
|
|
"ctxt": 0
|
|
},
|
|
"orig": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 415,
|
|
"end": 416,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"exported": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 420,
|
|
"end": 421,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c",
|
|
"optional": false
|
|
},
|
|
"isTypeOnly": false
|
|
},
|
|
{
|
|
"type": "ExportSpecifier",
|
|
"span": {
|
|
"start": 423,
|
|
"end": 429,
|
|
"ctxt": 0
|
|
},
|
|
"orig": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 423,
|
|
"end": 424,
|
|
"ctxt": 0
|
|
},
|
|
"value": "b",
|
|
"optional": false
|
|
},
|
|
"exported": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 428,
|
|
"end": 429,
|
|
"ctxt": 0
|
|
},
|
|
"value": "d",
|
|
"optional": false
|
|
},
|
|
"isTypeOnly": false
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 437,
|
|
"end": 442,
|
|
"ctxt": 0
|
|
},
|
|
"value": "./0",
|
|
"raw": "'./0'"
|
|
},
|
|
"typeOnly": false,
|
|
"asserts": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 450,
|
|
"end": 476,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 452,
|
|
"end": 453,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 455,
|
|
"end": 458,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"raw": "\"a\""
|
|
}
|
|
},
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 460,
|
|
"end": 461,
|
|
"ctxt": 0
|
|
},
|
|
"value": "b",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 463,
|
|
"end": 466,
|
|
"ctxt": 0
|
|
},
|
|
"value": "b",
|
|
"raw": "\"b\""
|
|
}
|
|
},
|
|
{
|
|
"type": "KeyValueProperty",
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 468,
|
|
"end": 469,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c",
|
|
"optional": false
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 471,
|
|
"end": 474,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c",
|
|
"raw": "\"c\""
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|