| OLD | NEW |
| 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 } |
| OLD | NEW |