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 'package:front_end/src/fasta/parser/async_modifier.dart' | 7 import 'package:front_end/src/fasta/parser/async_modifier.dart' |
8 show AsyncModifier; | 8 show AsyncModifier; |
9 | 9 |
10 import '../common.dart'; | 10 import '../common.dart'; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 LibraryEntity get library; | 44 LibraryEntity get library; |
45 | 45 |
46 /// Whether this is a synthesized class for a closurized method or local | 46 /// Whether this is a synthesized class for a closurized method or local |
47 /// function. | 47 /// function. |
48 bool get isClosure; | 48 bool get isClosure; |
49 | 49 |
50 /// Whether this is an abstract class. | 50 /// Whether this is an abstract class. |
51 bool get isAbstract; | 51 bool get isAbstract; |
52 } | 52 } |
53 | 53 |
| 54 abstract class TypedefEntity extends Entity { |
| 55 LibraryEntity get library; |
| 56 } |
| 57 |
54 abstract class TypeVariableEntity extends Entity { | 58 abstract class TypeVariableEntity extends Entity { |
55 /// The class or generic method that declared this type variable. | 59 /// The class or generic method that declared this type variable. |
56 Entity get typeDeclaration; | 60 Entity get typeDeclaration; |
57 | 61 |
58 /// The index of this type variable in the type variables of its | 62 /// The index of this type variable in the type variables of its |
59 /// [typeDeclaration]. | 63 /// [typeDeclaration]. |
60 int get index; | 64 int get index; |
61 } | 65 } |
62 | 66 |
63 /// Stripped down super interface for member like entities, that is, | 67 /// Stripped down super interface for member like entities, that is, |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 /// The total number of parameters (required or optional). | 270 /// The total number of parameters (required or optional). |
267 int get totalParameters => positionalParameters + namedParameters.length; | 271 int get totalParameters => positionalParameters + namedParameters.length; |
268 | 272 |
269 /// Returns the [CallStructure] corresponding to a call site passing all | 273 /// Returns the [CallStructure] corresponding to a call site passing all |
270 /// parameters both required and optional. | 274 /// parameters both required and optional. |
271 CallStructure get callStructure { | 275 CallStructure get callStructure { |
272 return new CallStructure( | 276 return new CallStructure( |
273 positionalParameters + namedParameters.length, namedParameters); | 277 positionalParameters + namedParameters.length, namedParameters); |
274 } | 278 } |
275 } | 279 } |
OLD | NEW |