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

Unified Diff: pkg/compiler/lib/src/inferrer/inferrer_visitor.dart

Issue 1083063002: Deprecate visitAssertSend and visitTypePrefixSend (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
diff --git a/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart b/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
index fe4bfc596b75fd320c67a86b5d8b5c1e43750950..a4dd21ad6ee63f88aad0fd13ea4d33641325d7e1 100644
--- a/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
+++ b/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
@@ -723,15 +723,17 @@ abstract class InferrerVisitor
T visitFunctionExpression(FunctionExpression node);
- T visitAssertSend(Send node) {
+ @override
+ T visitAssert(Send node, Node expression, _) {
if (!compiler.enableUserAssertions) {
return types.nullType;
}
- // TODO(johnniwinther): Don't handle assert like a regular static call since
- // it break the selector name check.
- return visitStaticSend(node);
+ return handleAssert(node, expression);
}
+ /// Handle an enabled assertion of [expression].
+ T handleAssert(Send node, Node expression);
+
T visitNode(Node node) {
return node.visitChildren(this);
}

Powered by Google App Engine
This is Rietveld 408576698