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

Unified Diff: runtime/observatory/lib/src/models/objects/class.dart

Issue 2167053002: Converted Observatory nav-notify element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Added tests Created 4 years, 5 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
Index: runtime/observatory/lib/src/models/objects/class.dart
diff --git a/runtime/observatory/lib/src/models/objects/class.dart b/runtime/observatory/lib/src/models/objects/class.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a2a90077f16d0ae2e7ce2a5ae9a94826c8b04e36
--- /dev/null
+++ b/runtime/observatory/lib/src/models/objects/class.dart
@@ -0,0 +1,57 @@
+// 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
+
+part of models;
Cutch 2016/07/22 13:58:43 What is your plan to remove the duplication being
cbernaschina 2016/07/22 18:29:50 The objects.dart objects cannot be changed right n
+
+abstract class ClassRef extends ObjectRef {
+ /// The name of this class.
+ String get name;
+}
+
+abstract class Class extends ObjectRef implements ClassRef {
+ /// The error which occurred during class finalization, if it exists.
+ /// [optional]
+ ErrorRef get error;
+
+ /// Is this an abstract class?
+ bool get isAbstract;
+
+ /// Is this a const class?
+ bool get isConst;
+
+ /// The library which contains this class.
+ LibraryRef get library;
+
+ /// The location of this class in the source code.[optional]
+ SourceLocation get location;
+
+ /// The superclass of this class, if any. [optional]
+ ClassRef get superclass;
+
+ /// The supertype for this class, if any.
+ ///
+ /// The value will be of the kind: Type. [optional]
+ InstanceRef get superType;
+
+ /// A list of interface types for this class.
+ ///
+ /// The values will be of the kind: Type.
+ Iterable<InstanceRef> get interfaces;
+
+ /// The mixin type for this class, if any.
+ ///
+ /// The value will be of the kind: Type. [optional]
+ Iterable<InstanceRef> get mixin;
+
+ /// A list of fields in this class. Does not include fields from
+ /// superclasses.
+ //List<FieldRef> get fields;
+
+ /// A list of functions in this class. Does not include functions
+ /// from superclasses.
+ //List<FunctionRef> get functions;
+
+ // A list of subclasses of this class.
+ Iterable<ClassRef> get subclasses;
+}

Powered by Google App Engine
This is Rietveld 408576698