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

Side by Side Diff: pkg/compiler/lib/src/resolution/semantic_visitor_mixins.dart

Issue 2934333002: More dart2js strong mode cleanup. (Closed)
Patch Set: Created 3 years, 6 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; 5 part of dart2js.semantics_visitor;
6 6
7 /// Interface for bulk handling of a [Node] in a semantic visitor. 7 /// Interface for bulk handling of a [Node] in a semantic visitor.
8 abstract class BulkHandle<R, A> { 8 abstract class BulkHandle<R, A> {
9 /// Handle [node] either regardless of semantics or to report that [node] is 9 /// Handle [node] either regardless of semantics or to report that [node] is
10 /// unhandled. [message] contains a message template for the latter case: 10 /// unhandled. [message] contains a message template for the latter case:
(...skipping 2272 matching lines...) Expand 10 before | Expand all | Expand 10 after
2283 ResolutionInterfaceType type, 2283 ResolutionInterfaceType type,
2284 ConstructorElement effectiveTarget, 2284 ConstructorElement effectiveTarget,
2285 ResolutionInterfaceType effectiveTargetType, 2285 ResolutionInterfaceType effectiveTargetType,
2286 NodeList arguments, 2286 NodeList arguments,
2287 CallStructure callStructure, 2287 CallStructure callStructure,
2288 A arg) { 2288 A arg) {
2289 return bulkHandleNew(node, arg); 2289 return bulkHandleNew(node, arg);
2290 } 2290 }
2291 2291
2292 @override 2292 @override
2293 R visitUnresolvedClassConstructorInvoke(NewExpression node, Element element, 2293 R visitUnresolvedClassConstructorInvoke(
2294 ResolutionDartType type, NodeList arguments, Selector selector, A arg) { 2294 NewExpression node,
2295 ErroneousElement element,
2296 ResolutionDartType type,
2297 NodeList arguments,
2298 Selector selector,
2299 A arg) {
2295 return bulkHandleNew(node, arg); 2300 return bulkHandleNew(node, arg);
2296 } 2301 }
2297 2302
2298 @override 2303 @override
2299 R visitUnresolvedConstructorInvoke(NewExpression node, Element constructor, 2304 R visitUnresolvedConstructorInvoke(NewExpression node, Element constructor,
2300 ResolutionDartType type, NodeList arguments, Selector selector, A arg) { 2305 ResolutionDartType type, NodeList arguments, Selector selector, A arg) {
2301 return bulkHandleNew(node, arg); 2306 return bulkHandleNew(node, arg);
2302 } 2307 }
2303 2308
2304 @override 2309 @override
(...skipping 2134 matching lines...) Expand 10 before | Expand all | Expand 10 after
4439 NodeList arguments, 4444 NodeList arguments,
4440 CallStructure callStructure, 4445 CallStructure callStructure,
4441 A arg) { 4446 A arg) {
4442 apply(arguments, arg); 4447 apply(arguments, arg);
4443 return null; 4448 return null;
4444 } 4449 }
4445 4450
4446 @override 4451 @override
4447 R visitUnresolvedClassConstructorInvoke( 4452 R visitUnresolvedClassConstructorInvoke(
4448 NewExpression node, 4453 NewExpression node,
4449 Element constructor, 4454 ErroneousElement constructor,
4450 ResolutionDartType type, 4455 ResolutionDartType type,
4451 NodeList arguments, 4456 NodeList arguments,
4452 Selector selector, 4457 Selector selector,
4453 A arg) { 4458 A arg) {
4454 apply(arguments, arg); 4459 apply(arguments, arg);
4455 return null; 4460 return null;
4456 } 4461 }
4457 4462
4458 @override 4463 @override
4459 R visitUnresolvedConstructorInvoke(NewExpression node, Element constructor, 4464 R visitUnresolvedConstructorInvoke(NewExpression node, Element constructor,
(...skipping 3831 matching lines...) Expand 10 before | Expand all | Expand 10 after
8291 } 8296 }
8292 8297
8293 @override 8298 @override
8294 R visitUnresolvedConstructorInvoke(NewExpression node, Element constructor, 8299 R visitUnresolvedConstructorInvoke(NewExpression node, Element constructor,
8295 ResolutionDartType type, NodeList arguments, Selector selector, A arg) { 8300 ResolutionDartType type, NodeList arguments, Selector selector, A arg) {
8296 return handleConstructorInvoke( 8301 return handleConstructorInvoke(
8297 node, constructor, type, arguments, selector.callStructure, arg); 8302 node, constructor, type, arguments, selector.callStructure, arg);
8298 } 8303 }
8299 8304
8300 @override 8305 @override
8301 R visitUnresolvedClassConstructorInvoke(NewExpression node, Element element, 8306 R visitUnresolvedClassConstructorInvoke(
8302 ResolutionDartType type, NodeList arguments, Selector selector, A arg) { 8307 NewExpression node,
8308 ErroneousElement element,
8309 ResolutionDartType type,
8310 NodeList arguments,
8311 Selector selector,
8312 A arg) {
8303 return handleConstructorInvoke( 8313 return handleConstructorInvoke(
8304 node, element, type, arguments, selector.callStructure, arg); 8314 node, element, type, arguments, selector.callStructure, arg);
8305 } 8315 }
8306 8316
8307 @override 8317 @override
8308 R visitAbstractClassConstructorInvoke( 8318 R visitAbstractClassConstructorInvoke(
8309 NewExpression node, 8319 NewExpression node,
8310 ConstructorElement constructor, 8320 ConstructorElement constructor,
8311 ResolutionInterfaceType type, 8321 ResolutionInterfaceType type,
8312 NodeList arguments, 8322 NodeList arguments,
8313 CallStructure callStructure, 8323 CallStructure callStructure,
8314 A arg) { 8324 A arg) {
8315 return handleConstructorInvoke( 8325 return handleConstructorInvoke(
8316 node, constructor, type, arguments, callStructure, arg); 8326 node, constructor, type, arguments, callStructure, arg);
8317 } 8327 }
8318 8328
8319 @override 8329 @override
8320 R visitUnresolvedRedirectingFactoryConstructorInvoke( 8330 R visitUnresolvedRedirectingFactoryConstructorInvoke(
8321 NewExpression node, 8331 NewExpression node,
8322 ConstructorElement constructor, 8332 ConstructorElement constructor,
8323 ResolutionInterfaceType type, 8333 ResolutionInterfaceType type,
8324 NodeList arguments, 8334 NodeList arguments,
8325 CallStructure callStructure, 8335 CallStructure callStructure,
8326 A arg) { 8336 A arg) {
8327 return handleConstructorInvoke( 8337 return handleConstructorInvoke(
8328 node, constructor, type, arguments, callStructure, arg); 8338 node, constructor, type, arguments, callStructure, arg);
8329 } 8339 }
8330 } 8340 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698