Debian Codegraph @

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

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