Chromium Code Reviews| 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. | |
| 10 /// | |
| 11 /// Currently only [LibraryElement] but later also kernel based Dart classes | |
| 12 /// and/or Dart-in-JS classes. | |
| 13 abstract class LibraryEntity extends Entity { | |
| 14 String get libraryName; | |
|
Siggi Cherem (dart-lang)
2017/01/12 00:00:33
I wonder if we actually ever want the libraryName
Johnni Winther
2017/01/12 12:29:05
We don't. I'd rather use [name] but it has differe
Siggi Cherem (dart-lang)
2017/01/12 18:36:53
is the idea then to remove this field and change i
Johnni Winther
2017/01/13 08:27:14
Will do.
| |
| 15 } | |
| 16 | |
| 9 /// Stripped down super interface for class like entities. | 17 /// Stripped down super interface for class like entities. |
| 10 /// | 18 /// |
| 11 /// Currently only [ClassElement] but later also kernel based Dart classes | 19 /// Currently only [ClassElement] but later also kernel based Dart classes |
| 12 /// and/or Dart-in-JS classes. | 20 /// and/or Dart-in-JS classes. |
| 13 abstract class ClassEntity extends Entity { | 21 abstract class ClassEntity extends Entity { |
| 14 bool get isClosure; | 22 bool get isClosure; |
| 15 } | 23 } |
| 16 | 24 |
| 17 abstract class TypeVariableEntity extends Entity { | 25 abstract class TypeVariableEntity extends Entity { |
| 18 Entity get typeDeclaration; | 26 Entity get typeDeclaration; |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 38 /// | 46 /// |
| 39 /// Currently only [FieldElement] but later also kernel based Dart fields | 47 /// Currently only [FieldElement] but later also kernel based Dart fields |
| 40 /// and/or Dart-in-JS field-like properties. | 48 /// and/or Dart-in-JS field-like properties. |
| 41 abstract class FieldEntity extends MemberEntity {} | 49 abstract class FieldEntity extends MemberEntity {} |
| 42 | 50 |
| 43 /// Stripped down super interface for function like entities. | 51 /// Stripped down super interface for function like entities. |
| 44 /// | 52 /// |
| 45 /// Currently only [FieldElement] but later also kernel based Dart constructors | 53 /// Currently only [FieldElement] but later also kernel based Dart constructors |
| 46 /// and methods and/or Dart-in-JS function-like properties. | 54 /// and methods and/or Dart-in-JS function-like properties. |
| 47 abstract class FunctionEntity extends MemberEntity {} | 55 abstract class FunctionEntity extends MemberEntity {} |
| OLD | NEW |