swc/crates/swc_ecma_parser/tests/jsx/basic/4/input.js.json
2022-03-22 07:54:08 +00:00

172 lines
4.1 KiB
JSON

{
"type": "Module",
"span": {
"start": 0,
"end": 40,
"ctxt": 0
},
"body": [
{
"type": "ExpressionStatement",
"span": {
"start": 0,
"end": 40,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 0,
"end": 40,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"value": "a",
"optional": false
},
"span": {
"start": 0,
"end": 40,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 3,
"end": 10,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 3,
"end": 4,
"ctxt": 0
},
"value": "b",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 5,
"end": 10,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 6,
"end": 9,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
}
}
},
{
"type": "JSXAttribute",
"span": {
"start": 11,
"end": 16,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 11,
"end": 12,
"ctxt": 0
},
"value": "c",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 13,
"end": 16,
"ctxt": 0
},
"value": " ",
"raw": "\" \""
}
},
{
"type": "JSXAttribute",
"span": {
"start": 17,
"end": 26,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 17,
"end": 18,
"ctxt": 0
},
"value": "d",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 19,
"end": 26,
"ctxt": 0
},
"value": "&",
"raw": "\"&\""
}
},
{
"type": "JSXAttribute",
"span": {
"start": 27,
"end": 37,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 27,
"end": 28,
"ctxt": 0
},
"value": "e",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 29,
"end": 37,
"ctxt": 0
},
"value": "&ampr;",
"raw": "\"&ampr;\""
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
}
}
],
"interpreter": null
}