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

Unified Diff: sdk/lib/_internal/compiler/implementation/elements/modelx.dart

Issue 12298029: Turn error into warning for non-static member access through the class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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: sdk/lib/_internal/compiler/implementation/elements/modelx.dart
diff --git a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
index 9715c62d71eb0037b12a59c8b471c28ab377f814..00bcbd2c85d1fb1bc2ae8656db828d8bd6708311 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
@@ -1015,6 +1015,10 @@ class AbstractFieldElementX extends ElementX implements AbstractFieldElement {
setter.modifiers.flags | Modifiers.FLAG_ABSTRACT);
}
}
+
+ bool isInstanceMember() {
+ return isMember() && !modifiers.isStatic();
+ }
}
// TODO(johnniwinther): [FunctionSignature] should be merged with

Powered by Google App Engine
This is Rietveld 408576698