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

Unified Diff: lib/compiler/implementation/elements/elements.dart

Issue 10836312: Add a couple of workarounds for issues caused by current dart2js patch (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 8 years, 4 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
« no previous file with comments | « no previous file | pkg/dartdoc/mirrors/dart2js_mirror.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « no previous file | pkg/dartdoc/mirrors/dart2js_mirror.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698