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

237 lines
6.3 KiB
JSON
Raw Normal View History

{
"type": "Module",
"span": {
"start": 142,
"end": 217,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 142,
"end": 205,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 148,
"end": 205,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 148,
"end": 149,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXFragment",
"span": {
"start": 152,
"end": 205,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningFragment",
"span": {
"start": 152,
"end": 154,
"ctxt": 0
}
},
"children": [
{
"type": "JSXText",
"span": {
"start": 154,
"end": 157,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXElement",
"span": {
"start": 157,
"end": 164,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 158,
"end": 159,
"ctxt": 0
},
"value": "p",
"optional": false
},
"span": {
"start": 157,
"end": 160,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 160,
"end": 164,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 162,
"end": 163,
"ctxt": 0
},
"value": "p",
"optional": false
}
}
},
{
"type": "JSXText",
"span": {
"start": 164,
"end": 174,
"ctxt": 0
},
"value": "\n\n text\n\n ",
"raw": "\n\n text\n\n "
},
{
"type": "JSXElement",
"span": {
"start": 174,
"end": 201,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 175,
"end": 178,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 174,
"end": 195,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 179,
"end": 194,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 179,
"end": 188,
"ctxt": 0
},
"value": "className",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 189,
"end": 194,
"ctxt": 0
},
"value": "foo",
"raw": "\"foo\""
}
}
],
"selfClosing": false,
"typeArguments": null
},
"children": [],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 195,
"end": 201,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 197,
"end": 200,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
},
{
"type": "JSXText",
"span": {
"start": 201,
"end": 202,
"ctxt": 0
},
"value": "\n\n",
"raw": "\n\n"
}
],
"closing": {
"type": "JSXClosingFragment",
"span": {
"start": 202,
"end": 205,
"ctxt": 0
}
}
},
"definite": false
}
]
},
{
"type": "ExportNamedDeclaration",
"span": {
"start": 207,
"end": 217,
"ctxt": 0
},
"specifiers": [],
"source": null,
"typeOnly": false,
"asserts": null
}
],
"interpreter": null
}