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 code_generator_dependencies; | 5 library code_generator_dependencies; |
6 | 6 |
7 import '../js_backend.dart'; | 7 import '../js_backend.dart'; |
8 import '../../dart2jslib.dart'; | 8 import '../../dart2jslib.dart'; |
9 import '../../js_emitter/js_emitter.dart'; | 9 import '../../js_emitter/js_emitter.dart'; |
10 import '../../js/js.dart' as js; | 10 import '../../js/js.dart' as js; |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 | 205 |
206 bool isBoolClass(ClassElement cls) => cls == _compiler.boolClass; | 206 bool isBoolClass(ClassElement cls) => cls == _compiler.boolClass; |
207 | 207 |
208 bool isNumClass(ClassElement cls) => cls == _compiler.numClass; | 208 bool isNumClass(ClassElement cls) => cls == _compiler.numClass; |
209 | 209 |
210 bool isDoubleClass(ClassElement cls) => cls == _compiler.doubleClass; | 210 bool isDoubleClass(ClassElement cls) => cls == _compiler.doubleClass; |
211 | 211 |
212 String getTypeTestTag(DartType type) { | 212 String getTypeTestTag(DartType type) { |
213 return _backend.namer.operatorIsType(type); | 213 return _backend.namer.operatorIsType(type); |
214 } | 214 } |
| 215 |
| 216 bool operatorEqHandlesNullArgument(FunctionElement element) { |
| 217 return _backend.operatorEqHandlesNullArgument(element); |
| 218 } |
215 } | 219 } |
OLD | NEW |