| 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 '../elements/resolution_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'; |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 reporter.internalError( | 339 reporter.internalError( |
| 340 NO_LOCATION_SPANNABLE, | 340 NO_LOCATION_SPANNABLE, |
| 341 "Unexpected type variable '${variable.getStringAsDeclared(null)}'" | 341 "Unexpected type variable '${variable.getStringAsDeclared(null)}'" |
| 342 " in constant type '${type.getStringAsDeclared(null)}'"); | 342 " in constant type '${type.getStringAsDeclared(null)}'"); |
| 343 return null; | 343 return null; |
| 344 } | 344 } |
| 345 | 345 |
| 346 List<jsAst.Expression> arguments = <jsAst.Expression>[]; | 346 List<jsAst.Expression> arguments = <jsAst.Expression>[]; |
| 347 RuntimeTypesEncoder rtiEncoder = backend.rtiEncoder; | 347 RuntimeTypesEncoder rtiEncoder = backend.rtiEncoder; |
| 348 for (ResolutionDartType argument in type.typeArguments) { | 348 for (ResolutionDartType argument in type.typeArguments) { |
| 349 arguments.add(rtiEncoder.getTypeRepresentation(argument, unexpected)); | 349 arguments.add(rtiEncoder.getTypeRepresentation( |
| 350 backend.emitter.emitter, argument, unexpected)); |
| 350 } | 351 } |
| 351 return new jsAst.ArrayInitializer(arguments); | 352 return new jsAst.ArrayInitializer(arguments); |
| 352 } | 353 } |
| 353 | 354 |
| 354 @override | 355 @override |
| 355 jsAst.Expression visitDeferred(DeferredConstantValue constant, [_]) { | 356 jsAst.Expression visitDeferred(DeferredConstantValue constant, [_]) { |
| 356 return constantReferenceGenerator(constant.referenced); | 357 return constantReferenceGenerator(constant.referenced); |
| 357 } | 358 } |
| 358 } | 359 } |
| OLD | NEW |