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