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

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

Issue 10536164: Issue 3550. Initial understanding "const". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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: compiler/java/com/google/dart/compiler/resolver/TopLevelElementBuilder.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/TopLevelElementBuilder.java b/compiler/java/com/google/dart/compiler/resolver/TopLevelElementBuilder.java
index 681e61800f1f492e5e75e974fb32dbc528a3828a..d620cebc6de0106b7bc4f93fca59a5be55e359d1 100644
--- a/compiler/java/com/google/dart/compiler/resolver/TopLevelElementBuilder.java
+++ b/compiler/java/com/google/dart/compiler/resolver/TopLevelElementBuilder.java
@@ -201,7 +201,7 @@ public class TopLevelElementBuilder {
public Void visitField(DartField node) {
Modifiers modifiers = node.getModifiers();
if (modifiers.isFinal()) {
- // final toplevel fields are implicitly compile-time constants.
+ // final top-level fields are implicitly compile-time constants.
modifiers = modifiers.makeConstant();
}
node.setElement(Elements.fieldFromNode(node, library, modifiers));

Powered by Google App Engine
This is Rietveld 408576698