Debian Codegraph @

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

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