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

Issue 10830145: Issue 3847. Allow non-constant instance variable initializers (Closed)

Created:
8 years, 4 months ago by scheglov
Modified:
8 years, 4 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 5

Patch Set 2 : Use different ErrorCode for using instance fields in instance field initializers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -3 lines) Patch
M compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java View 1 2 chunks +34 lines, -3 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java View 1 1 chunk +3 lines, -0 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/resolver/CompileTimeConstantTest.java View 1 1 chunk +41 lines, -0 lines 0 comments Download
M tests/co19/co19-compiler.status View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
scheglov
8 years, 4 months ago (2012-08-02 20:34:43 UTC) #1
Brian Wilkerson
https://chromiumcodereview.appspot.com/10830145/diff/1/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java File compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java (right): https://chromiumcodereview.appspot.com/10830145/diff/1/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java#newcode628 compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java:628: if (isFinalTopLevelField || (isClassField && isStatic) || isConst) { ...
8 years, 4 months ago (2012-08-02 21:19:50 UTC) #2
scheglov
https://chromiumcodereview.appspot.com/10830145/diff/1/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java File compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java (right): https://chromiumcodereview.appspot.com/10830145/diff/1/compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java#newcode628 compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java:628: if (isFinalTopLevelField || (isClassField && isStatic) || isConst) { ...
8 years, 4 months ago (2012-08-02 22:07:41 UTC) #3
Brian Wilkerson
8 years, 4 months ago (2012-08-02 22:16:35 UTC) #4
LGTM

https://chromiumcodereview.appspot.com/10830145/diff/1/compiler/java/com/goog...
File
compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java
(right):

https://chromiumcodereview.appspot.com/10830145/diff/1/compiler/java/com/goog...
compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java:628:
if (isFinalTopLevelField || (isClassField && isStatic) || isConst) {
> 2. "Changes since Version 0.10"

I'm not sure what that is, I was basing my comments off the revised spec, but if
this bug doesn't cover those changes then I'm sure we'll get to it later.

Powered by Google App Engine
This is Rietveld 408576698