Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":32,"index":32}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":32,"index":32}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":32,"index":32}},
13 "expression": {
14 "type": "JSXElement",
15 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":32,"index":32}},
16 "openingElement": {
17 "type": "JSXOpeningElement",
18 "start":0,"end":32,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":32,"index":32}},
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 {
26 "type": "JSXAttribute",
27 "start":5,"end":18,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":18,"index":18}},
28 "name": {
29 "type": "JSXIdentifier",
30 "start":5,"end":8,"loc":{"start":{"line":1,"column":5,"index":5},"end":{"line":1,"column":8,"index":8}},
31 "name": "pre"
32 },
33 "value": {
34 "type": "StringLiteral",
35 "start":9,"end":18,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":18,"index":18}},
36 "extra": {
37 "rawValue": "leading",
38 "raw": "\"leading\""
39 },
40 "value": "leading"
41 }
42 },
43 {
44 "type": "JSXSpreadAttribute",
45 "start":19,"end":29,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":29,"index":29}},
46 "argument": {
47 "type": "Identifier",
48 "start":23,"end":28,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":28,"index":28},"identifierName":"props"},
49 "name": "props"
50 }
51 }
52 ],
53 "selfClosing": true
54 },
55 "closingElement": null,
56 "children": []
57 }
58 }
59 ],
60 "directives": []
61 }
62 }