| 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 import '../common.dart'; | 5 import '../common.dart'; |
| 6 import '../compiler.dart' show Compiler; | 6 import '../compiler.dart' show Compiler; |
| 7 import '../constants/values.dart'; | 7 import '../constants/values.dart'; |
| 8 import '../dart_types.dart'; | 8 import '../elements/resolution_types.dart'; |
| 9 import '../elements/elements.dart'; | 9 import '../elements/elements.dart'; |
| 10 import '../io/code_output.dart'; | 10 import '../io/code_output.dart'; |
| 11 import '../js/js.dart' as jsAst; | 11 import '../js/js.dart' as jsAst; |
| 12 import '../js/js.dart' show js; | 12 import '../js/js.dart' show js; |
| 13 import 'backend.dart'; | 13 import 'backend.dart'; |
| 14 import 'constant_system_javascript.dart'; | 14 import 'constant_system_javascript.dart'; |
| 15 import 'namer.dart'; | 15 import 'namer.dart'; |
| 16 | 16 |
| 17 typedef jsAst.Expression _ConstantReferenceGenerator(ConstantValue constant); | 17 typedef jsAst.Expression _ConstantReferenceGenerator(ConstantValue constant); |
| 18 | 18 |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 arguments.add(rtiEncoder.getTypeRepresentation(argument, unexpected)); | 349 arguments.add(rtiEncoder.getTypeRepresentation(argument, unexpected)); |
| 350 } | 350 } |
| 351 return new jsAst.ArrayInitializer(arguments); | 351 return new jsAst.ArrayInitializer(arguments); |
| 352 } | 352 } |
| 353 | 353 |
| 354 @override | 354 @override |
| 355 jsAst.Expression visitDeferred(DeferredConstantValue constant, [_]) { | 355 jsAst.Expression visitDeferred(DeferredConstantValue constant, [_]) { |
| 356 return constantReferenceGenerator(constant.referenced); | 356 return constantReferenceGenerator(constant.referenced); |
| 357 } | 357 } |
| 358 } | 358 } |
| OLD | NEW |