Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: tests/compiler/dart2js/semantic_visitor_test_decl_visitor.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart2js.semantics_visitor_test; 5 part of dart2js.semantics_visitor_test;
6 6
7 class SemanticDeclarationTestVisitor extends SemanticTestVisitor { 7 class SemanticDeclarationTestVisitor extends SemanticTestVisitor {
8
9 SemanticDeclarationTestVisitor(TreeElements elements) : super(elements); 8 SemanticDeclarationTestVisitor(TreeElements elements) : super(elements);
10 9
11 @override 10 @override
12 errorUnresolvedSuperConstructorInvoke( 11 errorUnresolvedSuperConstructorInvoke(
13 Send node, 12 Send node, Element element, NodeList arguments, Selector selector, arg) {
14 Element element,
15 NodeList arguments,
16 Selector selector,
17 arg) {
18 // TODO: implement errorUnresolvedSuperConstructorInvoke 13 // TODO: implement errorUnresolvedSuperConstructorInvoke
19 } 14 }
20 15
21 @override 16 @override
22 errorUnresolvedThisConstructorInvoke( 17 errorUnresolvedThisConstructorInvoke(
23 Send node, 18 Send node, Element element, NodeList arguments, Selector selector, arg) {
24 Element element,
25 NodeList arguments,
26 Selector selector,
27 arg) {
28 // TODO: implement errorUnresolvedThisConstructorInvoke 19 // TODO: implement errorUnresolvedThisConstructorInvoke
29 } 20 }
30 21
31 @override 22 @override
32 visitAbstractMethodDeclaration( 23 visitAbstractMethodDeclaration(
33 FunctionExpression node, 24 FunctionExpression node, MethodElement method, NodeList parameters, arg) {
34 MethodElement method,
35 NodeList parameters,
36 arg) {
37 visits.add(new Visit(VisitKind.VISIT_ABSTRACT_METHOD_DECL, 25 visits.add(new Visit(VisitKind.VISIT_ABSTRACT_METHOD_DECL,
38 element: method, parameters: parameters)); 26 element: method, parameters: parameters));
39 applyParameters(parameters, arg); 27 applyParameters(parameters, arg);
40 } 28 }
41 29
42 @override 30 @override
43 visitClosureDeclaration( 31 visitClosureDeclaration(FunctionExpression node,
44 FunctionExpression node, 32 LocalFunctionElement function, NodeList parameters, Node body, arg) {
45 LocalFunctionElement function,
46 NodeList parameters,
47 Node body,
48 arg) {
49 visits.add(new Visit(VisitKind.VISIT_CLOSURE_DECL, 33 visits.add(new Visit(VisitKind.VISIT_CLOSURE_DECL,
50 element: function, parameters: parameters, body: body)); 34 element: function, parameters: parameters, body: body));
51 applyParameters(parameters, arg); 35 applyParameters(parameters, arg);
52 apply(body, arg); 36 apply(body, arg);
53 } 37 }
54 38
55 @override 39 @override
56 visitFactoryConstructorDeclaration( 40 visitFactoryConstructorDeclaration(FunctionExpression node,
57 FunctionExpression node, 41 ConstructorElement constructor, NodeList parameters, Node body, arg) {
58 ConstructorElement constructor,
59 NodeList parameters,
60 Node body,
61 arg) {
62 visits.add(new Visit(VisitKind.VISIT_FACTORY_CONSTRUCTOR_DECL, 42 visits.add(new Visit(VisitKind.VISIT_FACTORY_CONSTRUCTOR_DECL,
63 element: constructor, parameters: parameters, body: body)); 43 element: constructor, parameters: parameters, body: body));
64 applyParameters(parameters, arg); 44 applyParameters(parameters, arg);
65 apply(body, arg); 45 apply(body, arg);
66 } 46 }
67 47
68 @override 48 @override
69 visitFieldInitializer( 49 visitFieldInitializer(
70 SendSet node, 50 SendSet node, FieldElement field, Node initializer, arg) {
71 FieldElement field,
72 Node initializer,
73 arg) {
74 visits.add(new Visit(VisitKind.VISIT_FIELD_INITIALIZER, 51 visits.add(new Visit(VisitKind.VISIT_FIELD_INITIALIZER,
75 element: field, rhs: initializer)); 52 element: field, rhs: initializer));
76 apply(initializer, arg); 53 apply(initializer, arg);
77 } 54 }
78 55
79 @override 56 @override
80 visitGenerativeConstructorDeclaration( 57 visitGenerativeConstructorDeclaration(
81 FunctionExpression node, 58 FunctionExpression node,
82 ConstructorElement constructor, 59 ConstructorElement constructor,
83 NodeList parameters, 60 NodeList parameters,
84 NodeList initializers, 61 NodeList initializers,
85 Node body, 62 Node body,
86 arg) { 63 arg) {
87 visits.add(new Visit(VisitKind.VISIT_GENERATIVE_CONSTRUCTOR_DECL, 64 visits.add(new Visit(VisitKind.VISIT_GENERATIVE_CONSTRUCTOR_DECL,
88 element: constructor, parameters: parameters, body: body)); 65 element: constructor, parameters: parameters, body: body));
89 applyParameters(parameters, arg); 66 applyParameters(parameters, arg);
90 applyInitializers(node, arg); 67 applyInitializers(node, arg);
91 apply(body, arg); 68 apply(body, arg);
92 } 69 }
93 70
94 @override 71 @override
95 visitInstanceMethodDeclaration( 72 visitInstanceMethodDeclaration(FunctionExpression node, MethodElement method,
96 FunctionExpression node, 73 NodeList parameters, Node body, arg) {
97 MethodElement method,
98 NodeList parameters,
99 Node body,
100 arg) {
101 visits.add(new Visit(VisitKind.VISIT_INSTANCE_METHOD_DECL, 74 visits.add(new Visit(VisitKind.VISIT_INSTANCE_METHOD_DECL,
102 element: method, parameters: parameters, body: body)); 75 element: method, parameters: parameters, body: body));
103 applyParameters(parameters, arg); 76 applyParameters(parameters, arg);
104 apply(body, arg); 77 apply(body, arg);
105 } 78 }
106 79
107 @override 80 @override
108 visitLocalFunctionDeclaration( 81 visitLocalFunctionDeclaration(FunctionExpression node,
109 FunctionExpression node, 82 LocalFunctionElement function, NodeList parameters, Node body, arg) {
110 LocalFunctionElement function,
111 NodeList parameters,
112 Node body,
113 arg) {
114 visits.add(new Visit(VisitKind.VISIT_LOCAL_FUNCTION_DECL, 83 visits.add(new Visit(VisitKind.VISIT_LOCAL_FUNCTION_DECL,
115 element: function, parameters: parameters, body: body)); 84 element: function, parameters: parameters, body: body));
116 applyParameters(parameters, arg); 85 applyParameters(parameters, arg);
117 apply(body, arg); 86 apply(body, arg);
118 } 87 }
119 88
120 @override 89 @override
121 visitRedirectingFactoryConstructorDeclaration( 90 visitRedirectingFactoryConstructorDeclaration(
122 FunctionExpression node, 91 FunctionExpression node,
123 ConstructorElement constructor, 92 ConstructorElement constructor,
124 NodeList parameters, 93 NodeList parameters,
125 InterfaceType redirectionType, 94 InterfaceType redirectionType,
126 ConstructorElement redirectionTarget, 95 ConstructorElement redirectionTarget,
127 arg) { 96 arg) {
128 visits.add(new Visit( 97 visits.add(new Visit(VisitKind.VISIT_REDIRECTING_FACTORY_CONSTRUCTOR_DECL,
129 VisitKind.VISIT_REDIRECTING_FACTORY_CONSTRUCTOR_DECL,
130 element: constructor, 98 element: constructor,
131 parameters: parameters, 99 parameters: parameters,
132 target: redirectionTarget, 100 target: redirectionTarget,
133 type: redirectionType)); 101 type: redirectionType));
134 applyParameters(parameters, arg); 102 applyParameters(parameters, arg);
135 } 103 }
136 104
137 @override 105 @override
138 visitRedirectingGenerativeConstructorDeclaration( 106 visitRedirectingGenerativeConstructorDeclaration(
139 FunctionExpression node, 107 FunctionExpression node,
140 ConstructorElement constructor, 108 ConstructorElement constructor,
141 NodeList parameters, 109 NodeList parameters,
142 NodeList initializers, 110 NodeList initializers,
143 arg) { 111 arg) {
144 visits.add(new Visit( 112 visits.add(new Visit(
145 VisitKind.VISIT_REDIRECTING_GENERATIVE_CONSTRUCTOR_DECL, 113 VisitKind.VISIT_REDIRECTING_GENERATIVE_CONSTRUCTOR_DECL,
146 element: constructor, 114 element: constructor,
147 parameters: parameters, 115 parameters: parameters,
148 initializers: initializers)); 116 initializers: initializers));
149 applyParameters(parameters, arg); 117 applyParameters(parameters, arg);
150 applyInitializers(node, arg); 118 applyInitializers(node, arg);
151 } 119 }
152 120
153 @override 121 @override
154 visitStaticFunctionDeclaration( 122 visitStaticFunctionDeclaration(FunctionExpression node,
155 FunctionExpression node, 123 MethodElement function, NodeList parameters, Node body, arg) {
156 MethodElement function,
157 NodeList parameters,
158 Node body,
159 arg) {
160 visits.add(new Visit(VisitKind.VISIT_STATIC_FUNCTION_DECL, 124 visits.add(new Visit(VisitKind.VISIT_STATIC_FUNCTION_DECL,
161 element: function, parameters: parameters, body: body)); 125 element: function, parameters: parameters, body: body));
162 applyParameters(parameters, arg); 126 applyParameters(parameters, arg);
163 apply(body, arg); 127 apply(body, arg);
164 } 128 }
165 129
166 @override 130 @override
167 visitSuperConstructorInvoke( 131 visitSuperConstructorInvoke(
168 Send node, 132 Send node,
169 ConstructorElement superConstructor, 133 ConstructorElement superConstructor,
170 InterfaceType type, 134 InterfaceType type,
171 NodeList arguments, 135 NodeList arguments,
172 CallStructure callStructure, 136 CallStructure callStructure,
173 arg) { 137 arg) {
174 visits.add(new Visit(VisitKind.VISIT_SUPER_CONSTRUCTOR_INVOKE, 138 visits.add(new Visit(VisitKind.VISIT_SUPER_CONSTRUCTOR_INVOKE,
175 element: superConstructor, type: type, 139 element: superConstructor,
176 arguments: arguments, selector: callStructure)); 140 type: type,
141 arguments: arguments,
142 selector: callStructure));
177 super.visitSuperConstructorInvoke( 143 super.visitSuperConstructorInvoke(
178 node, superConstructor, type, arguments, callStructure, arg); 144 node, superConstructor, type, arguments, callStructure, arg);
179 } 145 }
180 146
181 @override 147 @override
182 visitImplicitSuperConstructorInvoke( 148 visitImplicitSuperConstructorInvoke(FunctionExpression node,
183 FunctionExpression node, 149 ConstructorElement superConstructor, InterfaceType type, arg) {
184 ConstructorElement superConstructor,
185 InterfaceType type,
186 arg) {
187 visits.add(new Visit(VisitKind.VISIT_IMPLICIT_SUPER_CONSTRUCTOR_INVOKE, 150 visits.add(new Visit(VisitKind.VISIT_IMPLICIT_SUPER_CONSTRUCTOR_INVOKE,
188 element: superConstructor, type: type)); 151 element: superConstructor, type: type));
189 super.visitImplicitSuperConstructorInvoke( 152 super
190 node, superConstructor, type, arg); 153 .visitImplicitSuperConstructorInvoke(node, superConstructor, type, arg);
191 } 154 }
192 155
193 @override 156 @override
194 visitThisConstructorInvoke( 157 visitThisConstructorInvoke(Send node, ConstructorElement thisConstructor,
195 Send node, 158 NodeList arguments, CallStructure callStructure, arg) {
196 ConstructorElement thisConstructor,
197 NodeList arguments,
198 CallStructure callStructure,
199 arg) {
200 visits.add(new Visit(VisitKind.VISIT_THIS_CONSTRUCTOR_INVOKE, 159 visits.add(new Visit(VisitKind.VISIT_THIS_CONSTRUCTOR_INVOKE,
201 element: thisConstructor, 160 element: thisConstructor,
202 arguments: arguments, selector: callStructure)); 161 arguments: arguments,
162 selector: callStructure));
203 super.visitThisConstructorInvoke( 163 super.visitThisConstructorInvoke(
204 node, thisConstructor, arguments, callStructure, arg); 164 node, thisConstructor, arguments, callStructure, arg);
205 } 165 }
206 166
207 @override 167 @override
208 visitTopLevelFunctionDeclaration( 168 visitTopLevelFunctionDeclaration(FunctionExpression node,
209 FunctionExpression node, 169 MethodElement function, NodeList parameters, Node body, arg) {
210 MethodElement function,
211 NodeList parameters,
212 Node body,
213 arg) {
214 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_FUNCTION_DECL, 170 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_FUNCTION_DECL,
215 element: function, parameters: parameters, body: body)); 171 element: function, parameters: parameters, body: body));
216 applyParameters(parameters, arg); 172 applyParameters(parameters, arg);
217 apply(body, arg); 173 apply(body, arg);
218 } 174 }
219 175
220 @override 176 @override
221 errorUnresolvedFieldInitializer( 177 errorUnresolvedFieldInitializer(
222 SendSet node, 178 SendSet node, Element element, Node initializer, arg) {
223 Element element,
224 Node initializer,
225 arg) {
226 // TODO: implement errorUnresolvedFieldInitializer 179 // TODO: implement errorUnresolvedFieldInitializer
227 } 180 }
228 181
229 @override 182 @override
230 visitOptionalParameterDeclaration( 183 visitOptionalParameterDeclaration(
231 VariableDefinitions node, 184 VariableDefinitions node,
232 Node definition, 185 Node definition,
233 ParameterElement parameter, 186 ParameterElement parameter,
234 ConstantExpression defaultValue, 187 ConstantExpression defaultValue,
235 int index, 188 int index,
236 arg) { 189 arg) {
237 visits.add(new Visit(VisitKind.VISIT_OPTIONAL_PARAMETER_DECL, 190 visits.add(new Visit(VisitKind.VISIT_OPTIONAL_PARAMETER_DECL,
238 element: parameter, 191 element: parameter,
239 constant: defaultValue != null ? defaultValue.toDartText() : null, 192 constant: defaultValue != null ? defaultValue.toDartText() : null,
240 index: index)); 193 index: index));
241 } 194 }
242 195
243 @override 196 @override
244 visitParameterDeclaration( 197 visitParameterDeclaration(VariableDefinitions node, Node definition,
245 VariableDefinitions node, 198 ParameterElement parameter, int index, arg) {
246 Node definition,
247 ParameterElement parameter,
248 int index,
249 arg) {
250 visits.add(new Visit(VisitKind.VISIT_REQUIRED_PARAMETER_DECL, 199 visits.add(new Visit(VisitKind.VISIT_REQUIRED_PARAMETER_DECL,
251 element: parameter, index: index)); 200 element: parameter, index: index));
252 } 201 }
253 202
254 @override 203 @override
255 visitInitializingFormalDeclaration( 204 visitInitializingFormalDeclaration(VariableDefinitions node, Node definition,
256 VariableDefinitions node, 205 InitializingFormalElement initializingFormal, int index, arg) {
257 Node definition,
258 InitializingFormalElement initializingFormal,
259 int index,
260 arg) {
261 visits.add(new Visit(VisitKind.VISIT_REQUIRED_INITIALIZING_FORMAL_DECL, 206 visits.add(new Visit(VisitKind.VISIT_REQUIRED_INITIALIZING_FORMAL_DECL,
262 element: initializingFormal, index: index)); 207 element: initializingFormal, index: index));
263 } 208 }
264 209
265 @override 210 @override
266 visitLocalVariableDeclaration( 211 visitLocalVariableDeclaration(VariableDefinitions node, Node definition,
267 VariableDefinitions node, 212 LocalVariableElement variable, Node initializer, arg) {
268 Node definition,
269 LocalVariableElement variable,
270 Node initializer,
271 arg) {
272 visits.add(new Visit(VisitKind.VISIT_LOCAL_VARIABLE_DECL, 213 visits.add(new Visit(VisitKind.VISIT_LOCAL_VARIABLE_DECL,
273 element: variable, rhs: initializer)); 214 element: variable, rhs: initializer));
274 if (initializer != null) { 215 if (initializer != null) {
275 apply(initializer, arg); 216 apply(initializer, arg);
276 } 217 }
277 } 218 }
278 219
279 @override 220 @override
280 visitLocalConstantDeclaration( 221 visitLocalConstantDeclaration(VariableDefinitions node, Node definition,
281 VariableDefinitions node, 222 LocalVariableElement variable, ConstantExpression constant, arg) {
282 Node definition,
283 LocalVariableElement variable,
284 ConstantExpression constant,
285 arg) {
286 visits.add(new Visit(VisitKind.VISIT_LOCAL_CONSTANT_DECL, 223 visits.add(new Visit(VisitKind.VISIT_LOCAL_CONSTANT_DECL,
287 element: variable, constant: constant.toDartText())); 224 element: variable, constant: constant.toDartText()));
288 } 225 }
289 226
290 @override 227 @override
291 visitNamedInitializingFormalDeclaration( 228 visitNamedInitializingFormalDeclaration(
292 VariableDefinitions node, 229 VariableDefinitions node,
293 Node definition, 230 Node definition,
294 InitializingFormalElement initializingFormal, 231 InitializingFormalElement initializingFormal,
295 ConstantExpression defaultValue, 232 ConstantExpression defaultValue,
296 arg) { 233 arg) {
297 visits.add(new Visit(VisitKind.VISIT_NAMED_INITIALIZING_FORMAL_DECL, 234 visits.add(new Visit(VisitKind.VISIT_NAMED_INITIALIZING_FORMAL_DECL,
298 element: initializingFormal, 235 element: initializingFormal,
299 constant: defaultValue != null ? defaultValue.toDartText() : null)); 236 constant: defaultValue != null ? defaultValue.toDartText() : null));
300 } 237 }
301 238
302 @override 239 @override
303 visitNamedParameterDeclaration( 240 visitNamedParameterDeclaration(VariableDefinitions node, Node definition,
304 VariableDefinitions node, 241 ParameterElement parameter, ConstantExpression defaultValue, arg) {
305 Node definition,
306 ParameterElement parameter,
307 ConstantExpression defaultValue,
308 arg) {
309 visits.add(new Visit(VisitKind.VISIT_NAMED_PARAMETER_DECL, 242 visits.add(new Visit(VisitKind.VISIT_NAMED_PARAMETER_DECL,
310 element: parameter, 243 element: parameter,
311 constant: defaultValue != null ? defaultValue.toDartText() : null)); 244 constant: defaultValue != null ? defaultValue.toDartText() : null));
312 } 245 }
313 246
314 @override 247 @override
315 visitOptionalInitializingFormalDeclaration( 248 visitOptionalInitializingFormalDeclaration(
316 VariableDefinitions node, 249 VariableDefinitions node,
317 Node definition, 250 Node definition,
318 InitializingFormalElement initializingFormal, 251 InitializingFormalElement initializingFormal,
319 ConstantExpression defaultValue, 252 ConstantExpression defaultValue,
320 int index, 253 int index,
321 arg) { 254 arg) {
322 visits.add(new Visit(VisitKind.VISIT_OPTIONAL_INITIALIZING_FORMAL_DECL, 255 visits.add(new Visit(VisitKind.VISIT_OPTIONAL_INITIALIZING_FORMAL_DECL,
323 element: initializingFormal, 256 element: initializingFormal,
324 constant: defaultValue != null ? defaultValue.toDartText() : null, 257 constant: defaultValue != null ? defaultValue.toDartText() : null,
325 index: index)); 258 index: index));
326 } 259 }
327 260
328 @override 261 @override
329 visitInstanceFieldDeclaration( 262 visitInstanceFieldDeclaration(VariableDefinitions node, Node definition,
330 VariableDefinitions node, 263 FieldElement field, Node initializer, arg) {
331 Node definition,
332 FieldElement field,
333 Node initializer,
334 arg) {
335 visits.add(new Visit(VisitKind.VISIT_INSTANCE_FIELD_DECL, 264 visits.add(new Visit(VisitKind.VISIT_INSTANCE_FIELD_DECL,
336 element: field, rhs: initializer)); 265 element: field, rhs: initializer));
337 if (initializer != null) { 266 if (initializer != null) {
338 apply(initializer, arg); 267 apply(initializer, arg);
339 } 268 }
340 } 269 }
341 270
342 @override 271 @override
343 visitStaticConstantDeclaration( 272 visitStaticConstantDeclaration(VariableDefinitions node, Node definition,
344 VariableDefinitions node, 273 FieldElement field, ConstantExpression constant, arg) {
345 Node definition,
346 FieldElement field,
347 ConstantExpression constant,
348 arg) {
349 visits.add(new Visit(VisitKind.VISIT_STATIC_CONSTANT_DECL, 274 visits.add(new Visit(VisitKind.VISIT_STATIC_CONSTANT_DECL,
350 element: field, constant: constant.toDartText())); 275 element: field, constant: constant.toDartText()));
351 } 276 }
352 277
353 @override 278 @override
354 visitStaticFieldDeclaration( 279 visitStaticFieldDeclaration(VariableDefinitions node, Node definition,
355 VariableDefinitions node, 280 FieldElement field, Node initializer, arg) {
356 Node definition,
357 FieldElement field,
358 Node initializer,
359 arg) {
360 visits.add(new Visit(VisitKind.VISIT_STATIC_FIELD_DECL, 281 visits.add(new Visit(VisitKind.VISIT_STATIC_FIELD_DECL,
361 element: field, rhs: initializer)); 282 element: field, rhs: initializer));
362 if (initializer != null) { 283 if (initializer != null) {
363 apply(initializer, arg); 284 apply(initializer, arg);
364 } 285 }
365 } 286 }
366 287
367 @override 288 @override
368 visitTopLevelConstantDeclaration( 289 visitTopLevelConstantDeclaration(VariableDefinitions node, Node definition,
369 VariableDefinitions node, 290 FieldElement field, ConstantExpression constant, arg) {
370 Node definition,
371 FieldElement field,
372 ConstantExpression constant,
373 arg) {
374 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_CONSTANT_DECL, 291 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_CONSTANT_DECL,
375 element: field, constant: constant.toDartText())); 292 element: field, constant: constant.toDartText()));
376 } 293 }
377 294
378 @override 295 @override
379 visitTopLevelFieldDeclaration( 296 visitTopLevelFieldDeclaration(VariableDefinitions node, Node definition,
380 VariableDefinitions node, 297 FieldElement field, Node initializer, arg) {
381 Node definition,
382 FieldElement field,
383 Node initializer,
384 arg) {
385 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_FIELD_DECL, 298 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_FIELD_DECL,
386 element: field, rhs: initializer)); 299 element: field, rhs: initializer));
387 if (initializer != null) { 300 if (initializer != null) {
388 apply(initializer, arg); 301 apply(initializer, arg);
389 } 302 }
390 } 303 }
391 304
392 @override 305 @override
393 visitAbstractGetterDeclaration( 306 visitAbstractGetterDeclaration(
394 FunctionExpression node, 307 FunctionExpression node, MethodElement getter, arg) {
395 MethodElement getter, 308 visits
396 arg) { 309 .add(new Visit(VisitKind.VISIT_ABSTRACT_GETTER_DECL, element: getter));
397 visits.add(new Visit(VisitKind.VISIT_ABSTRACT_GETTER_DECL,
398 element: getter));
399 } 310 }
400 311
401 @override 312 @override
402 visitAbstractSetterDeclaration( 313 visitAbstractSetterDeclaration(
403 FunctionExpression node, 314 FunctionExpression node, MethodElement setter, NodeList parameters, arg) {
404 MethodElement setter,
405 NodeList parameters,
406 arg) {
407 visits.add(new Visit(VisitKind.VISIT_ABSTRACT_SETTER_DECL, 315 visits.add(new Visit(VisitKind.VISIT_ABSTRACT_SETTER_DECL,
408 element: setter, parameters: parameters)); 316 element: setter, parameters: parameters));
409 applyParameters(parameters, arg); 317 applyParameters(parameters, arg);
410 } 318 }
411 319
412 @override 320 @override
413 visitInstanceGetterDeclaration( 321 visitInstanceGetterDeclaration(
414 FunctionExpression node, 322 FunctionExpression node, MethodElement getter, Node body, arg) {
415 MethodElement getter,
416 Node body,
417 arg) {
418 visits.add(new Visit(VisitKind.VISIT_INSTANCE_GETTER_DECL, 323 visits.add(new Visit(VisitKind.VISIT_INSTANCE_GETTER_DECL,
419 element: getter, body: body)); 324 element: getter, body: body));
420 apply(body, arg); 325 apply(body, arg);
421 } 326 }
422 327
423 @override 328 @override
424 visitInstanceSetterDeclaration( 329 visitInstanceSetterDeclaration(FunctionExpression node, MethodElement setter,
425 FunctionExpression node, 330 NodeList parameters, Node body, arg) {
426 MethodElement setter,
427 NodeList parameters,
428 Node body,
429 arg) {
430 visits.add(new Visit(VisitKind.VISIT_INSTANCE_SETTER_DECL, 331 visits.add(new Visit(VisitKind.VISIT_INSTANCE_SETTER_DECL,
431 element: setter, parameters: parameters, body: body)); 332 element: setter, parameters: parameters, body: body));
432 applyParameters(parameters, arg); 333 applyParameters(parameters, arg);
433 apply(body, arg); 334 apply(body, arg);
434 } 335 }
435 336
436 @override 337 @override
437 visitTopLevelGetterDeclaration( 338 visitTopLevelGetterDeclaration(
438 FunctionExpression node, 339 FunctionExpression node, MethodElement getter, Node body, arg) {
439 MethodElement getter,
440 Node body,
441 arg) {
442 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_GETTER_DECL, 340 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_GETTER_DECL,
443 element: getter, body: body)); 341 element: getter, body: body));
444 apply(body, arg); 342 apply(body, arg);
445 } 343 }
446 344
447 @override 345 @override
448 visitTopLevelSetterDeclaration( 346 visitTopLevelSetterDeclaration(FunctionExpression node, MethodElement setter,
449 FunctionExpression node, 347 NodeList parameters, Node body, arg) {
450 MethodElement setter,
451 NodeList parameters,
452 Node body,
453 arg) {
454 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_SETTER_DECL, 348 visits.add(new Visit(VisitKind.VISIT_TOP_LEVEL_SETTER_DECL,
455 element: setter, parameters: parameters, body: body)); 349 element: setter, parameters: parameters, body: body));
456 applyParameters(parameters, arg); 350 applyParameters(parameters, arg);
457 apply(body, arg); 351 apply(body, arg);
458 } 352 }
459 353
460 @override 354 @override
461 visitStaticGetterDeclaration( 355 visitStaticGetterDeclaration(
462 FunctionExpression node, 356 FunctionExpression node, MethodElement getter, Node body, arg) {
463 MethodElement getter,
464 Node body,
465 arg) {
466 visits.add(new Visit(VisitKind.VISIT_STATIC_GETTER_DECL, 357 visits.add(new Visit(VisitKind.VISIT_STATIC_GETTER_DECL,
467 element: getter, body: body)); 358 element: getter, body: body));
468 apply(body, arg); 359 apply(body, arg);
469 } 360 }
470 361
471 @override 362 @override
472 visitStaticSetterDeclaration( 363 visitStaticSetterDeclaration(FunctionExpression node, MethodElement setter,
473 FunctionExpression node, 364 NodeList parameters, Node body, arg) {
474 MethodElement setter,
475 NodeList parameters,
476 Node body,
477 arg) {
478 visits.add(new Visit(VisitKind.VISIT_STATIC_SETTER_DECL, 365 visits.add(new Visit(VisitKind.VISIT_STATIC_SETTER_DECL,
479 element: setter, parameters: parameters, body: body)); 366 element: setter, parameters: parameters, body: body));
480 applyParameters(parameters, arg); 367 applyParameters(parameters, arg);
481 apply(body, arg); 368 apply(body, arg);
482 } 369 }
483 } 370 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698