Debian Codegraph @

packages/babel-parser/test/fixtures/comments/regression/11469/output.json

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