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

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

Issue 2244433003: Converted Observatory refs elements (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged with master 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 side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/lib/src/models/objects/guarded.dart
diff --git a/runtime/observatory/lib/src/models/repositories/script.dart b/runtime/observatory/lib/src/models/objects/guarded.dart
similarity index 67%
copy from runtime/observatory/lib/src/models/repositories/script.dart
copy to runtime/observatory/lib/src/models/objects/guarded.dart
index 3073c2ea21e74d7dad726b76e2043a83e3a32a3a..82bf1eeee8d1e02163968c1cf8827c8d491a101c 100644
--- a/runtime/observatory/lib/src/models/repositories/script.dart
+++ b/runtime/observatory/lib/src/models/objects/guarded.dart
@@ -4,6 +4,9 @@
part of models;
-abstract class ScriptRepository {
- Future<Script> get(String id);
+abstract class Guarded<T> {
+ bool get isValue;
+ bool get isSentinel;
+ Sentinel get asSentinel;
+ T get asValue;
}
« no previous file with comments | « runtime/observatory/lib/src/models/objects/field.dart ('k') | runtime/observatory/lib/src/models/objects/icdata.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698