swc/ecmascript/parser/tests/jsx/basic/fragment-5/input.js.json
강동윤 eaeffabf74
fix(es): Improve performance (#1411)
swc_ecma_ast:
 - Add `BindingIdent`.
 - Reduce size of `Ident`.
2021-02-19 15:34:22 +09:00

172 lines
3.9 KiB
JSON

{
"type": "Module",
"span": {
"start": 0,
"end": 62,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 0,
"end": 62,
"ctxt": 0
},
"expression": {
"type": "JSXFragment",
"span": {
"start": 0,
"end": 62,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningFragment",
"span": {
"start": 0,
"end": 30,
"ctxt": 0
}
},
"children": [
{
"type": "JSXText",
"span": {
"start": 30,
"end": 33,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXElement",
"span": {
"start": 33,
"end": 44,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 34,
"end": 37,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 33,
"end": 38,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 38,
"end": 44,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 40,
"end": 43,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
},
{
"type": "JSXText",
"span": {
"start": 44,
"end": 47,
"ctxt": 0
},
"value": "\n\n ",
"raw": "\n\n "
},
{
"type": "JSXElement",
"span": {
"start": 47,
"end": 58,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 48,
"end": 51,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 47,
"end": 52,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 52,
"end": 58,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 54,
"end": 57,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
},
{
"type": "JSXText",
"span": {
"start": 58,
"end": 59,
"ctxt": 0
},
"value": "\n\n",
"raw": "\n\n"
}
],
"closing": {
"type": "JSXClosingFragment",
"span": {
"start": 59,
"end": 62,
"ctxt": 0
}
}
}
}
],
"interpreter": null
}