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

Unified Diff: pkg/analyzer_experimental/lib/src/services/writer.dart

Issue 23480055: Formatter sanity-checking (via token stream verification). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
Index: pkg/analyzer_experimental/lib/src/services/writer.dart
===================================================================
--- pkg/analyzer_experimental/lib/src/services/writer.dart (revision 27307)
+++ pkg/analyzer_experimental/lib/src/services/writer.dart (working copy)
@@ -85,7 +85,7 @@
final String lineSeparator;
int indentCount = 0;
- SourceWriter({this.indentCount: 0, this.lineSeparator: '\n'}) {
+ SourceWriter({this.indentCount: 0, this.lineSeparator: NEW_LINE}) {
currentLine = new Line(indent: indentCount);
}
@@ -139,7 +139,7 @@
}
-
+const NEW_LINE = '\n';
const SPACE = ' ';
const SPACES = const [
'',

Powered by Google App Engine
This is Rietveld 408576698