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

Issue 11740019: Fix issue 7677: recognize const declarations inside methods. (Closed)

Created:
7 years, 11 months ago by ngeoffray
Modified:
7 years, 11 months ago
Reviewers:
Johnni Winther, ahe
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix issue 7677: recognize const declarations inside methods. Committed: https://code.google.com/p/dart/source/detail?r=17262

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -2 lines) Patch
M sdk/lib/_internal/compiler/implementation/compile_time_constants.dart View 1 1 chunk +7 lines, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
ngeoffray
7 years, 11 months ago (2013-01-03 14:05:59 UTC) #1
ahe
LGTM! https://codereview.chromium.org/11740019/diff/2001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart File sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (right): https://codereview.chromium.org/11740019/diff/2001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart#newcode464 sdk/lib/_internal/compiler/implementation/compile_time_constants.dart:464: return makeTypeConstant(element); To ease my mind, could you ...
7 years, 11 months ago (2013-01-03 14:09:25 UTC) #2
ngeoffray
https://codereview.chromium.org/11740019/diff/2001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart File sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (right): https://codereview.chromium.org/11740019/diff/2001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart#newcode464 sdk/lib/_internal/compiler/implementation/compile_time_constants.dart:464: return makeTypeConstant(element); On 2013/01/03 14:09:26, ahe wrote: > To ...
7 years, 11 months ago (2013-01-08 14:36:11 UTC) #3
ngeoffray
On 2013/01/08 14:36:11, ngeoffray wrote: > https://codereview.chromium.org/11740019/diff/2001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart > File sdk/lib/_internal/compiler/implementation/compile_time_constants.dart > (right): > > https://codereview.chromium.org/11740019/diff/2001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart#newcode464 ...
7 years, 11 months ago (2013-01-10 13:16:39 UTC) #4
ngeoffray
On 2013/01/10 13:16:39, ngeoffray wrote: > On 2013/01/08 14:36:11, ngeoffray wrote: > > > https://codereview.chromium.org/11740019/diff/2001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart ...
7 years, 11 months ago (2013-01-17 17:51:33 UTC) #5
ahe
https://codereview.chromium.org/11740019/diff/2001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart File sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (right): https://codereview.chromium.org/11740019/diff/2001/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart#newcode464 sdk/lib/_internal/compiler/implementation/compile_time_constants.dart:464: return makeTypeConstant(element); On 2013/01/08 14:36:11, ngeoffray wrote: > On ...
7 years, 11 months ago (2013-01-18 11:07:11 UTC) #6
ngeoffray
7 years, 11 months ago (2013-01-18 11:15:30 UTC) #7
Thanks Peter.

https://codereview.chromium.org/11740019/diff/2001/sdk/lib/_internal/compiler...
File sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
(right):

https://codereview.chromium.org/11740019/diff/2001/sdk/lib/_internal/compiler...
sdk/lib/_internal/compiler/implementation/compile_time_constants.dart:464:
return makeTypeConstant(element);
On 2013/01/18 11:07:11, ahe wrote:
> On 2013/01/08 14:36:11, ngeoffray wrote:
> > On 2013/01/03 14:09:26, ahe wrote:
> > > To ease my mind, could you add this:
> > > 
> > > } else if (send.receiver != null) {
> > >   // Fall through to error handling.
> > 
> > This is not easing mine :) Where do you want to put that check?
> 
> Right here, before the new code.
> 
> > Why does it make it easier to you?
> 
> Because I don't want this to become a constant expression by accident:
> 
> someConstant.field

Done.

Powered by Google App Engine
This is Rietveld 408576698