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(); |
+} |