Index: lib/compiler/implementation/dart_backend/placeholder_collector.dart |
diff --git a/lib/compiler/implementation/dart_backend/placeholder_collector.dart b/lib/compiler/implementation/dart_backend/placeholder_collector.dart |
index 671477e849423085f2cf5a8cfb9e1d27137d89f5..a46bfb06245d493f4341927605fcde4e6a291c77 100644 |
--- a/lib/compiler/implementation/dart_backend/placeholder_collector.dart |
+++ b/lib/compiler/implementation/dart_backend/placeholder_collector.dart |
@@ -31,6 +31,8 @@ class DeclarationTypePlaceholder { |
class SendVisitor extends ResolvedVisitor { |
final PlaceholderCollector collector; |
+ get compiler => collector.compiler; |
+ |
SendVisitor(this.collector, TreeElements elements) : super(elements); |
visitOperatorSend(Send node) {} |
@@ -84,7 +86,7 @@ class SendVisitor extends ResolvedVisitor { |
visitStaticSend(Send node) { |
final element = elements[node]; |
- if (Elements.isUnresolved(element)) { |
+ if (Elements.isUnresolved(element) || element === compiler.assertMethod) { |
return; |
} |
if (element.isConstructor() || element.isFactoryConstructor()) { |