Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":52,"index":52}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":52,"index":52}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":52,"index":52}},
13 "expression": {
14 "type": "JSXElement",
15 "start":0,"end":52,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":52,"index":52}},
16 "openingElement": {
17 "type": "JSXOpeningElement",
18 "start":0,"end":31,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":31,"index":31}},
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 {
26 "type": "JSXAttribute",
27 "start":3,"end":16,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":16,"index":16}},
28 "name": {
29 "type": "JSXIdentifier",
30 "start":3,"end":5,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":5,"index":5}},
31 "name": "aa"
32 },
33 "value": {
34 "type": "JSXExpressionContainer",
35 "start":6,"end":16,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":16,"index":16}},
36 "expression": {
37 "type": "MemberExpression",
38 "start":7,"end":15,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":15,"index":15}},
39 "object": {
40 "type": "MemberExpression",
41 "start":7,"end":12,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":12,"index":12}},
42 "object": {
43 "type": "Identifier",
44 "start":7,"end":9,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":9,"index":9},"identifierName":"aa"},
45 "name": "aa"
46 },
47 "computed": false,
48 "property": {
49 "type": "Identifier",
50 "start":10,"end":12,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":1,"column":12,"index":12},"identifierName":"bb"},
51 "name": "bb"
52 }
53 },
54 "computed": false,
55 "property": {
56 "type": "Identifier",
57 "start":13,"end":15,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":15,"index":15},"identifierName":"cc"},
58 "name": "cc"
59 }
60 }
61 }
62 },
63 {
64 "type": "JSXAttribute",
65 "start":17,"end":30,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":30,"index":30}},
66 "name": {
67 "type": "JSXIdentifier",
68 "start":17,"end":19,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":19,"index":19}},
69 "name": "bb"
70 },
71 "value": {
72 "type": "JSXExpressionContainer",
73 "start":20,"end":30,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":30,"index":30}},
74 "expression": {
75 "type": "MemberExpression",
76 "start":21,"end":29,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":29,"index":29}},
77 "object": {
78 "type": "MemberExpression",
79 "start":21,"end":26,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":26,"index":26}},
80 "object": {
81 "type": "Identifier",
82 "start":21,"end":23,"loc":{"start":{"line":1,"column":21,"index":21},"end":{"line":1,"column":23,"index":23},"identifierName":"bb"},
83 "name": "bb"
84 },
85 "computed": false,
86 "property": {
87 "type": "Identifier",
88 "start":24,"end":26,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":26,"index":26},"identifierName":"cc"},
89 "name": "cc"
90 }
91 },
92 "computed": false,
93 "property": {
94 "type": "Identifier",
95 "start":27,"end":29,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":29,"index":29},"identifierName":"dd"},
96 "name": "dd"
97 }
98 }
99 }
100 }
101 ],
102 "selfClosing": false
103 },
104 "closingElement": {
105 "type": "JSXClosingElement",
106 "start":48,"end":52,"loc":{"start":{"line":1,"column":48,"index":48},"end":{"line":1,"column":52,"index":52}},
107 "name": {
108 "type": "JSXIdentifier",
109 "start":50,"end":51,"loc":{"start":{"line":1,"column":50,"index":50},"end":{"line":1,"column":51,"index":51}},
110 "name": "A"
111 }
112 },
113 "children": [
114 {
115 "type": "JSXElement",
116 "start":31,"end":48,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":48,"index":48}},
117 "openingElement": {
118 "type": "JSXOpeningElement",
119 "start":31,"end":36,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":36,"index":36}},
120 "name": {
121 "type": "JSXIdentifier",
122 "start":32,"end":35,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":35,"index":35}},
123 "name": "div"
124 },
125 "attributes": [],
126 "selfClosing": false
127 },
128 "closingElement": {
129 "type": "JSXClosingElement",
130 "start":42,"end":48,"loc":{"start":{"line":1,"column":42,"index":42},"end":{"line":1,"column":48,"index":48}},
131 "name": {
132 "type": "JSXIdentifier",
133 "start":44,"end":47,"loc":{"start":{"line":1,"column":44,"index":44},"end":{"line":1,"column":47,"index":47}},
134 "name": "div"
135 }
136 },
137 "children": [
138 {
139 "type": "JSXExpressionContainer",
140 "start":36,"end":42,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":42,"index":42}},
141 "expression": {
142 "type": "MemberExpression",
143 "start":37,"end":41,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":41,"index":41}},
144 "object": {
145 "type": "Identifier",
146 "start":37,"end":39,"loc":{"start":{"line":1,"column":37,"index":37},"end":{"line":1,"column":39,"index":39},"identifierName":"aa"},
147 "name": "aa"
148 },
149 "computed": false,
150 "property": {
151 "type": "Identifier",
152 "start":40,"end":41,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":1,"column":41,"index":41},"identifierName":"b"},
153 "name": "b"
154 }
155 }
156 }
157 ]
158 }
159 ]
160 }
161 }
162 ],
163 "directives": []
164 }
165 }