Index: pkg/compiler/lib/src/dart_backend/placeholder_collector.dart |
diff --git a/pkg/compiler/lib/src/dart_backend/placeholder_collector.dart b/pkg/compiler/lib/src/dart_backend/placeholder_collector.dart |
index b15e76a81dc0480c331c846a0f8a35a9e395090c..ed0c6bc9ee3ba4d8a396671d6987838b53536b0e 100644 |
--- a/pkg/compiler/lib/src/dart_backend/placeholder_collector.dart |
+++ b/pkg/compiler/lib/src/dart_backend/placeholder_collector.dart |
@@ -45,7 +45,9 @@ class SendVisitor extends Visitor { |
visitSend(Send node) { |
Element element = elements[node]; |
- if (elements.isTypeLiteral(node)) { |
+ if (elements.isAssert(node)) { |
+ return; |
+ } else if (elements.isTypeLiteral(node)) { |
DartType type = elements.getTypeLiteralType(node); |
if (!type.isDynamic) { |
if (type is TypeVariableType) { |
@@ -137,6 +139,7 @@ class SendVisitor extends Visitor { |
collector.currentElement, element, node); |
if (Elements.isUnresolved(element) |
+ || elements.isAssert(node) |
|| element.isDeferredLoaderGetter) { |
return; |
} |