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

575 lines
12 KiB
JSON
Raw Normal View History

{
"type": "Module",
"span": {
"start": 69,
"end": 551,
"ctxt": 0
},
"body": [
{
"type": "ImportDeclaration",
"span": {
"start": 69,
"end": 130,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 78,
"end": 82,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 78,
"end": 82,
"ctxt": 0
},
"value": "type",
"optional": false
},
"imported": null,
"isTypeOnly": false
},
{
"type": "ImportSpecifier",
"span": {
"start": 84,
"end": 86,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 84,
"end": 86,
"ctxt": 0
},
"value": "as",
"optional": false
},
"imported": null,
"isTypeOnly": false
},
{
"type": "ImportSpecifier",
"span": {
"start": 88,
"end": 97,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 88,
"end": 97,
"ctxt": 0
},
"value": "something",
"optional": false
},
"imported": null,
"isTypeOnly": false
},
{
"type": "ImportSpecifier",
"span": {
"start": 99,
"end": 102,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 99,
"end": 102,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"imported": null,
"isTypeOnly": false
},
{
"type": "ImportSpecifier",
"span": {
"start": 104,
"end": 107,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 104,
"end": 107,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 115,
"end": 129,
"ctxt": 0
},
"value": "./exports.js",
"raw": "\"./exports.js\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 131,
"end": 136,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 131,
"end": 135,
"ctxt": 0
},
"value": "type",
"optional": false
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 137,
"end": 140,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 137,
"end": 139,
"ctxt": 0
},
"value": "as",
"optional": false
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 178,
"end": 188,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 178,
"end": 187,
"ctxt": 0
},
"value": "something",
"optional": false
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 226,
"end": 230,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 226,
"end": 229,
"ctxt": 0
},
"value": "foo",
"optional": false
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 268,
"end": 272,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 268,
"end": 271,
"ctxt": 0
},
"value": "bar",
"optional": false
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 337,
"end": 352,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 343,
"end": 351,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 343,
"end": 347,
"ctxt": 0
},
"value": "type",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 350,
"end": 351,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 353,
"end": 366,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 359,
"end": 365,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 359,
"end": 361,
"ctxt": 0
},
"value": "as",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 364,
"end": 365,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 367,
"end": 387,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 373,
"end": 386,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 373,
"end": 382,
"ctxt": 0
},
"value": "something",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 385,
"end": 386,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
},
"definite": false
}
]
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 388,
"end": 404,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 397,
"end": 401,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 397,
"end": 401,
"ctxt": 0
},
"value": "type",
"optional": false
},
"exported": null,
"isTypeOnly": false
}
],
"source": null,
"typeOnly": false,
"asserts": null
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 405,
"end": 424,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 414,
"end": 421,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 419,
"end": 421,
"ctxt": 0
},
"value": "as",
"optional": false
},
"exported": null,
"isTypeOnly": true
}
],
"source": null,
"typeOnly": false,
"asserts": null
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 425,
"end": 451,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 434,
"end": 448,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 439,
"end": 448,
"ctxt": 0
},
"value": "something",
"optional": false
},
"exported": null,
"isTypeOnly": true
}
],
"source": null,
"typeOnly": false,
"asserts": null
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 452,
"end": 480,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 461,
"end": 477,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 466,
"end": 470,
"ctxt": 0
},
"value": "type",
"optional": false
},
"exported": {
"type": "Identifier",
"span": {
"start": 474,
"end": 477,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"isTypeOnly": true
}
],
"source": null,
"typeOnly": false,
"asserts": null
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 481,
"end": 507,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 490,
"end": 494,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 495,
"end": 497,
"ctxt": 0
},
"value": "as",
"optional": false
},
"exported": {
"type": "Identifier",
"span": {
"start": 501,
"end": 504,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"isTypeOnly": true
}
],
"source": null,
"typeOnly": false,
"asserts": null
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 508,
"end": 551,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 522,
"end": 548,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 527,
"end": 536,
"ctxt": 0
},
"value": "something",
"optional": false
},
"exported": {
"type": "Identifier",
"span": {
"start": 540,
"end": 548,
"ctxt": 0
},
"value": "whatever",
"optional": false
},
"isTypeOnly": true
}
],
"source": null,
"typeOnly": true,
"asserts": null
}
],
"interpreter": null
}