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

Side by Side Diff: runtime/bin/input_stream.dart

Issue 10883071: - Change "static final" to "static const" in the runtime/ directory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/http_parser.dart ('k') | runtime/bin/process.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * Basic input stream which supplies binary data. 6 * Basic input stream which supplies binary data.
7 * 7 *
8 * Input streams are used to read data sequentially from some data 8 * Input streams are used to read data sequentially from some data
9 * source. All input streams are non-blocking. They each have a number 9 * source. All input streams are non-blocking. They each have a number
10 * of read calls which will always return without any IO related 10 * of read calls which will always return without any IO related
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 * communication channel gets into some kind of error situation. 94 * communication channel gets into some kind of error situation.
95 */ 95 */
96 void set onError(void callback(e)); 96 void set onError(void callback(e));
97 } 97 }
98 98
99 99
100 /** 100 /**
101 * String encodings. 101 * String encodings.
102 */ 102 */
103 class Encoding { 103 class Encoding {
104 static final Encoding UTF_8 = const Encoding._internal("UTF-8"); 104 static const Encoding UTF_8 = const Encoding._internal("UTF-8");
105 static final Encoding ISO_8859_1 = const Encoding._internal("ISO-8859-1"); 105 static const Encoding ISO_8859_1 = const Encoding._internal("ISO-8859-1");
106 static final Encoding ASCII = const Encoding._internal("ASCII"); 106 static const Encoding ASCII = const Encoding._internal("ASCII");
107 const Encoding._internal(String this.name); 107 const Encoding._internal(String this.name);
108 final String name; 108 final String name;
109 } 109 }
110 110
111 111
112 /** 112 /**
113 * A string input stream wraps a basic input stream and supplies 113 * A string input stream wraps a basic input stream and supplies
114 * string data. This data can be read either as string chunks or as 114 * string data. This data can be read either as string chunks or as
115 * lines separated by line termination character sequences. 115 * lines separated by line termination character sequences.
116 */ 116 */
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 void set onError(void callback(e)); 237 void set onError(void callback(e));
238 } 238 }
239 239
240 240
241 class StreamException implements Exception { 241 class StreamException implements Exception {
242 const StreamException([String this.message = ""]); 242 const StreamException([String this.message = ""]);
243 const StreamException.streamClosed() : message = "Stream closed"; 243 const StreamException.streamClosed() : message = "Stream closed";
244 String toString() => "StreamException: $message"; 244 String toString() => "StreamException: $message";
245 final String message; 245 final String message;
246 } 246 }
OLDNEW
« no previous file with comments | « runtime/bin/http_parser.dart ('k') | runtime/bin/process.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698