| 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 /// |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 } | 46 } |
| 47 | 47 |
| 48 /// Stripped down super interface for field like entities. | 48 /// Stripped down super interface for field like entities. |
| 49 /// | 49 /// |
| 50 /// Currently only [FieldElement] but later also kernel based Dart fields | 50 /// Currently only [FieldElement] but later also kernel based Dart fields |
| 51 /// and/or Dart-in-JS field-like properties. | 51 /// and/or Dart-in-JS field-like properties. |
| 52 abstract class FieldEntity extends MemberEntity {} | 52 abstract class FieldEntity extends MemberEntity {} |
| 53 | 53 |
| 54 /// Stripped down super interface for function like entities. | 54 /// Stripped down super interface for function like entities. |
| 55 /// | 55 /// |
| 56 /// Currently only [FieldElement] but later also kernel based Dart constructors | 56 /// Currently only [MethodElement] but later also kernel based Dart constructors |
| 57 /// and methods and/or Dart-in-JS function-like properties. | 57 /// and methods and/or Dart-in-JS function-like properties. |
| 58 abstract class FunctionEntity extends MemberEntity {} | 58 abstract class FunctionEntity extends MemberEntity {} |
| 59 |
| 60 /// Stripped down super interface for constructor like entities. |
| 61 /// |
| 62 /// Currently only [ConstructorElement] but later also kernel based Dart |
| 63 /// constructors and/or Dart-in-JS constructor-like properties. |
| 64 // TODO(johnniwinther): Remove factory constructors from the set of |
| 65 // constructors. |
| 66 abstract class ConstructorEntity extends FunctionEntity { |
| 67 bool get isGenerativeConstructor; |
| 68 bool get isFactoryConstructor; |
| 69 } |
| OLD | NEW |