Debian Codegraph @

packages/babel-parser/test/fixtures/jsx/regression/issue-11387/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":69,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":69,"index":69}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":69,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":69,"index":69}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":69,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":69,"index":69}},
13 "expression": {
14 "type": "JSXElement",
15 "start":0,"end":69,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":69,"index":69}},
16 "openingElement": {
17 "type": "JSXOpeningElement",
18 "start":0,"end":5,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":5,"index":5}},
19 "name": {
20 "type": "JSXIdentifier",
21 "start":1,"end":4,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":4,"index":4}},
22 "name": "div"
23 },
24 "attributes": [],
25 "selfClosing": false
26 },
27 "closingElement": {
28 "type": "JSXClosingElement",
29 "start":63,"end":69,"loc":{"start":{"line":1,"column":63,"index":63},"end":{"line":1,"column":69,"index":69}},
30 "name": {
31 "type": "JSXIdentifier",
32 "start":65,"end":68,"loc":{"start":{"line":1,"column":65,"index":65},"end":{"line":1,"column":68,"index":68}},
33 "name": "div"
34 }
35 },
36 "children": [
37 {
38 "type": "JSXExpressionContainer",
39 "start":5,"end":63,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":63,"index":63}},
40 "expression": {
41 "type": "SequenceExpression",
42 "start":7,"end":61,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":61,"index":61}},
43 "expressions": [
44 {
45 "type": "OptionalMemberExpression",
46 "start":7,"end":18,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":18,"index":18}},
47 "object": {
48 "type": "ThisExpression",
49 "start":7,"end":11,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":11,"index":11}}
50 },
51 "computed": false,
52 "property": {
53 "type": "Identifier",
54 "start":13,"end":18,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":18,"index":18},"identifierName":"class"},
55 "name": "class"
56 },
57 "optional": true
58 },
59 {
60 "type": "MemberExpression",
61 "start":20,"end":30,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":30,"index":30}},
62 "object": {
63 "type": "ThisExpression",
64 "start":20,"end":24,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":24,"index":24}}
65 },
66 "computed": false,
67 "property": {
68 "type": "Identifier",
69 "start":25,"end":30,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":30,"index":30},"identifierName":"class"},
70 "name": "class"
71 }
72 },
73 {
74 "type": "OptionalMemberExpression",
75 "start":32,"end":46,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":46,"index":46}},
76 "object": {
77 "type": "ThisExpression",
78 "start":32,"end":36,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":36,"index":36}}
79 },
80 "computed": false,
81 "property": {
82 "type": "Identifier",
83 "start":38,"end":46,"loc":{"start":{"line":1,"column":38,"index":38},"end":{"line":1,"column":46,"index":46},"identifierName":"function"},
84 "name": "function"
85 },
86 "optional": true
87 },
88 {
89 "type": "MemberExpression",
90 "start":48,"end":61,"loc":{"start":{"line":1,"column":48,"index":48},"end":{"line":1,"column":61,"index":61}},
91 "object": {
92 "type": "ThisExpression",
93 "start":48,"end":52,"loc":{"start":{"line":1,"column":48,"index":48},"end":{"line":1,"column":52,"index":52}}
94 },
95 "computed": false,
96 "property": {
97 "type": "Identifier",
98 "start":53,"end":61,"loc":{"start":{"line":1,"column":53,"index":53},"end":{"line":1,"column":61,"index":61},"identifierName":"function"},
99 "name": "function"
100 }
101 }
102 ],
103 "extra": {
104 "parenthesized": true,
105 "parenStart": 6
106 }
107 }
108 }
109 ]
110 }
111 }
112 ],
113 "directives": []
114 }
115 }