#include <map>
#include <sstream>
#include "flatbuffers/util.h"
#include "src/compiler/schema_interface.h"
#include "src/compiler/swift_generator.h"
namespace grpc_swift_generator {
namespace {
static std::string WrapInNameSpace(const std::vector<std::string> &components,
const grpc::string &name) { … }
static grpc::string GenerateMessage(const std::vector<std::string> &components,
const grpc::string &name) { … }
static void GenerateClientFuncName(const grpc_generator::Method *method,
grpc_generator::Printer *printer,
std::map<grpc::string, grpc::string> *dictonary) { … }
static void GenerateClientFuncBody(const grpc_generator::Method *method,
grpc_generator::Printer *printer,
std::map<grpc::string, grpc::string> *dictonary) { … }
void GenerateClientProtocol(const grpc_generator::Service *service,
grpc_generator::Printer *printer,
std::map<grpc::string, grpc::string> *dictonary) { … }
void GenerateClientClass(grpc_generator::Printer *printer,
std::map<grpc::string, grpc::string> *dictonary) { … }
grpc::string GenerateServerFuncName(const grpc_generator::Method *method) { … }
grpc::string GenerateServerExtensionBody(const grpc_generator::Method *method) { … }
void GenerateServerProtocol(const grpc_generator::Service *service,
grpc_generator::Printer *printer,
std::map<grpc::string, grpc::string> *dictonary) { … }
}
grpc::string Generate(grpc_generator::File *file,
const grpc_generator::Service *service) { … }
grpc::string GenerateHeader() { … }
}