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

Issue 10236005: Fix small problems with precedence of cascades. (Closed)

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

Description

Fix small problems with precedence of cascades. Conditional expressions didn't require their branches to be expressionWithoutCascade. Assignments didn't bind correctly relative to cascades. Added a flag to be able to handle them both as expression and expressionWithoutCascade. Committed: https://code.google.com/p/dart/source/detail?r=7055

Patch Set 1 #

Total comments: 3

Patch Set 2 : Make withoutCascade flag local. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -16 lines) Patch
A frog/tests/leg_only/src/CascadePrecedenceTest.dart View 1 chunk +137 lines, -0 lines 1 comment Download
M lib/compiler/implementation/scanner/parser.dart View 1 5 chunks +27 lines, -13 lines 4 comments Download
M lib/compiler/implementation/scanner/token.dart View 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Lasse Reichstein Nielsen
8 years, 8 months ago (2012-04-26 14:25:03 UTC) #1
ahe
https://chromiumcodereview.appspot.com/10236005/diff/1/lib/compiler/implementation/scanner/parser.dart File lib/compiler/implementation/scanner/parser.dart (right): https://chromiumcodereview.appspot.com/10236005/diff/1/lib/compiler/implementation/scanner/parser.dart#newcode12 lib/compiler/implementation/scanner/parser.dart:12: bool mayParseCascades = true; Does this need to be ...
8 years, 8 months ago (2012-04-26 14:33:30 UTC) #2
Lasse Reichstein Nielsen
https://chromiumcodereview.appspot.com/10236005/diff/1/lib/compiler/implementation/scanner/parser.dart File lib/compiler/implementation/scanner/parser.dart (right): https://chromiumcodereview.appspot.com/10236005/diff/1/lib/compiler/implementation/scanner/parser.dart#newcode12 lib/compiler/implementation/scanner/parser.dart:12: bool mayParseCascades = true; Actually not. Passing it to ...
8 years, 8 months ago (2012-04-27 07:08:31 UTC) #3
ahe
LGTM https://chromiumcodereview.appspot.com/10236005/diff/4001/frog/tests/leg_only/src/CascadePrecedenceTest.dart File frog/tests/leg_only/src/CascadePrecedenceTest.dart (right): https://chromiumcodereview.appspot.com/10236005/diff/4001/frog/tests/leg_only/src/CascadePrecedenceTest.dart#newcode55 frog/tests/leg_only/src/CascadePrecedenceTest.dart:55: // logicalOrExpression ('?' expressionWithoutCascade ':' expressionWithoutCascade)? Long line. ...
8 years, 7 months ago (2012-05-01 15:50:50 UTC) #4
ahe
https://chromiumcodereview.appspot.com/10236005/diff/4001/lib/compiler/implementation/scanner/parser.dart File lib/compiler/implementation/scanner/parser.dart (right): https://chromiumcodereview.appspot.com/10236005/diff/4001/lib/compiler/implementation/scanner/parser.dart#newcode879 lib/compiler/implementation/scanner/parser.dart:879: [bool withoutCascades]) { Why was this submitted without addressing ...
8 years, 3 months ago (2012-09-24 16:49:01 UTC) #5
Lasse Reichstein Nielsen
8 years, 3 months ago (2012-09-24 17:58:09 UTC) #6
https://codereview.chromium.org/10236005/diff/4001/lib/compiler/implementatio...
File lib/compiler/implementation/scanner/parser.dart (right):

https://codereview.chromium.org/10236005/diff/4001/lib/compiler/implementatio...
lib/compiler/implementation/scanner/parser.dart:879: [bool withoutCascades]) {
A really good question. I vaguely remember actually doing the rename. Don't know
how it got lost again.
Will fix.

Powered by Google App Engine
This is Rietveld 408576698