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

Unified Diff: runtime/vm/service/service.md

Issue 1396603004: Fix two bugs in the serivce protocol specification (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service/service.md
diff --git a/runtime/vm/service/service.md b/runtime/vm/service/service.md
index 1702ec9b97aa8cd165256f85f1a2c77b01d4f712..5a2d0e0a499bc2acc6640ab45488663bc11e64ad 100644
--- a/runtime/vm/service/service.md
+++ b/runtime/vm/service/service.md
@@ -769,6 +769,13 @@ a vertical bar:
PropertyType1|PropertyType2 complexProperty;
```
+We also allow parenthesis on type expressions. This is useful when a property
+is an _Array_ of multiple independent types:
+
+```
+ (PropertyType1|PropertyType2)[]
+```
+
When a string is only permitted to take one of a certain set of values,
we indicate this by the use of the _enum_ format:
@@ -1464,7 +1471,7 @@ class Instance extends Object {
//
// Provided for instance kinds:
// List
- @Instance|Sentinel[] elements [optional];
+ (@Instance|Sentinel)[] elements [optional];
// The elements of a List instance.
//
@@ -2136,6 +2143,15 @@ See [Versioning](#versioning).
### VM
```
+class @VM extends Response {
+ // A name identifying this vm. Not guaranteed to be unique.
+ string name;
+}
+```
+
+_@VM_ is a reference to a _VM_ object.
+
+```
class VM extends Response {
// Word length on target architecture (e.g. 32, 64).
int architectureBits;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698