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

Issue 24091002: Emit a compile-time error when the name of a variable is referenced in the (Closed)

Created:
7 years, 3 months ago by karlklose
Modified:
7 years, 3 months ago
Reviewers:
ngeoffray
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Emit a compile-time error when the name of a variable is referenced in the initializing expression. R=ngeoffray@google.com Committed: https://code.google.com/p/dart/source/detail?r=27421

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments. #

Patch Set 3 : Rest of patch set 2 #

Patch Set 4 : Update co19 test expectations. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -20 lines) Patch
M sdk/lib/_internal/compiler/implementation/resolution/members.dart View 1 chunk +9 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/resolution/scope.dart View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/warnings.dart View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M sdk/lib/_internal/lib/regexp_helper.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M tests/co19/co19-dart2dart.status View 1 2 3 1 chunk +0 lines, -8 lines 0 comments Download
M tests/co19/co19-dart2js.status View 1 2 3 1 chunk +0 lines, -8 lines 0 comments Download
M tests/language/language_dart2js.status View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
karlklose
This is only a partial implementation of the specification. If we agree to keep the ...
7 years, 3 months ago (2013-09-10 11:27:10 UTC) #1
ngeoffray
LGTM https://codereview.chromium.org/24091002/diff/1/sdk/lib/_internal/compiler/implementation/resolution/scope.dart File sdk/lib/_internal/compiler/implementation/resolution/scope.dart (right): https://codereview.chromium.org/24091002/diff/1/sdk/lib/_internal/compiler/implementation/resolution/scope.dart#newcode58 sdk/lib/_internal/compiler/implementation/resolution/scope.dart:58: throw "Cannot add element to TypeDeclarationScope"; TypeDeclarationScope -> ...
7 years, 3 months ago (2013-09-10 11:39:48 UTC) #2
karlklose
https://codereview.chromium.org/24091002/diff/1/sdk/lib/_internal/compiler/implementation/resolution/scope.dart File sdk/lib/_internal/compiler/implementation/resolution/scope.dart (right): https://codereview.chromium.org/24091002/diff/1/sdk/lib/_internal/compiler/implementation/resolution/scope.dart#newcode58 sdk/lib/_internal/compiler/implementation/resolution/scope.dart:58: throw "Cannot add element to TypeDeclarationScope"; On 2013/09/10 11:39:48, ...
7 years, 3 months ago (2013-09-10 11:45:53 UTC) #3
karlklose
7 years, 3 months ago (2013-09-12 07:45:23 UTC) #4
Message was sent while issue was closed.
Committed patchset #4 manually as r27421 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698