OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file |
| 4 |
| 5 part of models; |
| 6 |
| 7 abstract class ScriptRef extends ObjectRef { |
| 8 /// The uri from which this script was loaded. |
| 9 String get uri; |
| 10 } |
| 11 |
| 12 abstract class Script extends Object implements ScriptRef { |
| 13 /// The library which owns this script. |
| 14 // LibraryRef get library; |
| 15 |
| 16 /// The source code for this script. For certain built-in scripts, |
| 17 /// this may be reconstructed without source comments. |
| 18 String get source; |
| 19 |
| 20 int tokenToLine(int token); |
| 21 int tokenToCol(int token); |
| 22 } |
OLD | NEW |