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

Issue 2988383002: A minimal status file formatter and canonicalizer. (Closed)

Created:
3 years, 4 months ago by Bob Nystrom
Modified:
3 years, 4 months ago
Reviewers:
Bill Hesse
CC:
reviews_dartlang.org, dart2now-team_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

A minimal status file formatter and canonicalizer. For the migration script, I need a (less hacky) way of programmatically modifying a status file. As a step along that path, I need the ability to write a status file to disc given a StatusFile object. With that, it was a small step to write a little "formatter" that turns a status file into its canonical representation. It removes unneeded parentheses in expressions, normalizes expectation case, and normalizes whitespace. Seems useful. R=whesse@google.com Committed: https://github.com/dart-lang/sdk/commit/b9795ffabbf2c2d8e24ef9b0dfdd0de42b3a64c3

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -18 lines) Patch
A pkg/status_file/bin/format.dart View 1 chunk +37 lines, -0 lines 0 comments Download
M pkg/status_file/lib/expectation.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/status_file/lib/src/expression.dart View 3 chunks +14 lines, -3 lines 0 comments Download
M pkg/status_file/lib/status_file.dart View 6 chunks +74 lines, -7 lines 2 comments Download
M pkg/status_file/test/status_expression_test.dart View 4 chunks +5 lines, -7 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Bob Nystrom
3 years, 4 months ago (2017-08-02 22:59:36 UTC) #2
Bill Hesse
lgtm https://codereview.chromium.org/2988383002/diff/1/pkg/status_file/lib/status_file.dart File pkg/status_file/lib/status_file.dart (right): https://codereview.chromium.org/2988383002/diff/1/pkg/status_file/lib/status_file.dart#newcode233 pkg/status_file/lib/status_file.dart:233: for (var entry in section.entries) { Not in ...
3 years, 4 months ago (2017-08-03 14:24:07 UTC) #3
Bob Nystrom
https://codereview.chromium.org/2988383002/diff/1/pkg/status_file/lib/status_file.dart File pkg/status_file/lib/status_file.dart (right): https://codereview.chromium.org/2988383002/diff/1/pkg/status_file/lib/status_file.dart#newcode233 pkg/status_file/lib/status_file.dart:233: for (var entry in section.entries) { On 2017/08/03 14:24:07, ...
3 years, 4 months ago (2017-08-03 20:28:49 UTC) #4
Bob Nystrom
3 years, 4 months ago (2017-08-03 20:37:37 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
b9795ffabbf2c2d8e24ef9b0dfdd0de42b3a64c3 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698