OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 closureToClassMapper; | 5 library closureToClassMapper; |
6 | 6 |
7 import 'common/names.dart' show | 7 import 'common/names.dart' show |
8 Identifiers; | 8 Identifiers; |
9 import 'common/tasks.dart' show | 9 import 'common/tasks.dart' show |
10 CompilerTask; | 10 CompilerTask; |
11 import 'compiler.dart' show | 11 import 'compiler.dart' show |
12 Compiler; | 12 Compiler; |
13 import 'constants/expressions.dart'; | 13 import 'constants/expressions.dart'; |
14 import 'dart_types.dart'; | 14 import 'dart_types.dart'; |
15 import 'diagnostics/diagnostic_listener.dart'; | 15 import 'diagnostics/diagnostic_listener.dart'; |
16 import 'diagnostics/spannable.dart' show | 16 import 'diagnostics/spannable.dart' show |
17 SpannableAssertionFailure; | 17 SpannableAssertionFailure; |
18 import 'elements/elements.dart'; | 18 import 'elements/elements.dart'; |
19 import 'elements/modelx.dart' show | 19 import 'elements/modelx.dart' show |
20 BaseFunctionElementX, | 20 BaseFunctionElementX, |
21 ClassElementX, | 21 ClassElementX, |
22 ElementX, | 22 ElementX, |
23 LocalFunctionElementX; | 23 LocalFunctionElementX; |
24 import 'elements/visitor.dart' show ElementVisitor; | 24 import 'elements/visitor.dart' show ElementVisitor; |
25 import 'js_backend/js_backend.dart' show JavaScriptBackend; | 25 import 'js_backend/js_backend.dart' show JavaScriptBackend; |
26 import 'resolution/tree_elements.dart' show TreeElements; | 26 import 'resolution/tree_elements.dart' show TreeElements; |
27 import 'scanner/token.dart' show Token; | 27 import 'tokens/token.dart' show Token; |
28 import 'tree/tree.dart'; | 28 import 'tree/tree.dart'; |
29 import 'util/util.dart'; | 29 import 'util/util.dart'; |
30 import 'universe/universe.dart' show | 30 import 'universe/universe.dart' show |
31 Universe; | 31 Universe; |
32 | 32 |
33 class ClosureTask extends CompilerTask { | 33 class ClosureTask extends CompilerTask { |
34 Map<Node, ClosureClassMap> closureMappingCache; | 34 Map<Node, ClosureClassMap> closureMappingCache; |
35 ClosureTask(Compiler compiler) | 35 ClosureTask(Compiler compiler) |
36 : closureMappingCache = new Map<Node, ClosureClassMap>(), | 36 : closureMappingCache = new Map<Node, ClosureClassMap>(), |
37 super(compiler); | 37 super(compiler); |
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1122 | 1122 |
1123 String get name => typeVariable.name; | 1123 String get name => typeVariable.name; |
1124 | 1124 |
1125 int get hashCode => typeVariable.hashCode; | 1125 int get hashCode => typeVariable.hashCode; |
1126 | 1126 |
1127 bool operator ==(other) { | 1127 bool operator ==(other) { |
1128 if (other is! TypeVariableLocal) return false; | 1128 if (other is! TypeVariableLocal) return false; |
1129 return typeVariable == other.typeVariable; | 1129 return typeVariable == other.typeVariable; |
1130 } | 1130 } |
1131 } | 1131 } |
OLD | NEW |