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

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

Issue 14698013: Report CompileTimeErrorCode.MIXIN_REFERENCES_SUPER (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ClassElementImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ClassElementImpl.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ClassElementImpl.java
index 3b590dbfb0e09f5ec3679cd8dc94057c92e3aae4..73b7c1257107901116d586b0d327d70cf7cda1c0 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ClassElementImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ClassElementImpl.java
@@ -287,6 +287,11 @@ public class ClassElementImpl extends ElementImpl implements ClassElement {
}
@Override
+ public boolean isReferencesSuper() {
+ return hasModifier(Modifier.REFERENCES_SUPER);
+ }
+
+ @Override
public boolean isTypedef() {
return hasModifier(Modifier.TYPEDEF);
}
@@ -445,6 +450,15 @@ public class ClassElementImpl extends ElementImpl implements ClassElement {
}
/**
+ * Set whether this class references 'super' to the given value.
+ *
+ * @param isReferencedSuper {@code true} references 'super'
+ */
+ public void setReferencesSuper(boolean isReferencedSuper) {
+ setModifier(Modifier.REFERENCES_SUPER, isReferencedSuper);
+ }
+
+ /**
* Set the superclass of the class to the given type.
*
* @param supertype the superclass of the class

Powered by Google App Engine
This is Rietveld 408576698