Index: runtime/observatory/lib/src/service/object.dart |
diff --git a/runtime/observatory/lib/src/service/object.dart b/runtime/observatory/lib/src/service/object.dart |
index 18d29bf838d2fc9bc449a5c960b14712118ba2d1..d8945b2891d4c0a87088e01b6282d70081634783 100644 |
--- a/runtime/observatory/lib/src/service/object.dart |
+++ b/runtime/observatory/lib/src/service/object.dart |
@@ -424,7 +424,8 @@ abstract class Location { |
} |
/// A [SourceLocation] represents a location or range in the source code. |
-class SourceLocation extends ServiceObject implements Location { |
+class SourceLocation extends ServiceObject implements Location, |
+ M.SourceLocation { |
Script script; |
int tokenPos; |
int endTokenPos; |
@@ -1117,7 +1118,7 @@ class HeapSnapshot { |
} |
/// State for a running isolate. |
-class Isolate extends ServiceObjectOwner { |
+class Isolate extends ServiceObjectOwner implements M.Isolate { |
static const kLoggingStream = '_Logging'; |
static const kExtensionStream = 'Extension'; |
@@ -2918,7 +2919,7 @@ class LocalVarLocation { |
LocalVarLocation(this.line, this.column, this.endColumn); |
} |
-class Script extends HeapObject { |
+class Script extends HeapObject implements M.Script { |
final lines = new ObservableList<ScriptLine>(); |
@observable String uri; |
@observable String kind; |
@@ -2929,6 +2930,8 @@ class Script extends HeapObject { |
@observable int columnOffset; |
@observable Library library; |
+ String source; |
+ |
bool get immutable => true; |
String _shortUri; |
@@ -3030,6 +3033,7 @@ class Script extends HeapObject { |
lineOffset = map['lineOffset']; |
columnOffset = map['columnOffset']; |
_parseTokenPosTable(map['tokenPosTable']); |
+ source = map['source']; |
_processSource(map['source']); |
library = map['library']; |
} |