swc/ecmascript/parser/tests/jsx/basic/13/input.js.json
2020-01-29 06:24:35 +00:00

184 lines
4.8 KiB
JSON

{
"type": "Module",
"span": {
"start": 0,
"end": 57,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 0,
"end": 57,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 0,
"end": 57,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1,
"end": 10,
"ctxt": 0
},
"value": "LeftRight",
"typeAnnotation": null,
"optional": false
},
"span": {
"start": 0,
"end": 57,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 11,
"end": 21,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 11,
"end": 15,
"ctxt": 0
},
"value": "left",
"typeAnnotation": null,
"optional": false
},
"value": {
"type": "JSXElement",
"span": {
"start": 16,
"end": 21,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 17,
"end": 18,
"ctxt": 0
},
"value": "a",
"typeAnnotation": null,
"optional": false
},
"span": {
"start": 16,
"end": 21,
"ctxt": 0
},
"attributes": [],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
}
},
{
"type": "JSXAttribute",
"span": {
"start": 22,
"end": 54,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 22,
"end": 27,
"ctxt": 0
},
"value": "right",
"typeAnnotation": null,
"optional": false
},
"value": {
"type": "JSXElement",
"span": {
"start": 28,
"end": 54,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 29,
"end": 30,
"ctxt": 0
},
"value": "b",
"typeAnnotation": null,
"optional": false
},
"span": {
"start": 28,
"end": 31,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 31,
"end": 50,
"ctxt": 0
},
"value": "monkeys /> gorillas",
"raw": "monkeys /> gorillas"
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 50,
"end": 54,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 52,
"end": 53,
"ctxt": 0
},
"value": "b",
"typeAnnotation": null,
"optional": false
}
}
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
}
}
],
"interpreter": null
}