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

Unified Diff: runtime/bin/string_stream.dart

Issue 8619008: Initializing formals can't be optional parameters (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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: runtime/bin/string_stream.dart
===================================================================
--- runtime/bin/string_stream.dart (revision 1754)
+++ runtime/bin/string_stream.dart (working copy)
@@ -17,7 +17,7 @@
class DecoderException implements Exception {
- const DecoderException([String this.message]);
+ const DecoderException([String msg]) : message = msg;
String toString() => "DecoderException: $message";
final String message;
}
@@ -138,7 +138,8 @@
class _StringInputStream implements StringInputStream {
- _StringInputStream(InputStream this._input, [String this._encoding]) {
+ _StringInputStream(InputStream this._input, [String encoding])
+ : _encoding = encoding {
if (_encoding === null) {
_encoding = "UTF-8";
}
« no previous file with comments | « runtime/bin/socket.dart ('k') | runtime/vm/parser.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698