| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 part of js_backend; | 5 part of js_backend; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * Assigns JavaScript identifiers to Dart variables, class-names and members. | 8 * Assigns JavaScript identifiers to Dart variables, class-names and members. |
| 9 * | 9 * |
| 10 * Names are generated through three stages: | 10 * Names are generated through three stages: |
| (...skipping 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1384 String get operatorIsPrefix => r'$is'; | 1384 String get operatorIsPrefix => r'$is'; |
| 1385 | 1385 |
| 1386 String get operatorAsPrefix => r'$as'; | 1386 String get operatorAsPrefix => r'$as'; |
| 1387 | 1387 |
| 1388 String get operatorSignature => r'$signature'; | 1388 String get operatorSignature => r'$signature'; |
| 1389 | 1389 |
| 1390 String get typedefTag => r'typedef'; | 1390 String get typedefTag => r'typedef'; |
| 1391 | 1391 |
| 1392 String get functionTypeTag => r'func'; | 1392 String get functionTypeTag => r'func'; |
| 1393 | 1393 |
| 1394 String get functionTypeVoidReturnTag => r'void'; | 1394 String get functionTypeVoidReturnTag => r'v'; |
| 1395 | 1395 |
| 1396 String get functionTypeReturnTypeTag => r'ret'; | 1396 String get functionTypeReturnTypeTag => r'ret'; |
| 1397 | 1397 |
| 1398 String get functionTypeRequiredParametersTag => r'args'; | 1398 String get functionTypeRequiredParametersTag => r'args'; |
| 1399 | 1399 |
| 1400 String get functionTypeOptionalParametersTag => r'opt'; | 1400 String get functionTypeOptionalParametersTag => r'opt'; |
| 1401 | 1401 |
| 1402 String get functionTypeNamedParametersTag => r'named'; | 1402 String get functionTypeNamedParametersTag => r'named'; |
| 1403 | 1403 |
| 1404 Map<FunctionType, jsAst.Name> functionTypeNameMap = | 1404 Map<FunctionType, jsAst.Name> functionTypeNameMap = |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1993 } | 1993 } |
| 1994 } | 1994 } |
| 1995 } | 1995 } |
| 1996 } | 1996 } |
| 1997 | 1997 |
| 1998 enum NamingScope { | 1998 enum NamingScope { |
| 1999 global, | 1999 global, |
| 2000 instance, | 2000 instance, |
| 2001 constant | 2001 constant |
| 2002 } | 2002 } |
| OLD | NEW |