| Index: frog/leg/ssa/js_names.dart
|
| ===================================================================
|
| --- frog/leg/ssa/js_names.dart (revision 3781)
|
| +++ frog/leg/ssa/js_names.dart (working copy)
|
| @@ -165,6 +165,12 @@
|
| return _reserved;
|
| }
|
|
|
| + // TODO(ngeoffray): only the namer should call this method.
|
| + // Eventually move it there.
|
| + /*
|
| + * Returns a name that does not clash with reserved JS keywords,
|
| + * and also ensures it won't clash with other identifiers.
|
| + */
|
| static String getValid(String name) {
|
| if (reserved.contains(name)) {
|
| name = '\$$name';
|
|
|