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

Unified Diff: runtime/observatory/lib/src/service/object.dart

Issue 2119733003: Wrapping leaf nodes in non polymer elements (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Converted script-link 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/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'];
}

Powered by Google App Engine
This is Rietveld 408576698