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

Issue 9619028: Cases in a switch introduce a new scope. (Closed)

Created:
8 years, 9 months ago by ngeoffray
Modified:
8 years, 8 months ago
Reviewers:
ahe, floitsch
CC:
reviews_dartlang.org, floitsch, karlklose, Lasse Reichstein Nielsen, kasperl
Visibility:
Public.

Description

Cases in a switch introduce a new scope. Committed: https://code.google.com/p/dart/source/detail?r=5154

Patch Set 1 : #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -3 lines) Patch
M frog/leg/resolver.dart View 1 chunk +2 lines, -2 lines 5 comments Download
M tests/language/language-leg.status View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
ngeoffray
8 years, 9 months ago (2012-03-07 22:18:47 UTC) #1
ahe
https://chromiumcodereview.appspot.com/9619028/diff/1001/frog/leg/resolver.dart File frog/leg/resolver.dart (right): https://chromiumcodereview.appspot.com/9619028/diff/1001/frog/leg/resolver.dart#newcode1164 frog/leg/resolver.dart:1164: visitIn(node.statements, new BlockScope(context)); I can't find this in the ...
8 years, 9 months ago (2012-03-07 22:24:15 UTC) #2
ngeoffray
https://chromiumcodereview.appspot.com/9619028/diff/1001/frog/leg/resolver.dart File frog/leg/resolver.dart (right): https://chromiumcodereview.appspot.com/9619028/diff/1001/frog/leg/resolver.dart#newcode1164 frog/leg/resolver.dart:1164: visitIn(node.statements, new BlockScope(context)); On 2012/03/07 22:24:15, ahe wrote: > ...
8 years, 9 months ago (2012-03-07 22:31:11 UTC) #3
floitsch
LGTM. This was definitely always the intention. If the spec doesn't mention it, then it ...
8 years, 9 months ago (2012-03-07 23:10:45 UTC) #4
ngeoffray
On 2012/03/07 23:10:45, floitsch wrote: > LGTM. > This was definitely always the intention. > ...
8 years, 9 months ago (2012-03-08 08:50:35 UTC) #5
ahe
Forgot to mail this. I'm not sure this is recorded anywhere, so please make sure ...
8 years, 8 months ago (2012-04-13 13:50:19 UTC) #6
ngeoffray
http://codereview.chromium.org/9619028/diff/1001/frog/leg/resolver.dart File frog/leg/resolver.dart (right): http://codereview.chromium.org/9619028/diff/1001/frog/leg/resolver.dart#newcode1164 frog/leg/resolver.dart:1164: visitIn(node.statements, new BlockScope(context)); On 2012/04/13 13:50:19, ahe wrote: > ...
8 years, 8 months ago (2012-04-16 13:49:34 UTC) #7
ahe
8 years, 8 months ago (2012-04-16 14:51:58 UTC) #8
http://codereview.chromium.org/9619028/diff/1001/frog/leg/resolver.dart
File frog/leg/resolver.dart (right):

http://codereview.chromium.org/9619028/diff/1001/frog/leg/resolver.dart#newco...
frog/leg/resolver.dart:1164: visitIn(node.statements, new BlockScope(context));
On 2012/04/16 13:49:35, ngeoffray wrote:
> On 2012/04/13 13:50:19, ahe wrote:
> > On 2012/03/07 22:31:11, ngeoffray wrote:
> > > On 2012/03/07 22:24:15, ahe wrote:
> > > > I can't find this in the specification.
> > > 
> > > We have a test for it SwitchScopeTest. And the JSON implementation of dart
> > > assumes there is a new scope. Ergo, spec forgot to mention it :)
> > 
> > Then you need to file a specification bug.
> 
> Yes: http://code.google.com/p/dart/issues/detail?id=2057

Thank you. Starred it :-)

Powered by Google App Engine
This is Rietveld 408576698