Debian Codegraph @

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

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