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

Issue 10837236: Fix dangling else. (Closed)

Created:
8 years, 4 months ago by floitsch
Modified:
8 years, 4 months ago
Reviewers:
kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix dangling else. Fixes issue 4493. Committed: https://code.google.com/p/dart/source/detail?r=10645

Patch Set 1 #

Patch Set 2 : Add forgotten test. #

Total comments: 2

Patch Set 3 : Address comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -17 lines) Patch
M lib/compiler/implementation/js/printer.dart View 1 2 3 chunks +61 lines, -17 lines 0 comments Download
A tests/language/dangling_else_test.dart View 1 1 chunk +82 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
floitsch
8 years, 4 months ago (2012-08-14 13:34:36 UTC) #1
floitsch
Forgot to upload the test.
8 years, 4 months ago (2012-08-14 13:36:27 UTC) #2
kasperl
LGTM. https://chromiumcodereview.appspot.com/10837236/diff/2002/lib/compiler/implementation/js/printer.dart File lib/compiler/implementation/js/printer.dart (right): https://chromiumcodereview.appspot.com/10837236/diff/2002/lib/compiler/implementation/js/printer.dart#newcode143 lib/compiler/implementation/js/printer.dart:143: NodeVisitor danglingElseVisitor = new DanglingElseVisitor(compiler); Can this be ...
8 years, 4 months ago (2012-08-14 13:42:24 UTC) #3
floitsch
8 years, 4 months ago (2012-08-14 13:46:48 UTC) #4
https://chromiumcodereview.appspot.com/10837236/diff/2002/lib/compiler/implem...
File lib/compiler/implementation/js/printer.dart (right):

https://chromiumcodereview.appspot.com/10837236/diff/2002/lib/compiler/implem...
lib/compiler/implementation/js/printer.dart:143: NodeVisitor danglingElseVisitor
= new DanglingElseVisitor(compiler);
On 2012/08/14 13:42:24, kasperl wrote:
> Can this be reused? There's no state in the visitor (except for the compiler).

Done.

Powered by Google App Engine
This is Rietveld 408576698