Index: lib/compiler/implementation/tree/nodes.dart |
diff --git a/lib/compiler/implementation/tree/nodes.dart b/lib/compiler/implementation/tree/nodes.dart |
index f3d37ec5e0467ee81f3b57eaafd24c0b0318e886..f55b4af71026a5ed615ff9dde1d96a3751a3c98c 100644 |
--- a/lib/compiler/implementation/tree/nodes.dart |
+++ b/lib/compiler/implementation/tree/nodes.dart |
@@ -1137,6 +1137,12 @@ class Modifiers extends Node { |
bool isFactory() => (flags & FLAG_FACTORY) != 0; |
bool isExternal() => (flags & FLAG_EXTERNAL) != 0; |
+ /** |
+ * Returns [:true:] iff the modifiers contain either [:final:] or [:const:], |
ahe
2012/08/22 14:07:46
The phrase "iff" is not standard vocabulary, so it
Johnni Winther
2012/08/22 14:23:20
The documentation was added to explain the semanti
|
+ * that is, that the declaration is either explicitly or implicitly final. |
+ */ |
+ bool isFinalOrConst() => isFinal() || isConst(); |
+ |
String toString() { |
LinkBuilder<String> builder = new LinkBuilder<String>(); |
if (isStatic()) builder.addLast('static'); |