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

Unified Diff: lib/src/debug.dart

Issue 2333373003: Add a command-line option to set the exit code on a formatting change. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bin/format.dart ('k') | lib/src/formatter_options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/debug.dart
diff --git a/lib/src/debug.dart b/lib/src/debug.dart
index 55734cfa6782e6f0a37165f3873a0a48c994d6c4..b3ca65fc13aa6c6132c4e91e1145c61dd5867f86 100644
--- a/lib/src/debug.dart
+++ b/lib/src/debug.dart
@@ -86,10 +86,10 @@ void dumpChunks(int start, List<Chunk> chunks) {
var rules =
chunks.map((chunk) => chunk.rule).where((rule) => rule != null).toSet();
- var rows = [];
+ var rows = <List<String>>[];
addChunk(List<Chunk> chunks, String prefix, int index) {
- var row = [];
+ var row = <String>[];
row.add("$prefix$index:");
var chunk = chunks[index];
« no previous file with comments | « bin/format.dart ('k') | lib/src/formatter_options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698