Index: lib/src/extension.dart |
diff --git a/lib/src/extension.dart b/lib/src/extension.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..281fb7f31ae47c2e7bf5015baf45df64f6c22dbb |
--- /dev/null |
+++ b/lib/src/extension.dart |
@@ -0,0 +1,21 @@ |
+// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+import 'scope.dart'; |
+ |
+VMServiceExtension newVMServiceExtension(String method) { |
+ assert(method != null); |
+ return new VMServiceExtension._(method); |
+} |
+ |
+/// Represents a VM service extension registered in an isolate. |
+/// |
+/// Extensions are registered using `registerExtension` from the |
+/// `dart:developer` package. |
+class VMServiceExtension { |
nweiz
2016/02/16 22:03:20
Since Isolate.extensionRPCs is a set of strings, I
yjbanov
2016/02/16 22:31:49
Done.
|
+ /// RPC method name under which the extension is registered. |
+ final String method; |
+ |
+ VMServiceExtension._(this.method); |
+} |