mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* Allow any length in unicode CP jsx entities * Add failing test * Don't access entities from Object.prototype * Add `�_0;` test * Fix `�` parsing
53 lines
2.1 KiB
JSON
53 lines
2.1 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":61,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":4,"index":61}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":61,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":4,"index":61}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":61,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":4,"index":61}},
|
|
"expression": {
|
|
"type": "JSXElement",
|
|
"start":0,"end":61,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":4,"index":61}},
|
|
"openingElement": {
|
|
"type": "JSXOpeningElement",
|
|
"start":0,"end":3,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":3,"index":3}},
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"start":1,"end":2,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":2,"index":2}},
|
|
"name": "a"
|
|
},
|
|
"attributes": [],
|
|
"selfClosing": false
|
|
},
|
|
"closingElement": {
|
|
"type": "JSXClosingElement",
|
|
"start":57,"end":61,"loc":{"start":{"line":7,"column":0,"index":57},"end":{"line":7,"column":4,"index":61}},
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"start":59,"end":60,"loc":{"start":{"line":7,"column":2,"index":59},"end":{"line":7,"column":3,"index":60}},
|
|
"name": "a"
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "JSXText",
|
|
"start":3,"end":57,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":7,"column":0,"index":57}},
|
|
"extra": {
|
|
"rawValue": "\n &\n &a;\n & ;\n &xamp;\n �_0;\n",
|
|
"raw": "\n &\n &a;\n & ;\n &xamp;\n �_0;\n"
|
|
},
|
|
"value": "\n &\n &a;\n & ;\n &xamp;\n �_0;\n"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|