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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ClassTypeAlias.java

Issue 244183002: Add ClassDeclaration/ClassTypeAlias.isAbstract() and use them. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: forgotten class Created 6 years, 8 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/ast/ClassTypeAlias.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ClassTypeAlias.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ClassTypeAlias.java
index c286aece3461e84d4911a0e9256a49bcbd2f28d5..61340b1d5d9335a7470a468d8f4023cf71c78a5d 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ClassTypeAlias.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ClassTypeAlias.java
@@ -173,6 +173,15 @@ public class ClassTypeAlias extends TypeAlias {
}
/**
+ * Return {@code true} if this class is declared to be an abstract class.
+ *
+ * @return {@code true} if this class is declared to be an abstract class
+ */
+ public boolean isAbstract() {
+ return abstractKeyword != null;
+ }
+
+ /**
* Set the token for the 'abstract' keyword to the given token.
*
* @param abstractKeyword the token for the 'abstract' keyword

Powered by Google App Engine
This is Rietveld 408576698