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 _foreign_helper; | 5 library _foreign_helper; |
6 | 6 |
7 /** | 7 /** |
8 * Emits a JavaScript code fragment parameterized by arguments. | 8 * Emits a JavaScript code fragment parameterized by arguments. |
9 * | 9 * |
10 * Hash characters `#` in the [codeTemplate] are replaced in left-to-right order | 10 * Hash characters `#` in the [codeTemplate] are replaced in left-to-right order |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 } | 281 } |
282 | 282 |
283 /** | 283 /** |
284 * JavaScript string concatenation. Inputs must be Strings. Corresponds to the | 284 * JavaScript string concatenation. Inputs must be Strings. Corresponds to the |
285 * HStringConcat SSA instruction and may be constant-folded. | 285 * HStringConcat SSA instruction and may be constant-folded. |
286 */ | 286 */ |
287 String JS_STRING_CONCAT(String a, String b) { | 287 String JS_STRING_CONCAT(String a, String b) { |
288 // This body is unused, only here for type analysis. | 288 // This body is unused, only here for type analysis. |
289 return JS('String', '# + #', a, b); | 289 return JS('String', '# + #', a, b); |
290 } | 290 } |
OLD | NEW |