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

Issue 1000513002: Tweak formatting rules. Fix #211. (Closed)

Created:
5 years, 9 months ago by Bob Nystrom
Modified:
5 years, 9 months ago
Reviewers:
pquitslund
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/dart_style.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Tweak formatting rules. Fix #211. Discard open spans when a hard split occurs. This is a correctness issue, not a performance one. The previous code would leave spans open even when a hard split occurred in them. These were mostly innocuous since they ended up with totally bogus ranges, but they apparently do affect some corner-case formatting. Some of this was triggered by the previous patch which was for perf but also made some stuff more correct. BUG=https://github.com/dart-lang/dart_style/issues/ R=pquitslund@google.com Committed: 425ed080df27a2f66ab91f7161bb0600e4329ea6

Patch Set 1 #

Patch Set 2 : Update changelog. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -28 lines) Patch
M CHANGELOG.md View 1 1 chunk +4 lines, -0 lines 0 comments Download
M lib/src/chunk.dart View 2 chunks +13 lines, -2 lines 0 comments Download
M lib/src/line_writer.dart View 8 chunks +25 lines, -12 lines 0 comments Download
M lib/src/multisplit.dart View 2 chunks +5 lines, -4 lines 0 comments Download
M lib/src/source_visitor.dart View 5 chunks +49 lines, -8 lines 0 comments Download
M test/regression/121.stmt View 1 chunk +4 lines, -2 lines 0 comments Download
A test/regression/211.unit View 1 chunk +69 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
Bob Nystrom
It turns out that the old behavior I changed in https://github.com/dart-lang/dart_style/commit/ff182727c4b49f55a829645468b63dc23464741b was masking some weird ...
5 years, 9 months ago (2015-03-10 22:59:30 UTC) #2
pquitslund
lgtm
5 years, 9 months ago (2015-03-10 23:34:54 UTC) #3
Bob Nystrom
5 years, 9 months ago (2015-03-10 23:46:20 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
425ed080df27a2f66ab91f7161bb0600e4329ea6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698