| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 { | 54 abstract class TypedefEntity extends Entity { |
| 55 /// The library in which the typedef was declared. |
| 55 LibraryEntity get library; | 56 LibraryEntity get library; |
| 56 } | 57 } |
| 57 | 58 |
| 58 abstract class TypeVariableEntity extends Entity { | 59 abstract class TypeVariableEntity extends Entity { |
| 59 /// The class or generic method that declared this type variable. | 60 /// The class or generic method that declared this type variable. |
| 60 Entity get typeDeclaration; | 61 Entity get typeDeclaration; |
| 61 | 62 |
| 62 /// The index of this type variable in the type variables of its | 63 /// The index of this type variable in the type variables of its |
| 63 /// [typeDeclaration]. | 64 /// [typeDeclaration]. |
| 64 int get index; | 65 int get index; |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 /// The total number of parameters (required or optional). | 273 /// The total number of parameters (required or optional). |
| 273 int get totalParameters => positionalParameters + namedParameters.length; | 274 int get totalParameters => positionalParameters + namedParameters.length; |
| 274 | 275 |
| 275 /// Returns the [CallStructure] corresponding to a call site passing all | 276 /// Returns the [CallStructure] corresponding to a call site passing all |
| 276 /// parameters both required and optional. | 277 /// parameters both required and optional. |
| 277 CallStructure get callStructure { | 278 CallStructure get callStructure { |
| 278 return new CallStructure( | 279 return new CallStructure( |
| 279 positionalParameters + namedParameters.length, namedParameters); | 280 positionalParameters + namedParameters.length, namedParameters); |
| 280 } | 281 } |
| 281 } | 282 } |
| OLD | NEW |