Index: pkg/analyzer/lib/src/generated/element.dart |
diff --git a/pkg/analyzer/lib/src/generated/element.dart b/pkg/analyzer/lib/src/generated/element.dart |
index f583c376fa1bed7e71fc11f6bad29d6362e732ab..b527762ab81732df48404f5bcae48ecc15e48e74 100644 |
--- a/pkg/analyzer/lib/src/generated/element.dart |
+++ b/pkg/analyzer/lib/src/generated/element.dart |
@@ -1526,7 +1526,14 @@ class CompilationUnitElementImpl extends UriReferencedElementImpl |
} |
/** |
- * A [FieldElement] for a 'const' field that has an initializer. |
+ * A [FieldElement] for a 'const' or 'final' field that has an initializer. |
+ * |
+ * TODO(paulberry): we should rename this class to reflect the fact that it's |
+ * used for both const and final fields. However, we shouldn't do so until |
+ * we've created an API for reading the values of constants; until that API is |
+ * available, clients are likely to read constant values by casting to |
+ * ConstFieldElementImpl, so it would be a breaking change to rename this |
+ * class. |
*/ |
class ConstFieldElementImpl extends FieldElementImpl with ConstVariableElement { |
/** |