| 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 15 matching lines...) Expand all Loading... |
| 26 Entity get typeDeclaration; | 26 Entity get typeDeclaration; |
| 27 int get index; | 27 int get index; |
| 28 } | 28 } |
| 29 | 29 |
| 30 /// Stripped down super interface for member like entities, that is, | 30 /// Stripped down super interface for member like entities, that is, |
| 31 /// constructors, methods, fields etc. | 31 /// constructors, methods, fields etc. |
| 32 /// | 32 /// |
| 33 /// Currently only [MemberElement] but later also kernel based Dart members | 33 /// Currently only [MemberElement] but later also kernel based Dart members |
| 34 /// and/or Dart-in-JS properties. | 34 /// and/or Dart-in-JS properties. |
| 35 abstract class MemberEntity extends Entity { | 35 abstract class MemberEntity extends Entity { |
| 36 bool get isTopLevel; |
| 37 bool get isStatic; |
| 38 bool get isInstanceMember; |
| 36 bool get isConstructor; | 39 bool get isConstructor; |
| 37 bool get isField; | 40 bool get isField; |
| 38 bool get isFunction; | 41 bool get isFunction; |
| 39 bool get isGetter; | 42 bool get isGetter; |
| 40 bool get isSetter; | 43 bool get isSetter; |
| 41 bool get isAssignable; | 44 bool get isAssignable; |
| 42 ClassEntity get enclosingClass; | 45 ClassEntity get enclosingClass; |
| 43 } | 46 } |
| 44 | 47 |
| 45 /// Stripped down super interface for field like entities. | 48 /// Stripped down super interface for field like entities. |
| 46 /// | 49 /// |
| 47 /// Currently only [FieldElement] but later also kernel based Dart fields | 50 /// Currently only [FieldElement] but later also kernel based Dart fields |
| 48 /// and/or Dart-in-JS field-like properties. | 51 /// and/or Dart-in-JS field-like properties. |
| 49 abstract class FieldEntity extends MemberEntity {} | 52 abstract class FieldEntity extends MemberEntity {} |
| 50 | 53 |
| 51 /// Stripped down super interface for function like entities. | 54 /// Stripped down super interface for function like entities. |
| 52 /// | 55 /// |
| 53 /// Currently only [FieldElement] but later also kernel based Dart constructors | 56 /// Currently only [FieldElement] but later also kernel based Dart constructors |
| 54 /// and methods and/or Dart-in-JS function-like properties. | 57 /// and methods and/or Dart-in-JS function-like properties. |
| 55 abstract class FunctionEntity extends MemberEntity {} | 58 abstract class FunctionEntity extends MemberEntity {} |
| OLD | NEW |