moved to HaxeGenerator