| 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 library entities; | 5 library entities; |
| 6 | 6 |
| 7 import 'elements.dart' show Entity; | 7 import 'elements.dart' show Entity; |
| 8 | 8 |
| 9 /// Stripped down super interface for library like entities. | 9 /// Stripped down super interface for library like entities. |
| 10 /// | 10 /// |
| 11 /// Currently only [LibraryElement] but later also kernel based Dart classes | 11 /// Currently only [LibraryElement] but later also kernel based Dart classes |
| 12 /// and/or Dart-in-JS classes. | 12 /// and/or Dart-in-JS classes. |
| 13 abstract class LibraryEntity extends Entity { | 13 abstract class LibraryEntity extends Entity { |
| 14 String get libraryName; | |
| 15 } | 14 } |
| 16 | 15 |
| 17 /// Stripped down super interface for class like entities. | 16 /// Stripped down super interface for class like entities. |
| 18 /// | 17 /// |
| 19 /// Currently only [ClassElement] but later also kernel based Dart classes | 18 /// Currently only [ClassElement] but later also kernel based Dart classes |
| 20 /// and/or Dart-in-JS classes. | 19 /// and/or Dart-in-JS classes. |
| 21 abstract class ClassEntity extends Entity { | 20 abstract class ClassEntity extends Entity { |
| 22 bool get isClosure; | 21 bool get isClosure; |
| 23 } | 22 } |
| 24 | 23 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 46 /// | 45 /// |
| 47 /// Currently only [FieldElement] but later also kernel based Dart fields | 46 /// Currently only [FieldElement] but later also kernel based Dart fields |
| 48 /// and/or Dart-in-JS field-like properties. | 47 /// and/or Dart-in-JS field-like properties. |
| 49 abstract class FieldEntity extends MemberEntity {} | 48 abstract class FieldEntity extends MemberEntity {} |
| 50 | 49 |
| 51 /// Stripped down super interface for function like entities. | 50 /// Stripped down super interface for function like entities. |
| 52 /// | 51 /// |
| 53 /// Currently only [FieldElement] but later also kernel based Dart constructors | 52 /// Currently only [FieldElement] but later also kernel based Dart constructors |
| 54 /// and methods and/or Dart-in-JS function-like properties. | 53 /// and methods and/or Dart-in-JS function-like properties. |
| 55 abstract class FunctionEntity extends MemberEntity {} | 54 abstract class FunctionEntity extends MemberEntity {} |
| OLD | NEW |