| 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 dart._foreign_helper; | 5 library dart._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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 arg1, | 111 arg1, |
| 112 arg2, | 112 arg2, |
| 113 arg3, | 113 arg3, |
| 114 arg4, | 114 arg4, |
| 115 arg5, | 115 arg5, |
| 116 arg6, | 116 arg6, |
| 117 arg7, | 117 arg7, |
| 118 arg8, | 118 arg8, |
| 119 arg9, | 119 arg9, |
| 120 arg10, | 120 arg10, |
| 121 arg11]) {} | 121 arg11, |
| 122 arg12, |
| 123 arg13, |
| 124 arg14, |
| 125 arg15, |
| 126 arg16, |
| 127 arg17, |
| 128 arg18, |
| 129 arg19]) {} |
| 122 | 130 |
| 123 /// Annotates the compiled Js name for fields and methods. | 131 /// Annotates the compiled Js name for fields and methods. |
| 124 /// Similar behaviour to `JS` from `package:js/js.dart` (but usable from runtime | 132 /// Similar behaviour to `JS` from `package:js/js.dart` (but usable from runtime |
| 125 /// files), and not to be confused with `JSName` from `js_helper` (which deals | 133 /// files), and not to be confused with `JSName` from `js_helper` (which deals |
| 126 /// with names of externs). | 134 /// with names of externs). |
| 127 class JSExportName { | 135 class JSExportName { |
| 128 final String name; | 136 final String name; |
| 129 const JSExportName(this.name); | 137 const JSExportName(this.name); |
| 130 } | 138 } |
| 131 | 139 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 class _Rest { | 310 class _Rest { |
| 303 const _Rest(); | 311 const _Rest(); |
| 304 } | 312 } |
| 305 | 313 |
| 306 const _Rest rest = const _Rest(); | 314 const _Rest rest = const _Rest(); |
| 307 | 315 |
| 308 dynamic spread(args) { | 316 dynamic spread(args) { |
| 309 throw new StateError('The spread function cannot be called, ' | 317 throw new StateError('The spread function cannot be called, ' |
| 310 'it should be compiled away.'); | 318 'it should be compiled away.'); |
| 311 } | 319 } |
| OLD | NEW |