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

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

Issue 2982783003: Use failedAt in more places (Closed)
Patch Set: Created 3 years, 5 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 5206 matching lines...) Expand 10 before | Expand all | Expand 10 after
5217 visitInitializers(constructor, arg); 5217 visitInitializers(constructor, arg);
5218 } 5218 }
5219 5219
5220 @override 5220 @override
5221 applyParameters(NodeList parameters, A arg) { 5221 applyParameters(NodeList parameters, A arg) {
5222 visitParameters(parameters, arg); 5222 visitParameters(parameters, arg);
5223 } 5223 }
5224 5224
5225 @override 5225 @override
5226 internalError(Spannable spannable, String message) { 5226 internalError(Spannable spannable, String message) {
5227 throw new SpannableAssertionFailure(spannable, message); 5227 failedAt(spannable, message);
5228 } 5228 }
5229 5229
5230 @override 5230 @override
5231 R visitNode(Node node) { 5231 R visitNode(Node node) {
5232 node.visitChildren(this); 5232 node.visitChildren(this);
5233 return null; 5233 return null;
5234 } 5234 }
5235 5235
5236 @override 5236 @override
5237 R visitTypeAnnotation(TypeAnnotation node) { 5237 R visitTypeAnnotation(TypeAnnotation node) {
(...skipping 3090 matching lines...) Expand 10 before | Expand all | Expand 10 after
8328 NewExpression node, 8328 NewExpression node,
8329 ConstructorElement constructor, 8329 ConstructorElement constructor,
8330 ResolutionInterfaceType type, 8330 ResolutionInterfaceType type,
8331 NodeList arguments, 8331 NodeList arguments,
8332 CallStructure callStructure, 8332 CallStructure callStructure,
8333 A arg) { 8333 A arg) {
8334 return handleConstructorInvoke( 8334 return handleConstructorInvoke(
8335 node, constructor, type, arguments, callStructure, arg); 8335 node, constructor, type, arguments, callStructure, arg);
8336 } 8336 }
8337 } 8337 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/resolution_strategy.dart ('k') | pkg/compiler/lib/src/resolution/send_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698