Index: utils/template/parser.dart |
diff --git a/utils/template/parser.dart b/utils/template/parser.dart |
index e0f426c3befb9e30b27dad6938265b2d008d1f5f..9f23d8a9931de613cc27821de51af3e6b7a1a66e 100644 |
--- a/utils/template/parser.dart |
+++ b/utils/template/parser.dart |
@@ -672,7 +672,7 @@ class Parser { |
_next(false); |
} else if (_peek() != TokenKind.RBRACE) { |
// Yes, grab the chars after the > |
- stringValue.add(_previousToken.source.text.substring( |
+ stringValue.write(_previousToken.source.text.substring( |
this._previousToken.end, this._peekToken.start)); |
} |
} |
@@ -706,7 +706,7 @@ class Parser { |
start = _peekToken.start; |
} else if (tok.kind != TokenKind.START_EXPRESSION) { |
// Only save the the contents between ${ and } |
- stringValue.add(tok.text); |
+ stringValue.write(tok.text); |
} |
} |