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

Unified Diff: sdk/lib/developer/service.dart

Issue 2754013002: Format all dart: library files (Closed)
Patch Set: Format all dart: library files Created 3 years, 9 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 | « sdk/lib/developer/profiler.dart ('k') | sdk/lib/developer/timeline.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/developer/service.dart
diff --git a/sdk/lib/developer/service.dart b/sdk/lib/developer/service.dart
index bbe954def25262a61c14bbf741ac8d7b2a2dfae3..65c7f738d0d3f2cf170957cc847fdd9cd25c2364 100644
--- a/sdk/lib/developer/service.dart
+++ b/sdk/lib/developer/service.dart
@@ -12,9 +12,11 @@ class ServiceProtocolInfo {
/// The major version of the protocol. If the running Dart environment does
/// not support the service protocol, this is 0.
final int majorVersion = _getServiceMajorVersion();
+
/// The minor version of the protocol. If the running Dart environment does
/// not support the service protocol, this is 0.
final int minorVersion = _getServiceMinorVersion();
+
/// The Uri to access the service. If the web server is not running, this
/// will be null.
final Uri serverUri;
@@ -24,7 +26,7 @@ class ServiceProtocolInfo {
String toString() {
if (serverUri != null) {
return 'Dart VM Service Protocol v$majorVersion.$minorVersion '
- 'listening on $serverUri';
+ 'listening on $serverUri';
} else {
return 'Dart VM Service Protocol v$majorVersion.$minorVersion';
}
@@ -57,9 +59,7 @@ class Service {
static Future<ServiceProtocolInfo> controlWebServer(
{bool enable: false}) async {
if (enable is! bool) {
- throw new ArgumentError.value(enable,
- 'enable',
- 'Must be a bool');
+ throw new ArgumentError.value(enable, 'enable', 'Must be a bool');
}
// Port to receive response from service isolate.
final RawReceivePort receivePort = new RawReceivePort();
@@ -80,9 +80,7 @@ class Service {
/// protocol.
static String getIsolateID(Isolate isolate) {
if (isolate is! Isolate) {
- throw new ArgumentError.value(isolate,
- 'isolate',
- 'Must be an Isolate');
+ throw new ArgumentError.value(isolate, 'isolate', 'Must be an Isolate');
}
return _getIsolateIDFromSendPort(isolate.controlPort);
}
@@ -101,4 +99,4 @@ external int _getServiceMajorVersion();
external int _getServiceMinorVersion();
/// Returns the service id for the isolate that owns [sendPort].
-external String _getIsolateIDFromSendPort(SendPort sendPort);
+external String _getIsolateIDFromSendPort(SendPort sendPort);
« no previous file with comments | « sdk/lib/developer/profiler.dart ('k') | sdk/lib/developer/timeline.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698