Debian Codegraph @

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

raw
1 {
2 "type": "File",
3 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":5,"index":36}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":5,"index":36}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":36,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":5,"index":36}},
13 "expression": {
14 "type": "FunctionExpression",
15 "start":1,"end":35,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":2,"column":4,"index":35}},
16 "id": null,
17 "generator": false,
18 "async": false,
19 "params": [],
20 "body": {
21 "type": "BlockStatement",
22 "start":11,"end":35,"loc":{"start":{"line":1,"column":11,"index":11},"end":{"line":2,"column":4,"index":35}},
23 "body": [
24 {
25 "type": "ReturnStatement",
26 "start":13,"end":19,"loc":{"start":{"line":1,"column":13,"index":13},"end":{"line":1,"column":19,"index":19}},
27 "argument": null,
28 "trailingComments": [
29 {
30 "type": "CommentLine",
31 "value": " Comment",
32 "start":20,"end":30,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":30,"index":30}}
33 }
34 ]
35 },
36 {
37 "type": "ExpressionStatement",
38 "start":31,"end":33,"loc":{"start":{"line":2,"column":0,"index":31},"end":{"line":2,"column":2,"index":33}},
39 "expression": {
40 "type": "Identifier",
41 "start":31,"end":32,"loc":{"start":{"line":2,"column":0,"index":31},"end":{"line":2,"column":1,"index":32},"identifierName":"x"},
42 "name": "x"
43 },
44 "leadingComments": [
45 {
46 "type": "CommentLine",
47 "value": " Comment",
48 "start":20,"end":30,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":30,"index":30}}
49 }
50 ]
51 }
52 ],
53 "directives": []
54 },
55 "extra": {
56 "parenthesized": true,
57 "parenStart": 0
58 }
59 }
60 }
61 ],
62 "directives": []
63 },
64 "comments": [
65 {
66 "type": "CommentLine",
67 "value": " Comment",
68 "start":20,"end":30,"loc":{"start":{"line":1,"column":20,"index":20},"end":{"line":1,"column":30,"index":30}}
69 }
70 ]
71 }