Debian Codegraph @

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

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