Debian Codegraph @

packages/babel-parser/test/fixtures/core/uncategorised/64/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":11,"index":36}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":11,"index":36}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "IfStatement",
12 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":11,"index":36}},
13 "test": {
14 "type": "Identifier",
15 "start":4,"end":5,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":5,"index":5},"identifierName":"x"},
16 "name": "x"
17 },
18 "consequent": {
19 "type": "BlockStatement",
20 "start":7,"end":36,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":2,"column":11,"index":36}},
21 "body": [
22 {
23 "type": "ExpressionStatement",
24 "start":25,"end":34,"loc":{"start":{"line":2,"column":0,"index":25},"end":{"line":2,"column":9,"index":34}},
25 "expression": {
26 "type": "CallExpression",
27 "start":25,"end":33,"loc":{"start":{"line":2,"column":0,"index":25},"end":{"line":2,"column":8,"index":33}},
28 "callee": {
29 "type": "Identifier",
30 "start":25,"end":31,"loc":{"start":{"line":2,"column":0,"index":25},"end":{"line":2,"column":6,"index":31},"identifierName":"doThat"},
31 "name": "doThat"
32 },
33 "arguments": []
34 },
35 "leadingComments": [
36 {
37 "type": "CommentLine",
38 "value": " Some comment",
39 "start":9,"end":24,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":24,"index":24}}
40 }
41 ]
42 }
43 ],
44 "directives": []
45 },
46 "alternate": null
47 }
48 ],
49 "directives": []
50 },
51 "comments": [
52 {
53 "type": "CommentLine",
54 "value": " Some comment",
55 "start":9,"end":24,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":24,"index":24}}
56 }
57 ]
58 }