OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 dart2js.resolution.signatures; | 5 library dart2js.resolution.signatures; |
6 | 6 |
7 import '../common.dart'; | 7 import '../common.dart'; |
8 import '../common/resolution.dart'; | 8 import '../common/resolution.dart'; |
9 import '../elements/resolution_types.dart'; | 9 import '../elements/resolution_types.dart'; |
10 import '../elements/elements.dart'; | 10 import '../elements/elements.dart'; |
11 import '../elements/modelx.dart' | 11 import '../elements/modelx.dart' |
12 show | 12 show |
13 ErroneousFieldElementX, | 13 ErroneousFieldElementX, |
14 ErroneousInitializingFormalElementX, | 14 ErroneousInitializingFormalElementX, |
15 FormalElementX, | 15 FormalElementX, |
16 FunctionSignatureX, | 16 FunctionSignatureX, |
17 InitializingFormalElementX, | 17 InitializingFormalElementX, |
18 LocalParameterElementX, | 18 LocalParameterElementX, |
19 TypeVariableElementX; | 19 TypeVariableElementX; |
20 import '../tree/tree.dart'; | 20 import '../tree/tree.dart'; |
21 import '../universe/use.dart' show TypeUse; | |
22 import '../util/util.dart' show Link, LinkBuilder; | 21 import '../util/util.dart' show Link, LinkBuilder; |
23 import 'members.dart' show ResolverVisitor; | 22 import 'members.dart' show ResolverVisitor; |
24 import 'registry.dart' show ResolutionRegistry; | 23 import 'registry.dart' show ResolutionRegistry; |
25 import 'resolution_common.dart' show MappingVisitor; | 24 import 'resolution_common.dart' show MappingVisitor; |
26 import 'scope.dart' show Scope, TypeVariablesScope; | 25 import 'scope.dart' show Scope, TypeVariablesScope; |
27 | 26 |
28 /** | 27 /** |
29 * [SignatureResolver] resolves function signatures. | 28 * [SignatureResolver] resolves function signatures. |
30 */ | 29 */ |
31 class SignatureResolver extends MappingVisitor<FormalElementX> { | 30 class SignatureResolver extends MappingVisitor<FormalElementX> { |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 /// variables of the function signature itself when its signature is analyzed. | 484 /// variables of the function signature itself when its signature is analyzed. |
486 class FunctionSignatureBuildingScope extends TypeVariablesScope { | 485 class FunctionSignatureBuildingScope extends TypeVariablesScope { |
487 @override | 486 @override |
488 final List<ResolutionDartType> typeVariables; | 487 final List<ResolutionDartType> typeVariables; |
489 | 488 |
490 FunctionSignatureBuildingScope(Scope parent, this.typeVariables) | 489 FunctionSignatureBuildingScope(Scope parent, this.typeVariables) |
491 : super(parent); | 490 : super(parent); |
492 | 491 |
493 String toString() => 'FunctionSignatureBuildingScope($typeVariables)'; | 492 String toString() => 'FunctionSignatureBuildingScope($typeVariables)'; |
494 } | 493 } |
OLD | NEW |