Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":59,"index":59}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":59,"index":59}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":59,"index":59}},
13 "expression": {
14 "type": "JSXFragment",
15 "start":0,"end":59,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":59,"index":59}},
16 "openingFragment": {
17 "type": "JSXOpeningFragment",
18 "start":0,"end":2,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":2,"index":2}}
19 },
20 "closingFragment": {
21 "type": "JSXClosingFragment",
22 "start":56,"end":59,"loc":{"start":{"line":1,"column":56,"index":56},"end":{"line":1,"column":59,"index":59}}
23 },
24 "children": [
25 {
26 "type": "JSXElement",
27 "start":2,"end":23,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":23,"index":23}},
28 "openingElement": {
29 "type": "JSXOpeningElement",
30 "start":2,"end":7,"loc":{"start":{"line":1,"column":2,"index":2},"end":{"line":1,"column":7,"index":7}},
31 "name": {
32 "type": "JSXIdentifier",
33 "start":3,"end":6,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":6,"index":6}},
34 "name": "div"
35 },
36 "attributes": [],
37 "selfClosing": false
38 },
39 "closingElement": {
40 "type": "JSXClosingElement",
41 "start":17,"end":23,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":23,"index":23}},
42 "name": {
43 "type": "JSXIdentifier",
44 "start":19,"end":22,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":22,"index":22}},
45 "name": "div"
46 }
47 },
48 "children": [
49 {
50 "type": "JSXText",
51 "start":7,"end":17,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":17,"index":17}},
52 "extra": {
53 "rawValue": "JSXElement",
54 "raw": "JSXElement"
55 },
56 "value": "JSXElement"
57 }
58 ]
59 },
60 {
61 "type": "JSXText",
62 "start":23,"end":30,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":30,"index":30}},
63 "extra": {
64 "rawValue": "JSXText",
65 "raw": "JSXText"
66 },
67 "value": "JSXText"
68 },
69 {
70 "type": "JSXExpressionContainer",
71 "start":30,"end":56,"loc":{"start":{"line":1,"column":30,"index":30},"end":{"line":1,"column":56,"index":56}},
72 "expression": {
73 "type": "StringLiteral",
74 "start":31,"end":55,"loc":{"start":{"line":1,"column":31,"index":31},"end":{"line":1,"column":55,"index":55}},
75 "extra": {
76 "rawValue": "JSXExpressionContainer",
77 "raw": "'JSXExpressionContainer'"
78 },
79 "value": "JSXExpressionContainer"
80 }
81 }
82 ]
83 }
84 }
85 ],
86 "directives": []
87 }
88 }