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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/ClassElement.java

Issue 8728001: Support for 'abstract' modifier for class and spec recommended warnings, issue 375 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge. Warning for factory constructor of abstract class. Created 9 years 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: compiler/java/com/google/dart/compiler/resolver/ClassElement.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/ClassElement.java b/compiler/java/com/google/dart/compiler/resolver/ClassElement.java
index 1ddb122971014590b9a07e14fabbf53a8569bf54..82dd9debacec35e5f0b7ffe6296815cac8351d89 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ClassElement.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ClassElement.java
@@ -46,5 +46,11 @@ public interface ClassElement extends EnclosingElement {
boolean isObjectChild();
+ /**
+ * @return <code>true</code> if this class is abstract - has explicit "abstract" modifier or has
+ * abstract method. Note, that "abstract" is different from "has unimplemented members".
+ */
+ boolean isAbstract();
+
ConstructorElement lookupConstructor(String name);
}

Powered by Google App Engine
This is Rietveld 408576698