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

Side by Side Diff: runtime/observatory/lib/src/models/objects/script.dart

Issue 2277543004: Converted Observatory script-inset & source-inset elements (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Converted Observatory eval-box element Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of models; 5 part of models;
6 6
7 abstract class ScriptRef extends ObjectRef { 7 abstract class ScriptRef extends ObjectRef {
8 /// The uri from which this script was loaded. 8 /// The uri from which this script was loaded.
9 String get uri; 9 String get uri;
10 } 10 }
11 11
12 abstract class Script extends Object implements ScriptRef { 12 abstract class Script extends Object implements ScriptRef {
13 /// The library which owns this script. 13 /// The library which owns this script.
14 // LibraryRef get library; 14 LibraryRef get library;
15 15
16 /// The source code for this script. For certain built-in scripts, 16 /// The source code for this script. For certain built-in scripts,
17 /// this may be reconstructed without source comments. 17 /// this may be reconstructed without source comments.
18 String get source; 18 String get source;
19 19
20 DateTime get loadTime;
21 int get firstTokenPos;
22 int get lastTokenPos;
23 int get lineOffset;
24 int get columnOffset;
25
20 int tokenToLine(int token); 26 int tokenToLine(int token);
21 int tokenToCol(int token); 27 int tokenToCol(int token);
22 } 28 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698