| Index: frog/leg/namer.dart
|
| ===================================================================
|
| --- frog/leg/namer.dart (revision 3735)
|
| +++ frog/leg/namer.dart (working copy)
|
| @@ -66,10 +66,16 @@
|
| element.name, functionElement.parameterCount(compiler));
|
| } else {
|
| // TODO(floitsch): deal with named constructors.
|
| - String name = '${element.name}';
|
| - if (element.kind == ElementKind.FUNCTION) {
|
| + String name;
|
| + if (element.kind == ElementKind.GETTER) {
|
| + name = getterName(element.name);
|
| + } else if (element.kind == ElementKind.SETTER) {
|
| + name = setterName(element.name);
|
| + } else if (element.kind == ElementKind.FUNCTION) {
|
| FunctionElement functionElement = element;
|
| - name = '$name\$${functionElement.parameterCount(compiler)}';
|
| + name = '${element.name}\$${functionElement.parameterCount(compiler)}';
|
| + } else {
|
| + name = '${element.name}';
|
| }
|
| // Prefix the name with '$' if it is reserved.
|
| if (jsReserved.contains(name)) {
|
| @@ -126,6 +132,8 @@
|
| case ElementKind.FUNCTION:
|
| case ElementKind.CLASS:
|
| case ElementKind.FIELD:
|
| + case ElementKind.GETTER:
|
| + case ElementKind.SETTER:
|
| // We need to make sure the name is unique.
|
| int usedCount = usedGlobals[guess];
|
| if (usedCount === null) {
|
|
|