Let's name inner classes with an "_" where Java puts a "$", and do

automatic name translation for those names.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4129 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-05-19 02:23:47 +00:00
parent a2644d5c04
commit 7ec9c8d642
16 changed files with 46 additions and 58 deletions
+2 -2
View File
@@ -11,13 +11,13 @@ public class Translations
public static function getToServer (asName :String) :String
{
var javaName :String = (_toServer.get(asName) as String);
return (javaName == null) ? asName : javaName;
return (javaName == null) ? asName.replace("_", "$") : javaName;
}
public static function getFromServer (javaName :String) :String
{
var asName :String = (_fromServer.get(javaName) as String);
return (asName == null) ? javaName : asName;
return (asName == null) ? javaName.replace("$", "_") : asName;
}
public static function addTranslation (