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

Issue 1099953004: In constant evaluation, handle final vars initialized at declaration site. (Closed)

Created:
5 years, 8 months ago by Paul Berry
Modified:
5 years, 7 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

In constant evaluation, handle final vars initialized at declaration site. Previously final variables initialized at the declaration site would simply be ignored, causing some checked-mode compile time errors to be missed, and causing the analyzer to produce incorrect values for any such constants. BUG=dartbug.com/23292 R=brianwilkerson@google.com Committed: https://code.google.com/p/dart/source/detail?r=45494

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+383 lines, -8 lines) Patch
M pkg/analyzer/lib/src/generated/constant.dart View 7 chunks +68 lines, -1 line 0 comments Download
M pkg/analyzer/lib/src/generated/element.dart View 1 chunk +8 lines, -1 line 0 comments Download
M pkg/analyzer/lib/src/generated/resolver.dart View 2 chunks +12 lines, -3 lines 2 comments Download
M pkg/analyzer/test/generated/all_the_rest_test.dart View 8 chunks +160 lines, -3 lines 0 comments Download
M pkg/analyzer/test/generated/resolver_test.dart View 2 chunks +31 lines, -0 lines 0 comments Download
A tests/language/compile_time_constant_checked5_test.dart View 1 chunk +79 lines, -0 lines 0 comments Download
M tests/language/language_analyzer.status View 1 chunk +9 lines, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Paul Berry
5 years, 8 months ago (2015-04-21 21:44:54 UTC) #2
Brian Wilkerson
LGTM https://codereview.chromium.org/1099953004/diff/1/pkg/analyzer/lib/src/generated/resolver.dart File pkg/analyzer/lib/src/generated/resolver.dart (right): https://codereview.chromium.org/1099953004/diff/1/pkg/analyzer/lib/src/generated/resolver.dart#newcode11312 pkg/analyzer/lib/src/generated/resolver.dart:11312: // evaluate the const constructor). Do we really ...
5 years, 8 months ago (2015-04-22 02:44:00 UTC) #3
Paul Berry
https://codereview.chromium.org/1099953004/diff/1/pkg/analyzer/lib/src/generated/resolver.dart File pkg/analyzer/lib/src/generated/resolver.dart (right): https://codereview.chromium.org/1099953004/diff/1/pkg/analyzer/lib/src/generated/resolver.dart#newcode11312 pkg/analyzer/lib/src/generated/resolver.dart:11312: // evaluate the const constructor). On 2015/04/22 02:44:00, Brian ...
5 years, 8 months ago (2015-04-24 18:06:34 UTC) #4
Paul Berry
5 years, 7 months ago (2015-05-04 16:22:10 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as 45494 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698