| 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 LibraryRef extends ObjectRef { | 7 abstract class LibraryRef extends ObjectRef { |
| 8 /// The name of this library. | 8 /// The name of this library. |
| 9 String get name; | 9 String get name; |
| 10 | 10 |
| 11 /// The uri of this library. | 11 /// The uri of this library. |
| 12 String get uri; | 12 String get uri; |
| 13 } | 13 } |
| 14 | 14 |
| 15 abstract class Library extends Object implements LibraryRef { | 15 abstract class Library extends Object implements LibraryRef { |
| 16 /// Is this library debuggable? Default true. | 16 /// Is this library debuggable? Default true. |
| 17 //bool get debuggable; | 17 //bool get debuggable; |
| 18 | 18 |
| 19 /// A list of the imports for this library. | 19 /// A list of the imports for this library. |
| 20 //LibraryDependency[] dependencies; | 20 Iterable<LibraryDependency> get dependencies; |
| 21 | 21 |
| 22 // A list of the scripts which constitute this library. | 22 /// A list of the scripts which constitute this library. |
| 23 Iterable<ScriptRef> get scripts; | 23 Iterable<ScriptRef> get scripts; |
| 24 | 24 |
| 25 // A list of the top-level variables in this library. | 25 /// A list of the top-level variables in this library. |
| 26 //List<FieldRef> get variables; | 26 Iterable<FieldRef> get variables; |
| 27 | 27 |
| 28 // A list of the top-level functions in this library. | 28 /// A list of the top-level functions in this library. |
| 29 //List<FunctionRef> get functions; | 29 Iterable<FunctionRef> get functions; |
| 30 | 30 |
| 31 // A list of all classes in this library. | 31 /// A list of all classes in this library. |
| 32 Iterable<ClassRef> get classes; | 32 Iterable<ClassRef> get classes; |
| 33 |
| 34 ScriptRef get rootScript; |
| 35 String get vmName; |
| 33 } | 36 } |
| 37 |
| 38 abstract class LibraryDependency { |
| 39 bool get isImport; |
| 40 bool get isDeferred; |
| 41 LibraryRef get target; |
| 42 /// [optional] |
| 43 String get prefix; |
| 44 } |
| OLD | NEW |