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

Unified Diff: runtime/bin/string_stream.dart

Issue 10872033: Change getters syntax in dart:io library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | « runtime/bin/stream_util.dart ('k') | runtime/bin/websocket.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/string_stream.dart
diff --git a/runtime/bin/string_stream.dart b/runtime/bin/string_stream.dart
index cfbc37c982ac9e09050245d7574a64faee39de06..26710f9740bb10df7936041a3fe9f2290128428e 100644
--- a/runtime/bin/string_stream.dart
+++ b/runtime/bin/string_stream.dart
@@ -18,13 +18,13 @@ interface _StringDecoder {
// Get the string data decoded since the last call to [decode] or
// [decodeLine]. Returns null if no decoded data is available.
- String get decoded();
+ String get decoded;
// Get the string data decoded since the last call to [decode] or
// [decodeLine] up to the next line break present. Returns null if
// no line break is present. The line break character sequence is
// discarded.
- String get decodedLine();
+ String get decodedLine;
}
@@ -77,9 +77,9 @@ class _StringDecoderBase implements _StringDecoder {
return _result.isEmpty();
}
- int get lineBreaks() => _lineBreaks;
+ int get lineBreaks => _lineBreaks;
- String get decoded() {
+ String get decoded {
if (isEmpty()) return null;
String result;
@@ -98,7 +98,7 @@ class _StringDecoderBase implements _StringDecoder {
return result;
}
- String get decodedLine() {
+ String get decodedLine {
if (_lineBreakEnds.isEmpty()) return null;
int lineEnd = _lineBreakEnds.removeFirst();
int terminationSequenceLength = 1;
@@ -376,9 +376,9 @@ class _StringInputStream implements StringInputStream {
int available() => _decoder.available();
- Encoding get encoding() => _encoding;
+ Encoding get encoding => _encoding;
- bool get closed() => _inputClosed && _decoder.isEmpty();
+ bool get closed => _inputClosed && _decoder.isEmpty();
void set onData(void callback()) {
_clientDataHandler = callback;
« no previous file with comments | « runtime/bin/stream_util.dart ('k') | runtime/bin/websocket.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698