Debian Codegraph @

packages/babel-parser/test/fixtures/jsx/basic/12/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
13 "expression": {
14 "type": "JSXElement",
15 "start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
16 "openingElement": {
17 "type": "JSXOpeningElement",
18 "start":0,"end":5,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":5,"index":5}},
19 "name": {
20 "type": "JSXIdentifier",
21 "start":1,"end":4,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":4,"index":4}},
22 "name": "div"
23 },
24 "attributes": [],
25 "selfClosing": false
26 },
27 "closingElement": {
28 "type": "JSXClosingElement",
29 "start":35,"end":41,"loc":{"start":{"line":1,"column":35,"index":35},"end":{"line":1,"column":41,"index":41}},
30 "name": {
31 "type": "JSXIdentifier",
32 "start":37,"end":40,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":40,"index":40}},
33 "name": "div"
34 }
35 },
36 "children": [
37 {
38 "type": "JSXElement",
39 "start":5,"end":11,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":11,"index":11}},
40 "openingElement": {
41 "type": "JSXOpeningElement",
42 "start":5,"end":11,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":11,"index":11}},
43 "name": {
44 "type": "JSXIdentifier",
45 "start":6,"end":8,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":8,"index":8}},
46 "name": "br"
47 },
48 "attributes": [],
49 "selfClosing": true
50 },
51 "closingElement": null,
52 "children": []
53 },
54 {
55 "type": "JSXText",
56 "start":11,"end":35,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":35,"index":35}},
57 "extra": {
58 "rawValue": "7x invalid-js-identifier",
59 "raw": "7x invalid-js-identifier"
60 },
61 "value": "7x invalid-js-identifier"
62 }
63 ]
64 }
65 }
66 ],
67 "directives": []
68 }
69 }