Debian Codegraph @

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

raw
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 "program": {
5 "type": "Program",
6 "start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":14,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":14,"index":14}},
13 "expression": {
14 "type": "BinaryExpression",
15 "start":0,"end":13,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":13,"index":13}},
16 "left": {
17 "type": "JSXElement",
18 "start":1,"end":8,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":8,"index":8}},
19 "openingElement": {
20 "type": "JSXOpeningElement",
21 "start":1,"end":8,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":8,"index":8}},
22 "name": {
23 "type": "JSXIdentifier",
24 "start":2,"end":5,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":5,"index":5}},
25 "name": "div"
26 },
27 "attributes": [],
28 "selfClosing": true
29 },
30 "closingElement": null,
31 "children": [],
32 "extra": {
33 "parenthesized": true,
34 "parenStart": 0
35 }
36 },
37 "operator": "<",
38 "right": {
39 "type": "Identifier",
40 "start":12,"end":13,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":1,"column":13,"index":13},"identifierName":"x"},
41 "name": "x"
42 }
43 }
44 }
45 ],
46 "directives": []
47 }
48 }