Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":62,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":3,"index":62}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":62,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":3,"index":62}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":62,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":3,"index":62}},
13 "expression": {
14 "type": "JSXFragment",
15 "start":0,"end":62,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":7,"column":3,"index":62}},
16 "openingFragment": {
17 "type": "JSXOpeningFragment",
18 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":30}},
19 "innerComments": [
20 {
21 "type": "CommentLine",
22 "value": " comment1",
23 "start":2,"end":13,"loc":{"start":{"line":2,"column":0,"index":2},"end":{"line":2,"column":11,"index":13}}
24 },
25 {
26 "type": "CommentBlock",
27 "value": " comment2 ",
28 "start":14,"end":28,"loc":{"start":{"line":3,"column":0,"index":14},"end":{"line":3,"column":14,"index":28}}
29 }
30 ]
31 },
32 "closingFragment": {
33 "type": "JSXClosingFragment",
34 "start":59,"end":62,"loc":{"start":{"line":7,"column":0,"index":59},"end":{"line":7,"column":3,"index":62}}
35 },
36 "children": [
37 {
38 "type": "JSXText",
39 "start":30,"end":33,"loc":{"start":{"line":4,"column":1,"index":30},"end":{"line":5,"column":2,"index":33}},
40 "extra": {
41 "rawValue": "\n ",
42 "raw": "\n "
43 },
44 "value": "\n "
45 },
46 {
47 "type": "JSXElement",
48 "start":33,"end":44,"loc":{"start":{"line":5,"column":2,"index":33},"end":{"line":5,"column":13,"index":44}},
49 "openingElement": {
50 "type": "JSXOpeningElement",
51 "start":33,"end":38,"loc":{"start":{"line":5,"column":2,"index":33},"end":{"line":5,"column":7,"index":38}},
52 "name": {
53 "type": "JSXIdentifier",
54 "start":34,"end":37,"loc":{"start":{"line":5,"column":3,"index":34},"end":{"line":5,"column":6,"index":37}},
55 "name": "div"
56 },
57 "attributes": [],
58 "selfClosing": false
59 },
60 "closingElement": {
61 "type": "JSXClosingElement",
62 "start":38,"end":44,"loc":{"start":{"line":5,"column":7,"index":38},"end":{"line":5,"column":13,"index":44}},
63 "name": {
64 "type": "JSXIdentifier",
65 "start":40,"end":43,"loc":{"start":{"line":5,"column":9,"index":40},"end":{"line":5,"column":12,"index":43}},
66 "name": "div"
67 }
68 },
69 "children": []
70 },
71 {
72 "type": "JSXText",
73 "start":44,"end":47,"loc":{"start":{"line":5,"column":13,"index":44},"end":{"line":6,"column":2,"index":47}},
74 "extra": {
75 "rawValue": "\n ",
76 "raw": "\n "
77 },
78 "value": "\n "
79 },
80 {
81 "type": "JSXElement",
82 "start":47,"end":58,"loc":{"start":{"line":6,"column":2,"index":47},"end":{"line":6,"column":13,"index":58}},
83 "openingElement": {
84 "type": "JSXOpeningElement",
85 "start":47,"end":52,"loc":{"start":{"line":6,"column":2,"index":47},"end":{"line":6,"column":7,"index":52}},
86 "name": {
87 "type": "JSXIdentifier",
88 "start":48,"end":51,"loc":{"start":{"line":6,"column":3,"index":48},"end":{"line":6,"column":6,"index":51}},
89 "name": "div"
90 },
91 "attributes": [],
92 "selfClosing": false
93 },
94 "closingElement": {
95 "type": "JSXClosingElement",
96 "start":52,"end":58,"loc":{"start":{"line":6,"column":7,"index":52},"end":{"line":6,"column":13,"index":58}},
97 "name": {
98 "type": "JSXIdentifier",
99 "start":54,"end":57,"loc":{"start":{"line":6,"column":9,"index":54},"end":{"line":6,"column":12,"index":57}},
100 "name": "div"
101 }
102 },
103 "children": []
104 },
105 {
106 "type": "JSXText",
107 "start":58,"end":59,"loc":{"start":{"line":6,"column":13,"index":58},"end":{"line":7,"column":0,"index":59}},
108 "extra": {
109 "rawValue": "\n",
110 "raw": "\n"
111 },
112 "value": "\n"
113 }
114 ]
115 }
116 }
117 ],
118 "directives": []
119 },
120 "comments": [
121 {
122 "type": "CommentLine",
123 "value": " comment1",
124 "start":2,"end":13,"loc":{"start":{"line":2,"column":0,"index":2},"end":{"line":2,"column":11,"index":13}}
125 },
126 {
127 "type": "CommentBlock",
128 "value": " comment2 ",
129 "start":14,"end":28,"loc":{"start":{"line":3,"column":0,"index":14},"end":{"line":3,"column":14,"index":28}}
130 }
131 ]
132 }