Debian Codegraph @

packages/babel-parser/test/fixtures/jsx/errors/jsx-text-closing-angle-bracket/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
4 "errors": [
5 "SyntaxError: Unexpected token `>`. Did you mean `>` or `{'>'}`? (1:5)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
10 "sourceType": "script",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "ExpressionStatement",
15 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
16 "expression": {
17 "type": "JSXElement",
18 "start":0,"end":12,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":12,"index":12}},
19 "openingElement": {
20 "type": "JSXOpeningElement",
21 "start":0,"end":5,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":5,"index":5}},
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": "div"
26 },
27 "attributes": [],
28 "selfClosing": false
29 },
30 "closingElement": {
31 "type": "JSXClosingElement",
32 "start":6,"end":12,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":12,"index":12}},
33 "name": {
34 "type": "JSXIdentifier",
35 "start":8,"end":11,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":11,"index":11}},
36 "name": "div"
37 }
38 },
39 "children": [
40 {
41 "type": "JSXText",
42 "start":5,"end":6,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":6,"index":6}},
43 "extra": {
44 "rawValue": ">",
45 "raw": ">"
46 },
47 "value": ">"
48 }
49 ]
50 }
51 }
52 ],
53 "directives": []
54 }
55 }