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

Unified Diff: pkg/dartino_compiler/lib/debug_state.dart

Issue 2065933004: Support for accessing arrays in the debugger (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Created 4 years, 6 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: pkg/dartino_compiler/lib/debug_state.dart
diff --git a/pkg/dartino_compiler/lib/debug_state.dart b/pkg/dartino_compiler/lib/debug_state.dart
index 7ddb2e877994c4cfce76118db95e2057b75e6ac7..96846c8714ede4212524123fb28674dd4bfe4627 100644
--- a/pkg/dartino_compiler/lib/debug_state.dart
+++ b/pkg/dartino_compiler/lib/debug_state.dart
@@ -12,6 +12,8 @@ import 'src/debug_info.dart';
import 'src/class_debug_info.dart';
import 'vm_commands.dart' show
+ Array,
+ ArrayStructure,
DartValue,
InstanceStructure;
@@ -36,6 +38,17 @@ class RemoteInstance extends RemoteObject {
RemoteInstance(this.instance, this.fields, {String name}) : super(name);
}
+/// A representation of a remote instance.
+class RemoteArray extends RemoteObject {
Søren Gjesse 2016/06/15 11:25:09 We probably need a mechanism here for handling lar
sigurdm 2016/06/15 14:50:49 I made an issue and a TODO.
+ /// An [Array] describing the remote instance.
+ final ArrayStructure array;
+
+ /// The values of the array as [DartValue]s of the remote instance.
+ final List<DartValue> values;
+
+ RemoteArray(this.array, this.values, {String name}) : super(name);
+}
+
/// A representation of a remote primitive value (i.e. used for non-instances).
class RemoteValue extends RemoteObject {
/// A [DartValue] describing the remote object.

Powered by Google App Engine
This is Rietveld 408576698