Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":40,"index":40}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":40,"index":40}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":40,"index":40}},
13 "expression": {
14 "type": "JSXElement",
15 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":40,"index":40}},
16 "openingElement": {
17 "type": "JSXOpeningElement",
18 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":40,"index":40}},
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":10,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":10,"index":10}},
28 "name": {
29 "type": "JSXIdentifier",
30 "start":3,"end":4,"loc":{"start":{"line":1,"column":3,"index":3},"end":{"line":1,"column":4,"index":4}},
31 "name": "b"
32 },
33 "value": {
34 "type": "JSXExpressionContainer",
35 "start":5,"end":10,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":10,"index":10}},
36 "expression": {
37 "type": "StringLiteral",
38 "start":6,"end":9,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":9,"index":9}},
39 "extra": {
40 "rawValue": " ",
41 "raw": "\" \""
42 },
43 "value": " "
44 }
45 }
46 },
47 {
48 "type": "JSXAttribute",
49 "start":11,"end":16,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":16,"index":16}},
50 "name": {
51 "type": "JSXIdentifier",
52 "start":11,"end":12,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":1,"column":12,"index":12}},
53 "name": "c"
54 },
55 "value": {
56 "type": "StringLiteral",
57 "start":13,"end":16,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":16,"index":16}},
58 "extra": {
59 "rawValue": " ",
60 "raw": "\" \""
61 },
62 "value": " "
63 }
64 },
65 {
66 "type": "JSXAttribute",
67 "start":17,"end":26,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":26,"index":26}},
68 "name": {
69 "type": "JSXIdentifier",
70 "start":17,"end":18,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":18,"index":18}},
71 "name": "d"
72 },
73 "value": {
74 "type": "StringLiteral",
75 "start":19,"end":26,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":26,"index":26}},
76 "extra": {
77 "rawValue": "&",
78 "raw": "\"&\""
79 },
80 "value": "&"
81 }
82 },
83 {
84 "type": "JSXAttribute",
85 "start":27,"end":37,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":37,"index":37}},
86 "name": {
87 "type": "JSXIdentifier",
88 "start":27,"end":28,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":28,"index":28}},
89 "name": "e"
90 },
91 "value": {
92 "type": "StringLiteral",
93 "start":29,"end":37,"loc":{"start":{"line":1,"column":29,"index":29},"end":{"line":1,"column":37,"index":37}},
94 "extra": {
95 "rawValue": "&ampr;",
96 "raw": "\"&ampr;\""
97 },
98 "value": "&ampr;"
99 }
100 }
101 ],
102 "selfClosing": true
103 },
104 "closingElement": null,
105 "children": []
106 }
107 }
108 ],
109 "directives": []
110 }
111 }