Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":34}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":34}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "FunctionDeclaration",
12 "start":0,"end":34,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":34}},
13 "id": {
14 "type": "Identifier",
15 "start":9,"end":10,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":10,"index":10},"identifierName":"x"},
16 "name": "x"
17 },
18 "generator": false,
19 "async": false,
20 "params": [],
21 "body": {
22 "type": "BlockStatement",
23 "start":13,"end":34,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":4,"column":1,"index":34}},
24 "body": [
25 {
26 "type": "VariableDeclaration",
27 "start":17,"end":22,"loc":{"start":{"line":2,"column":2,"index":17},"end":{"line":2,"column":7,"index":22}},
28 "declarations": [
29 {
30 "type": "VariableDeclarator",
31 "start":21,"end":22,"loc":{"start":{"line":2,"column":6,"index":21},"end":{"line":2,"column":7,"index":22}},
32 "id": {
33 "type": "Identifier",
34 "start":21,"end":22,"loc":{"start":{"line":2,"column":6,"index":21},"end":{"line":2,"column":7,"index":22},"identifierName":"x"},
35 "name": "x"
36 },
37 "init": null
38 }
39 ],
40 "kind": "let"
41 },
42 {
43 "type": "ExpressionStatement",
44 "start":25,"end":32,"loc":{"start":{"line":3,"column":2,"index":25},"end":{"line":3,"column":9,"index":32}},
45 "expression": {
46 "type": "JSXElement",
47 "start":25,"end":32,"loc":{"start":{"line":3,"column":2,"index":25},"end":{"line":3,"column":9,"index":32}},
48 "openingElement": {
49 "type": "JSXOpeningElement",
50 "start":25,"end":32,"loc":{"start":{"line":3,"column":2,"index":25},"end":{"line":3,"column":9,"index":32}},
51 "name": {
52 "type": "JSXIdentifier",
53 "start":26,"end":29,"loc":{"start":{"line":3,"column":3,"index":26},"end":{"line":3,"column":6,"index":29}},
54 "name": "div"
55 },
56 "attributes": [],
57 "selfClosing": true
58 },
59 "closingElement": null,
60 "children": []
61 }
62 }
63 ],
64 "directives": []
65 }
66 }
67 ],
68 "directives": []
69 }
70 }