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

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

Issue 2277543004: Converted Observatory script-inset & source-inset elements (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fixed long line 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/source_location.dart
diff --git a/runtime/observatory/lib/src/models/objects/source_location.dart b/runtime/observatory/lib/src/models/objects/source_location.dart
index dd9f663c548545fb6179960b82e7e375201129e1..5fc8b6cf8198a1050983c5495310324906e30120 100644
--- a/runtime/observatory/lib/src/models/objects/source_location.dart
+++ b/runtime/observatory/lib/src/models/objects/source_location.dart
@@ -4,11 +4,28 @@
part of models;
-abstract class SourceLocation {
+abstract class Location {
/// The script containing the source location.
ScriptRef get script;
- /// The first token of the location.
+ /// The last token of the location if this is a range. [optional]
+ int get tokenPos;
+}
+
+abstract class SourceLocation implements Location {
+ /// The last token of the location if this is a range.
int get tokenPos;
/// The last token of the location if this is a range. [optional]
int get endTokenPos;
}
+
+abstract class UnresolvedSourceLocation implements Location {
+ // [optional] The uri of the script containing the source location if the
+ // script has yet to be loaded.
+ String get scriptUri;
+ /// [optional] An approximate line number for the source location. This may
+ /// change when the location is resolved.
+ int get line;
+ /// [optional] An approximate column number for the source location. This may
+ /// change when the location is resolved.
+ int get column;
+}
« no previous file with comments | « runtime/observatory/lib/src/models/objects/script.dart ('k') | runtime/observatory/lib/src/models/repositories/eval.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698