mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
1d3f32056c
**Related issue:** - Closes #4176. - Closes #7372.
173 lines
3.5 KiB
JSON
173 lines
3.5 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 2,
|
|
"end": 212,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 2,
|
|
"end": 22,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 6,
|
|
"end": 21,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 6,
|
|
"end": 13,
|
|
"ctxt": 0
|
|
},
|
|
"value": "declare",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 13,
|
|
"end": 21,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 15,
|
|
"end": 21,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "number"
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 23,
|
|
"end": 42,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 27,
|
|
"end": 41,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 27,
|
|
"end": 33,
|
|
"ctxt": 0
|
|
},
|
|
"value": "module",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 33,
|
|
"end": 41,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 35,
|
|
"end": 41,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "string"
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 44,
|
|
"end": 51,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 44,
|
|
"end": 51,
|
|
"ctxt": 0
|
|
},
|
|
"value": "declare",
|
|
"optional": false
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 103,
|
|
"end": 109,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 103,
|
|
"end": 109,
|
|
"ctxt": 0
|
|
},
|
|
"value": "module",
|
|
"optional": false
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 161,
|
|
"end": 181,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 161,
|
|
"end": 181,
|
|
"ctxt": 0
|
|
},
|
|
"value": "my external module",
|
|
"raw": "\"my external module\""
|
|
}
|
|
},
|
|
{
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 209,
|
|
"end": 212,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|