swc/crates/swc_ecma_parser/tests/tsc/exportStar-amd.json
2022-04-05 12:46:35 +00:00

638 lines
13 KiB
JSON

{
"type": "Module",
"span": {
"start": 53,
"end": 414,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 53,
"end": 70,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 60,
"end": 70,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 64,
"end": 69,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 64,
"end": 65,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 68,
"end": 69,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"definite": false
}
]
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 71,
"end": 88,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 78,
"end": 88,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 82,
"end": 87,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 82,
"end": 83,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 86,
"end": 87,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
},
"definite": false
}
]
}
},
{
"type": "ExportDefaultExpression",
"span": {
"start": 110,
"end": 133,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 125,
"end": 132,
"ctxt": 0
},
"value": "hello",
"raw": "\"hello\""
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 134,
"end": 159,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 150,
"end": 153,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 141,
"end": 159,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 156,
"end": 159,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 181,
"end": 193,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 185,
"end": 192,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 185,
"end": 186,
"ctxt": 0
},
"value": "x",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "StringLiteral",
"span": {
"start": 189,
"end": 192,
"ctxt": 0
},
"value": "x",
"raw": "\"x\""
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 194,
"end": 206,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 198,
"end": 205,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 198,
"end": 199,
"ctxt": 0
},
"value": "y",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "StringLiteral",
"span": {
"start": 202,
"end": 205,
"ctxt": 0
},
"value": "y",
"raw": "\"y\""
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 207,
"end": 219,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 211,
"end": 218,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 211,
"end": 212,
"ctxt": 0
},
"value": "z",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "StringLiteral",
"span": {
"start": 215,
"end": 218,
"ctxt": 0
},
"value": "z",
"raw": "\"z\""
},
"definite": false
}
]
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 220,
"end": 239,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 229,
"end": 230,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 229,
"end": 230,
"ctxt": 0
},
"value": "x",
"optional": false
},
"exported": null,
"isTypeOnly": false
},
{
"type": "ExportSpecifier",
"span": {
"start": 232,
"end": 233,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 232,
"end": 233,
"ctxt": 0
},
"value": "y",
"optional": false
},
"exported": null,
"isTypeOnly": false
},
{
"type": "ExportSpecifier",
"span": {
"start": 235,
"end": 236,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 235,
"end": 236,
"ctxt": 0
},
"value": "z",
"optional": false
},
"exported": null,
"isTypeOnly": false
}
],
"source": null,
"typeOnly": false,
"asserts": null
},
{
"type": "ExportAllDeclaration",
"span": {
"start": 261,
"end": 282,
"ctxt": 0
},
"source": {
"type": "StringLiteral",
"span": {
"start": 275,
"end": 281,
"ctxt": 0
},
"value": "./t1",
"raw": "\"./t1\""
},
"asserts": null
},
{
"type": "ExportAllDeclaration",
"span": {
"start": 283,
"end": 304,
"ctxt": 0
},
"source": {
"type": "StringLiteral",
"span": {
"start": 297,
"end": 303,
"ctxt": 0
},
"value": "./t2",
"raw": "\"./t2\""
},
"asserts": null
},
{
"type": "ExportAllDeclaration",
"span": {
"start": 305,
"end": 326,
"ctxt": 0
},
"source": {
"type": "StringLiteral",
"span": {
"start": 319,
"end": 325,
"ctxt": 0
},
"value": "./t3",
"raw": "\"./t3\""
},
"asserts": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 350,
"end": 393,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"span": {
"start": 357,
"end": 362,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 357,
"end": 362,
"ctxt": 0
},
"value": "hello",
"optional": false
}
},
{
"type": "ImportSpecifier",
"span": {
"start": 366,
"end": 367,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 366,
"end": 367,
"ctxt": 0
},
"value": "x",
"optional": false
},
"imported": null,
"isTypeOnly": false
},
{
"type": "ImportSpecifier",
"span": {
"start": 369,
"end": 370,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 369,
"end": 370,
"ctxt": 0
},
"value": "y",
"optional": false
},
"imported": null,
"isTypeOnly": false
},
{
"type": "ImportSpecifier",
"span": {
"start": 372,
"end": 373,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 372,
"end": 373,
"ctxt": 0
},
"value": "z",
"optional": false
},
"imported": null,
"isTypeOnly": false
},
{
"type": "ImportSpecifier",
"span": {
"start": 375,
"end": 378,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 375,
"end": 378,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 386,
"end": 392,
"ctxt": 0
},
"value": "./t4",
"raw": "\"./t4\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 394,
"end": 400,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 394,
"end": 399,
"ctxt": 0
},
"value": "hello",
"optional": false
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 401,
"end": 403,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 401,
"end": 402,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 404,
"end": 406,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 404,
"end": 405,
"ctxt": 0
},
"value": "y",
"optional": false
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 407,
"end": 409,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 407,
"end": 408,
"ctxt": 0
},
"value": "z",
"optional": false
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 410,
"end": 414,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 410,
"end": 413,
"ctxt": 0
},
"value": "foo",
"optional": false
}
}
],
"interpreter": null
}