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

Unified Diff: runtime/bin/socket_impl.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/socket.dart ('k') | runtime/bin/socket_stream_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket_impl.dart
diff --git a/runtime/bin/socket_impl.dart b/runtime/bin/socket_impl.dart
index 702c2dfa30cfe37becaa70f69f9472a0bc681bf9..f2b0a4fcbfaf40b8901d0226b4abb02ec968642a 100644
--- a/runtime/bin/socket_impl.dart
+++ b/runtime/bin/socket_impl.dart
@@ -124,7 +124,7 @@ class _SocketBase {
}
}
- int get port() {
+ int get port {
if (_port === null) {
_port = _getPort();
}
@@ -480,7 +480,7 @@ class _Socket extends _SocketBase implements Socket {
bool _isPipe() => _pipe;
- InputStream get inputStream() {
+ InputStream get inputStream {
if (_inputStream == null) {
if (_handlerMap[_SocketBase._IN_EVENT] !== null ||
_handlerMap[_SocketBase._CLOSE_EVENT] !== null) {
@@ -492,7 +492,7 @@ class _Socket extends _SocketBase implements Socket {
return _inputStream;
}
- OutputStream get outputStream() {
+ OutputStream get outputStream {
if (_outputStream == null) {
if (_handlerMap[_SocketBase._OUT_EVENT] !== null) {
throw new StreamException(
@@ -556,14 +556,14 @@ class _Socket extends _SocketBase implements Socket {
}
}
- int get remotePort() {
+ int get remotePort {
if (_remotePort === null) {
remoteHost;
}
return _remotePort;
}
- String get remoteHost() {
+ String get remoteHost {
if (_remoteHost === null) {
List peer = _getRemotePeer();
_remoteHost = peer[0];
« no previous file with comments | « runtime/bin/socket.dart ('k') | runtime/bin/socket_stream_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698