OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | |
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. | |
4 | |
5 import 'scope.dart'; | |
6 | |
7 VMServiceExtension newVMServiceExtension(String method) { | |
8 assert(method != null); | |
9 return new VMServiceExtension._(method); | |
10 } | |
11 | |
12 /// Represents a VM service extension registered in an isolate. | |
13 /// | |
14 /// Extensions are registered using `registerExtension` from the | |
15 /// `dart:developer` package. | |
16 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.
| |
17 /// RPC method name under which the extension is registered. | |
18 final String method; | |
19 | |
20 VMServiceExtension._(this.method); | |
21 } | |
OLD | NEW |