Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
13 "expression": {
14 "type": "JSXElement",
15 "start":0,"end":30,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":30,"index":30}},
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":24,"end":30,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":30,"index":30}},
30 "name": {
31 "type": "JSXIdentifier",
32 "start":26,"end":29,"loc":{"start":{"line":1,"column":26,"index":26},"end":{"line":1,"column":29,"index":29}},
33 "name": "div"
34 }
35 },
36 "children": [
37 {
38 "type": "JSXExpressionContainer",
39 "start":5,"end":24,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":24,"index":24}},
40 "expression": {
41 "type": "JSXElement",
42 "start":6,"end":23,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":23,"index":23}},
43 "openingElement": {
44 "type": "JSXOpeningElement",
45 "start":6,"end":23,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":23,"index":23}},
46 "name": {
47 "type": "JSXIdentifier",
48 "start":7,"end":10,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":10,"index":10}},
49 "name": "div"
50 },
51 "attributes": [
52 {
53 "type": "JSXSpreadAttribute",
54 "start":11,"end":20,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":20,"index":20}},
55 "argument": {
56 "type": "Identifier",
57 "start":15,"end":19,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":19,"index":19},"identifierName":"test"},
58 "name": "test"
59 }
60 }
61 ],
62 "selfClosing": true
63 },
64 "closingElement": null,
65 "children": []
66 }
67 }
68 ]
69 }
70 }
71 ],
72 "directives": []
73 }
74 }