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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 String JS_OPERATOR_IS_PREFIX() {} | 154 String JS_OPERATOR_IS_PREFIX() {} |
155 | 155 |
156 /** | 156 /** |
157 * Returns the prefix used for generated type argument substitutions on classes. | 157 * Returns the prefix used for generated type argument substitutions on classes. |
158 */ | 158 */ |
159 String JS_OPERATOR_AS_PREFIX() {} | 159 String JS_OPERATOR_AS_PREFIX() {} |
160 | 160 |
161 /// Returns the name of the class `Object` in the generated code. | 161 /// Returns the name of the class `Object` in the generated code. |
162 String JS_OBJECT_CLASS_NAME() {} | 162 String JS_OBJECT_CLASS_NAME() {} |
163 | 163 |
| 164 /// Returns the name of the class `Function` in the generated code. |
| 165 String JS_FUNCTION_CLASS_NAME() {} |
| 166 |
164 /** | 167 /** |
165 * Returns the field name used for determining if an object or its | 168 * Returns the field name used for determining if an object or its |
166 * interceptor has JavaScript indexing behavior. | 169 * interceptor has JavaScript indexing behavior. |
167 */ | 170 */ |
168 String JS_IS_INDEXABLE_FIELD_NAME() {} | 171 String JS_IS_INDEXABLE_FIELD_NAME() {} |
169 | 172 |
170 /** | 173 /** |
171 * Returns the object corresponding to Namer.CURRENT_ISOLATE. | 174 * Returns the object corresponding to Namer.CURRENT_ISOLATE. |
172 */ | 175 */ |
173 JS_CURRENT_ISOLATE() {} | 176 JS_CURRENT_ISOLATE() {} |
| 177 |
| 178 /// Returns the name used for generated function types on classes and methods. |
| 179 String JS_SIGNATURE_NAME() {} |
| 180 |
| 181 /// Returns the name used to tag function type representations in JavaScript. |
| 182 String JS_FUNCTION_TYPE_TAG() {} |
| 183 |
| 184 /** |
| 185 * Returns the name used to tag void return in function type representations |
| 186 * in JavaScript. |
| 187 */ |
| 188 String JS_FUNCTION_TYPE_VOID_RETURN_TAG() {} |
| 189 |
| 190 /** |
| 191 * Returns the name used to tag return types in function type representations |
| 192 * in JavaScript. |
| 193 */ |
| 194 String JS_FUNCTION_TYPE_RETURN_TYPE_TAG() {} |
| 195 |
| 196 /** |
| 197 * Returns the name used to tag required parameters in function type |
| 198 * representations in JavaScript. |
| 199 */ |
| 200 String JS_FUNCTION_TYPE_REQUIRED_PARAMETERS_TAG() {} |
| 201 |
| 202 /** |
| 203 * Returns the name used to tag optional parameters in function type |
| 204 * representations in JavaScript. |
| 205 */ |
| 206 String JS_FUNCTION_TYPE_OPTIONAL_PARAMETERS_TAG() {} |
| 207 |
| 208 /** |
| 209 * Returns the name used to tag named parameters in function type |
| 210 * representations in JavaScript. |
| 211 */ |
| 212 String JS_FUNCTION_TYPE_NAMED_PARAMETERS_TAG() {} |
| 213 |
| 214 /** |
| 215 * Returns the global object, usually called encoded as [: $ :]. |
| 216 */ |
| 217 JS_GLOBAL_OBJECT() {} |
OLD | NEW |