Debian Codegraph @

packages/babel-parser/test/fixtures/comments/basic/class-method-static-generator/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":110,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":110,"index":110}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":110,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":110,"index":110}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "ExpressionStatement",
12 "start":0,"end":110,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":110,"index":110}},
13 "expression": {
14 "type": "ClassExpression",
15 "start":1,"end":99,"loc":{"start":{"line":1,"column":1,"index":1},"end":{"line":1,"column":99,"index":99}},
16 "id": null,
17 "superClass": null,
18 "body": {
19 "type": "ClassBody",
20 "start":15,"end":99,"loc":{"start":{"line":1,"column":15,"index":15},"end":{"line":1,"column":99,"index":99}},
21 "body": [
22 {
23 "type": "ClassMethod",
24 "start":25,"end":89,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":89,"index":89}},
25 "static": true,
26 "kind": "method",
27 "key": {
28 "type": "Identifier",
29 "start":50,"end":51,"loc":{"start":{"line":1,"column":50,"index":50},"end":{"line":1,"column":51,"index":51},"identifierName":"f"},
30 "name": "f",
31 "trailingComments": [
32 {
33 "type": "CommentBlock",
34 "value": " 5 ",
35 "start":52,"end":59,"loc":{"start":{"line":1,"column":52,"index":52},"end":{"line":1,"column":59,"index":59}}
36 }
37 ],
38 "leadingComments": [
39 {
40 "type": "CommentBlock",
41 "value": " 4 ",
42 "start":42,"end":49,"loc":{"start":{"line":1,"column":42,"index":42},"end":{"line":1,"column":49,"index":49}}
43 }
44 ]
45 },
46 "computed": false,
47 "id": null,
48 "generator": true,
49 "async": false,
50 "params": [],
51 "body": {
52 "type": "BlockStatement",
53 "start":78,"end":89,"loc":{"start":{"line":1,"column":78,"index":78},"end":{"line":1,"column":89,"index":89}},
54 "body": [],
55 "directives": [],
56 "innerComments": [
57 {
58 "type": "CommentBlock",
59 "value": " 8 ",
60 "start":80,"end":87,"loc":{"start":{"line":1,"column":80,"index":80},"end":{"line":1,"column":87,"index":87}}
61 }
62 ],
63 "leadingComments": [
64 {
65 "type": "CommentBlock",
66 "value": " 7 ",
67 "start":70,"end":77,"loc":{"start":{"line":1,"column":70,"index":70},"end":{"line":1,"column":77,"index":77}}
68 }
69 ]
70 },
71 "innerComments": [
72 {
73 "type": "CommentBlock",
74 "value": " 3 ",
75 "start":32,"end":39,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":39,"index":39}}
76 },
77 {
78 "type": "CommentBlock",
79 "value": " 6 ",
80 "start":61,"end":68,"loc":{"start":{"line":1,"column":61,"index":61},"end":{"line":1,"column":68,"index":68}}
81 }
82 ],
83 "trailingComments": [
84 {
85 "type": "CommentBlock",
86 "value": " 9 ",
87 "start":90,"end":97,"loc":{"start":{"line":1,"column":90,"index":90},"end":{"line":1,"column":97,"index":97}}
88 }
89 ],
90 "leadingComments": [
91 {
92 "type": "CommentBlock",
93 "value": " 2 ",
94 "start":17,"end":24,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":24,"index":24}}
95 }
96 ]
97 }
98 ],
99 "leadingComments": [
100 {
101 "type": "CommentBlock",
102 "value": " 1 ",
103 "start":7,"end":14,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":14,"index":14}}
104 }
105 ]
106 },
107 "extra": {
108 "parenthesized": true,
109 "parenStart": 0
110 },
111 "trailingComments": [
112 {
113 "type": "CommentBlock",
114 "value": " 10 ",
115 "start":100,"end":108,"loc":{"start":{"line":1,"column":100,"index":100},"end":{"line":1,"column":108,"index":108}}
116 }
117 ]
118 }
119 }
120 ],
121 "directives": []
122 },
123 "comments": [
124 {
125 "type": "CommentBlock",
126 "value": " 1 ",
127 "start":7,"end":14,"loc":{"start":{"line":1,"column":7,"index":7},"end":{"line":1,"column":14,"index":14}}
128 },
129 {
130 "type": "CommentBlock",
131 "value": " 2 ",
132 "start":17,"end":24,"loc":{"start":{"line":1,"column":17,"index":17},"end":{"line":1,"column":24,"index":24}}
133 },
134 {
135 "type": "CommentBlock",
136 "value": " 3 ",
137 "start":32,"end":39,"loc":{"start":{"line":1,"column":32,"index":32},"end":{"line":1,"column":39,"index":39}}
138 },
139 {
140 "type": "CommentBlock",
141 "value": " 4 ",
142 "start":42,"end":49,"loc":{"start":{"line":1,"column":42,"index":42},"end":{"line":1,"column":49,"index":49}}
143 },
144 {
145 "type": "CommentBlock",
146 "value": " 5 ",
147 "start":52,"end":59,"loc":{"start":{"line":1,"column":52,"index":52},"end":{"line":1,"column":59,"index":59}}
148 },
149 {
150 "type": "CommentBlock",
151 "value": " 6 ",
152 "start":61,"end":68,"loc":{"start":{"line":1,"column":61,"index":61},"end":{"line":1,"column":68,"index":68}}
153 },
154 {
155 "type": "CommentBlock",
156 "value": " 7 ",
157 "start":70,"end":77,"loc":{"start":{"line":1,"column":70,"index":70},"end":{"line":1,"column":77,"index":77}}
158 },
159 {
160 "type": "CommentBlock",
161 "value": " 8 ",
162 "start":80,"end":87,"loc":{"start":{"line":1,"column":80,"index":80},"end":{"line":1,"column":87,"index":87}}
163 },
164 {
165 "type": "CommentBlock",
166 "value": " 9 ",
167 "start":90,"end":97,"loc":{"start":{"line":1,"column":90,"index":90},"end":{"line":1,"column":97,"index":97}}
168 },
169 {
170 "type": "CommentBlock",
171 "value": " 10 ",
172 "start":100,"end":108,"loc":{"start":{"line":1,"column":100,"index":100},"end":{"line":1,"column":108,"index":108}}
173 }
174 ]
175 }