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

Unified Diff: frog/code_writer.dart

Issue 10060002: Repo for extremely slow 'const'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/code_writer.dart
diff --git a/frog/code_writer.dart b/frog/code_writer.dart
index f903f8f4bfc5e8db279aaee504115e19a9af8f95..6dc2ef2e44d5c98fc9e9628363b8a32f4c981c2e 100644
--- a/frog/code_writer.dart
+++ b/frog/code_writer.dart
@@ -10,7 +10,7 @@ class CodeWriter {
static final int INC_INDENT = +1;
static final int DEC_INDENT = -1;
- static final NEWLINE = null; // Anything but an int, String or List.
+ static final NEWLINE = const Newline();
List _buf;
bool writeComments = true;
@@ -108,3 +108,7 @@ class CodeWriter {
_buf.add(INC_INDENT);
}
}
+
+class Newline {
+ const Newline();
+}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698