swc/crates/swc_ecma_parser/tests/tsc/importAssertion3.json
2022-02-04 17:08:38 +09:00

355 lines
7.6 KiB
JSON

{
"type": "Module",
"span": {
"start": 88,
"end": 363,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 88,
"end": 110,
"ctxt": 0
},
"declaration": {
"type": "TsInterfaceDeclaration",
"span": {
"start": 95,
"end": 110,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 105,
"end": 106,
"ctxt": 0
},
"value": "I",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 107,
"end": 110,
"ctxt": 0
},
"body": []
}
}
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 131,
"end": 180,
"ctxt": 0
},
"specifiers": [],
"source": {
"type": "StringLiteral",
"span": {
"start": 151,
"end": 156,
"ctxt": 0
},
"value": "./0",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"typeOnly": true,
"asserts": {
"type": "ObjectExpression",
"span": {
"start": 164,
"end": 180,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 166,
"end": 170,
"ctxt": 0
},
"value": "type",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 172,
"end": 178,
"ctxt": 0
},
"value": "json",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
}
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 181,
"end": 233,
"ctxt": 0
},
"specifiers": [
{
"type": "ExportSpecifier",
"span": {
"start": 195,
"end": 196,
"ctxt": 0
},
"orig": {
"type": "Identifier",
"span": {
"start": 195,
"end": 196,
"ctxt": 0
},
"value": "I",
"optional": false
},
"exported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 204,
"end": 209,
"ctxt": 0
},
"value": "./0",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"typeOnly": true,
"asserts": {
"type": "ObjectExpression",
"span": {
"start": 217,
"end": 233,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 219,
"end": 223,
"ctxt": 0
},
"value": "type",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 225,
"end": 231,
"ctxt": 0
},
"value": "json",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
}
},
{
"type": "ImportDeclaration",
"span": {
"start": 254,
"end": 307,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 268,
"end": 269,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 268,
"end": 269,
"ctxt": 0
},
"value": "I",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 277,
"end": 282,
"ctxt": 0
},
"value": "./0",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"typeOnly": true,
"asserts": {
"type": "ObjectExpression",
"span": {
"start": 291,
"end": 307,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 293,
"end": 297,
"ctxt": 0
},
"value": "type",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 299,
"end": 305,
"ctxt": 0
},
"value": "json",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
}
},
{
"type": "ImportDeclaration",
"span": {
"start": 308,
"end": 363,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportNamespaceSpecifier",
"span": {
"start": 320,
"end": 328,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 325,
"end": 328,
"ctxt": 0
},
"value": "foo",
"optional": false
}
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 334,
"end": 339,
"ctxt": 0
},
"value": "./0",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"typeOnly": true,
"asserts": {
"type": "ObjectExpression",
"span": {
"start": 347,
"end": 363,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 349,
"end": 353,
"ctxt": 0
},
"value": "type",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 355,
"end": 361,
"ctxt": 0
},
"value": "json",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
}
}
]
}
}
],
"interpreter": null
}