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

Side by Side Diff: runtime/observatory/lib/src/models/objects/instance.dart

Issue 2212253002: Converted Observatory class-tree element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Removed tmp code Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 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 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of models; 5 part of models;
6 6
7 abstract class InstanceRef extends ObjectRef {} 7 abstract class InstanceRef extends ObjectRef {
8 /// Instance references always include their class.
9 ClassRef get clazz;
10
11 /// [optional] The value of this instance as a string.
12 ///
13 /// Provided for the instance kinds:
14 /// Null (null)
15 /// Bool (true or false)
16 /// Double (suitable for passing to Double.parse())
17 /// Int (suitable for passing to int.parse())
18 /// String (value may be truncated)
19 /// Float32x4
20 /// Float64x2
21 /// Int32x4
22 /// StackTrace
23 String get valueAsString;
24
25 /// [optional] The valueAsString for String references may be truncated. If so ,
26 /// this property is added with the value 'true'.
27 ///
28 /// New code should use 'length' and 'count' instead.
29 bool get valueAsStringIsTruncated;
30
31 /// [optional] The length of a List or the number of associations in a Map or
32 /// the number of codeunits in a String.
33 ///
34 /// Provided for instance kinds:
35 /// String
36 /// List
37 /// Map
38 /// Uint8ClampedList
39 /// Uint8List
40 /// Uint16List
41 /// Uint32List
42 /// Uint64List
43 /// Int8List
44 /// Int16List
45 /// Int32List
46 /// Int64List
47 /// Float32List
48 /// Float64List
49 /// Int32x4List
50 /// Float32x4List
51 /// Float64x2List
52 int get length;
53
54 /// [optional] The name of a Type instance.
55 ///
56 /// Provided for instance kinds:
57 /// Type
58 String get name;
59
60 /// [optional] The corresponding Class if this Type is canonical.
61 ///
62 /// Provided for instance kinds:
63 /// Type
64 ClassRef get typeClass;
65
66 /// [optional] The parameterized class of a type parameter:
67 ///
68 /// Provided for instance kinds:
69 /// TypeParameter
70 ClassRef get parameterizedClass;
71
72 /// [optional] The pattern of a RegExp instance.
73 ///
74 /// The pattern is always an instance of kind String.
75 ///
76 /// Provided for instance kinds:
77 /// RegExp
78 InstanceRef get pattern;
79 }
80
81 abstract class Instance extends Object implements InstanceRef {}
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/models/objects/class.dart ('k') | runtime/observatory/lib/src/models/repositories/class.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698