mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
56 lines
2.2 KiB
JSON
56 lines
2.2 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
|
|
"errors": [
|
|
"SyntaxError: JSX attributes must only be assigned a non-empty expression. (1:9)"
|
|
],
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
|
|
"expression": {
|
|
"type": "JSXElement",
|
|
"start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
|
|
"openingElement": {
|
|
"type": "JSXOpeningElement",
|
|
"start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"start":1,"end":4,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":4,"index":4}},
|
|
"name": "foo"
|
|
},
|
|
"attributes": [
|
|
{
|
|
"type": "JSXAttribute",
|
|
"start":5,"end":11,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":11,"index":11}},
|
|
"name": {
|
|
"type": "JSXIdentifier",
|
|
"start":5,"end":8,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":8,"index":8}},
|
|
"name": "bar"
|
|
},
|
|
"value": {
|
|
"type": "JSXExpressionContainer",
|
|
"start":9,"end":11,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":11,"index":11}},
|
|
"expression": {
|
|
"type": "JSXEmptyExpression",
|
|
"start":10,"end":10,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":10,"index":10}}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"selfClosing": true
|
|
},
|
|
"closingElement": null,
|
|
"children": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|