| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: JSX attributes must only be assigned a non-empty expression. (1:9)" |
| 6 |
], |
| 7 |
"program": { |
| 8 |
"type": "Program", |
| 9 |
"start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}}, |
| 10 |
"sourceType": "script", |
| 11 |
"interpreter": null, |
| 12 |
"body": [ |
| 13 |
{ |
| 14 |
"type": "ExpressionStatement", |
| 15 |
"start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}}, |
| 16 |
"expression": { |
| 17 |
"type": "JSXElement", |
| 18 |
"start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}}, |
| 19 |
"openingElement": { |
| 20 |
"type": "JSXOpeningElement", |
| 21 |
"start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}}, |
| 22 |
"name": { |
| 23 |
"type": "JSXIdentifier", |
| 24 |
"start":1,"end":4,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":4,"index":4}}, |
| 25 |
"name": "foo" |
| 26 |
}, |
| 27 |
"attributes": [ |
| 28 |
{ |
| 29 |
"type": "JSXAttribute", |
| 30 |
"start":5,"end":11,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":11,"index":11}}, |
| 31 |
"name": { |
| 32 |
"type": "JSXIdentifier", |
| 33 |
"start":5,"end":8,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":8,"index":8}}, |
| 34 |
"name": "bar" |
| 35 |
}, |
| 36 |
"value": { |
| 37 |
"type": "JSXExpressionContainer", |
| 38 |
"start":9,"end":11,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":11,"index":11}}, |
| 39 |
"expression": { |
| 40 |
"type": "JSXEmptyExpression", |
| 41 |
"start":10,"end":10,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":10,"index":10}} |
| 42 |
} |
| 43 |
} |
| 44 |
} |
| 45 |
], |
| 46 |
"selfClosing": true |
| 47 |
}, |
| 48 |
"closingElement": null, |
| 49 |
"children": [] |
| 50 |
} |
| 51 |
} |
| 52 |
], |
| 53 |
"directives": [] |
| 54 |
} |
| 55 |
} |