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 30 matching lines...) Expand all Loading... |
41 js.Expression elementAccess(Element element) { | 41 js.Expression elementAccess(Element element) { |
42 return _namer.elementAccess(element); | 42 return _namer.elementAccess(element); |
43 } | 43 } |
44 | 44 |
45 String safeVariableName(String name) { | 45 String safeVariableName(String name) { |
46 return _namer.safeVariableName(name); | 46 return _namer.safeVariableName(name); |
47 } | 47 } |
48 | 48 |
49 ClassElement get listClass => _compiler.listClass; | 49 ClassElement get listClass => _compiler.listClass; |
50 | 50 |
| 51 ConstructorElement get mapLiteralConstructor { |
| 52 return _backend.mapLiteralConstructor; |
| 53 } |
| 54 |
| 55 ConstructorElement get mapLiteralConstructorEmpty { |
| 56 return _backend.mapLiteralConstructorEmpty; |
| 57 } |
| 58 |
51 FunctionElement get identicalFunction => _compiler.identicalFunction; | 59 FunctionElement get identicalFunction => _compiler.identicalFunction; |
52 | 60 |
53 String invocationName(Selector selector) { | 61 String invocationName(Selector selector) { |
54 return _namer.invocationName(selector); | 62 return _namer.invocationName(selector); |
55 } | 63 } |
56 | 64 |
57 bool isIntercepted(Selector selector) { | 65 bool isIntercepted(Selector selector) { |
58 return _backend.isInterceptedSelector(selector); | 66 return _backend.isInterceptedSelector(selector); |
59 } | 67 } |
60 | 68 |
61 } | 69 } |
OLD | NEW |