Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":53,"index":53}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":53,"index":53}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":53,"index":53}},
13 "expression": {
14 "type": "JSXElement",
15 "start":0,"end":53,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":53,"index":53}},
16 "openingElement": {
17 "type": "JSXOpeningElement",
18 "start":0,"end":47,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":47,"index":47}},
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": "JSXAttribute",
45 "start":19,"end":35,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":35,"index":35}},
46 "name": {
47 "type": "JSXIdentifier",
48 "start":19,"end":23,"loc":{"start":{"line":1,"column":19,"index":19},"end":{"line":1,"column":23,"index":23}},
49 "name": "pre2"
50 },
51 "value": {
52 "type": "StringLiteral",
53 "start":24,"end":35,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":35,"index":35}},
54 "extra": {
55 "rawValue": "attribute",
56 "raw": "\"attribute\""
57 },
58 "value": "attribute"
59 }
60 },
61 {
62 "type": "JSXSpreadAttribute",
63 "start":36,"end":46,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":46,"index":46}},
64 "argument": {
65 "type": "Identifier",
66 "start":40,"end":45,"loc":{"start":{"line":1,"column":40,"index":40},"end":{"line":1,"column":45,"index":45},"identifierName":"props"},
67 "name": "props"
68 }
69 }
70 ],
71 "selfClosing": false
72 },
73 "closingElement": {
74 "type": "JSXClosingElement",
75 "start":47,"end":53,"loc":{"start":{"line":1,"column":47,"index":47},"end":{"line":1,"column":53,"index":53}},
76 "name": {
77 "type": "JSXIdentifier",
78 "start":49,"end":52,"loc":{"start":{"line":1,"column":49,"index":49},"end":{"line":1,"column":52,"index":52}},
79 "name": "div"
80 }
81 },
82 "children": []
83 }
84 }
85 ],
86 "directives": []
87 }
88 }