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