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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/ClassElement.java

Issue 15409004: Update CONST_CONSTRUCTOR_WITH_NON_FINAL_FIELD to check also super/mixin types (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move hasNonFinalField() to ClassElement Created 7 years, 7 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 | editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/ClassElement.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/ClassElement.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/ClassElement.java
index c31dc198e46810eb7811623eff06add421fe6ad7..fb7c8614d9f1649c844e88649738c0c54e380cb8 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/ClassElement.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/ClassElement.java
@@ -114,6 +114,13 @@ public interface ClassElement extends Element {
public ConstructorElement getUnnamedConstructor();
/**
+ * Return {@code true} if this class or its superclass declares a non-final instance field.
+ *
+ * @return {@code true} if this class or its superclass declares a non-final instance field
+ */
+ public boolean hasNonFinalField();
+
+ /**
* Return {@code true} if this class has reference to super (so, for example, cannot be used as a
* mixin).
*
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698