Index: lib/compiler/implementation/elements/elements.dart |
diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart |
index 778084f1ac497624543c7427eeb4448360e779c7..8870678023f50765eec73cd5e53a196241a5571e 100644 |
--- a/lib/compiler/implementation/elements/elements.dart |
+++ b/lib/compiler/implementation/elements/elements.dart |
@@ -1311,6 +1311,13 @@ class Elements { |
} |
static bool isStaticOrTopLevel(Element element) { |
+ // TODO(ager): This should not be necessary when patch support has |
+ // been reworked. |
+ if (element != null |
+ && element.modifiers != null |
+ && element.modifiers.isStatic()) { |
+ return true; |
+ } |
return (element != null) |
&& !element.isInstanceMember() |
&& !element.isPrefix() |