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/tasks.dart' show | 7 import 'common/tasks.dart' show |
8 CompilerTask; | 8 CompilerTask; |
9 import 'compiler.dart' show | 9 import 'compiler.dart' show |
10 Compiler; | 10 Compiler; |
11 import 'constants/expressions.dart'; | 11 import 'constants/expressions.dart'; |
12 import 'dart_types.dart'; | 12 import 'dart_types.dart'; |
13 import 'diagnostics/diagnostic_listener.dart'; | 13 import 'diagnostics/diagnostic_listener.dart'; |
14 import 'diagnostics/spannable.dart' show | 14 import 'diagnostics/spannable.dart' show |
15 SpannableAssertionFailure; | 15 SpannableAssertionFailure; |
16 import 'elements/elements.dart'; | 16 import 'elements/elements.dart'; |
17 import 'elements/modelx.dart' show | 17 import 'elements/modelx.dart' show |
18 BaseFunctionElementX, | 18 BaseFunctionElementX, |
19 ClassElementX, | 19 ClassElementX, |
20 ElementX, | 20 ElementX, |
21 LocalFunctionElementX; | 21 LocalFunctionElementX; |
22 import 'elements/visitor.dart' show ElementVisitor; | 22 import 'elements/visitor.dart' show ElementVisitor; |
23 import 'js_backend/js_backend.dart' show JavaScriptBackend; | 23 import 'js_backend/js_backend.dart' show JavaScriptBackend; |
24 import 'resolution/resolution.dart' show TreeElements; | 24 import 'resolution/tree_elements.dart' show TreeElements; |
25 import 'scanner/scannerlib.dart' show Token; | 25 import 'scanner/scannerlib.dart' show Token; |
26 import 'tree/tree.dart'; | 26 import 'tree/tree.dart'; |
27 import 'util/util.dart'; | 27 import 'util/util.dart'; |
28 import 'universe/universe.dart' show | 28 import 'universe/universe.dart' show |
29 Universe; | 29 Universe; |
30 | 30 |
31 class ClosureTask extends CompilerTask { | 31 class ClosureTask extends CompilerTask { |
32 Map<Node, ClosureClassMap> closureMappingCache; | 32 Map<Node, ClosureClassMap> closureMappingCache; |
33 ClosureTask(Compiler compiler) | 33 ClosureTask(Compiler compiler) |
34 : closureMappingCache = new Map<Node, ClosureClassMap>(), | 34 : closureMappingCache = new Map<Node, ClosureClassMap>(), |
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1119 | 1119 |
1120 String get name => typeVariable.name; | 1120 String get name => typeVariable.name; |
1121 | 1121 |
1122 int get hashCode => typeVariable.hashCode; | 1122 int get hashCode => typeVariable.hashCode; |
1123 | 1123 |
1124 bool operator ==(other) { | 1124 bool operator ==(other) { |
1125 if (other is! TypeVariableLocal) return false; | 1125 if (other is! TypeVariableLocal) return false; |
1126 return typeVariable == other.typeVariable; | 1126 return typeVariable == other.typeVariable; |
1127 } | 1127 } |
1128 } | 1128 } |
OLD | NEW |