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

Issue 10392024: Add a "Label" Node around an Identifier that is being used as a label. (Closed)

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

Description

Add a "Label" Node around an Identifier that is being used as a label. This is in preparation for rewriting switch to match the "new" switch grammar. I need to make a block information structure for switch statements, and I don't want to do that on an obsolete structure. Committed: https://code.google.com/p/dart/source/detail?r=7485

Patch Set 1 #

Patch Set 2 : Only use Label nodes for label introductions. Include the colon. #

Total comments: 9

Patch Set 3 : Addressede review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -33 lines) Patch
M lib/compiler/implementation/elements/elements.dart View 1 2 3 chunks +7 lines, -7 lines 0 comments Download
M lib/compiler/implementation/resolver.dart View 1 2 5 chunks +11 lines, -11 lines 0 comments Download
M lib/compiler/implementation/scanner/listener.dart View 1 3 chunks +13 lines, -5 lines 0 comments Download
M lib/compiler/implementation/scanner/parser.dart View 1 2 chunks +10 lines, -5 lines 0 comments Download
M lib/compiler/implementation/ssa/builder.dart View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M lib/compiler/implementation/tree/nodes.dart View 1 2 4 chunks +25 lines, -4 lines 0 comments Download
M lib/compiler/implementation/tree/unparser.dart View 1 1 chunk +5 lines, -1 line 0 comments Download
M lib/compiler/implementation/tree/visitors.dart View 1 chunk +1 line, -0 lines 0 comments Download
M lib/compiler/implementation/typechecker.dart View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Lasse Reichstein Nielsen
8 years, 7 months ago (2012-05-10 10:11:13 UTC) #1
Lasse Reichstein Nielsen
PTAnotherL.
8 years, 7 months ago (2012-05-10 11:27:18 UTC) #2
ahe
Much better, thank you. LGTM! Cheers, Peter https://chromiumcodereview.appspot.com/10392024/diff/3001/lib/compiler/implementation/elements/elements.dart File lib/compiler/implementation/elements/elements.dart (right): https://chromiumcodereview.appspot.com/10392024/diff/3001/lib/compiler/implementation/elements/elements.dart#newcode988 lib/compiler/implementation/elements/elements.dart:988: final Label ...
8 years, 7 months ago (2012-05-10 11:52:30 UTC) #3
Lasse Reichstein Nielsen
https://chromiumcodereview.appspot.com/10392024/diff/3001/lib/compiler/implementation/elements/elements.dart File lib/compiler/implementation/elements/elements.dart (right): https://chromiumcodereview.appspot.com/10392024/diff/3001/lib/compiler/implementation/elements/elements.dart#newcode988 lib/compiler/implementation/elements/elements.dart:988: final Label label; On 2012/05/10 11:52:30, ahe wrote: > ...
8 years, 7 months ago (2012-05-10 12:14:20 UTC) #4
ahe
8 years, 7 months ago (2012-05-10 12:40:25 UTC) #5
https://chromiumcodereview.appspot.com/10392024/diff/3001/lib/compiler/implem...
File lib/compiler/implementation/typechecker.dart (right):

https://chromiumcodereview.appspot.com/10392024/diff/3001/lib/compiler/implem...
lib/compiler/implementation/typechecker.dart:707: fail(node);
On 2012/05/10 12:14:20, Lasse Reichstein Nielsen wrote:
> Done.
> Why do we need to fail in the cases below?

Ask Karl. The cases below are not implemented so the type checker gives up (that
is what "fail" means in this context).

Powered by Google App Engine
This is Rietveld 408576698