swc/crates/swc_ecma_parser/tests/jsx/basic/13/input.js.json

178 lines
4.6 KiB
JSON

{
"type": "Module",
"span": {
"start": 1,
"end": 58,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 1,
"end": 58,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 1,
"end": 58,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 2,
"end": 11,
"ctxt": 0
},
"value": "LeftRight",
"optional": false
},
"span": {
"start": 1,
"end": 58,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 12,
"end": 22,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 12,
"end": 16,
"ctxt": 0
},
"value": "left",
"optional": false
},
"value": {
"type": "JSXElement",
"span": {
"start": 17,
"end": 22,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 18,
"end": 19,
"ctxt": 0
},
"value": "a",
"optional": false
},
"span": {
"start": 17,
"end": 22,
"ctxt": 0
},
"attributes": [],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
}
},
{
"type": "JSXAttribute",
"span": {
"start": 23,
"end": 55,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 23,
"end": 28,
"ctxt": 0
},
"value": "right",
"optional": false
},
"value": {
"type": "JSXElement",
"span": {
"start": 29,
"end": 55,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 30,
"end": 31,
"ctxt": 0
},
"value": "b",
"optional": false
},
"span": {
"start": 29,
"end": 32,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 32,
"end": 51,
"ctxt": 0
},
"value": "monkeys /> gorillas",
"raw": "monkeys /> gorillas"
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 51,
"end": 55,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 53,
"end": 54,
"ctxt": 0
},
"value": "b",
"optional": false
}
}
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
}
}
],
"interpreter": null
}