#include "src/compiler/python_generator.h"
#include <algorithm>
#include <cstddef>
#include <map>
#include <set>
#include <sstream>
#include <string>
#include "codegen/idl_namer.h"
#include "codegen/namer.h"
#include "codegen/python.h"
#include "flatbuffers/idl.h"
#include "flatbuffers/util.h"
namespace flatbuffers {
namespace python {
namespace grpc {
namespace {
bool ClientStreaming(const RPCCall *method) { … }
bool ServerStreaming(const RPCCall *method) { … }
void FormatImports(std::stringstream &ss, const Imports &imports) { … }
bool SaveStub(const std::string &filename, const Imports &imports,
const std::string &content) { … }
bool SaveService(const std::string &filename, const Imports &imports,
const std::string &content) { … }
class BaseGenerator { … };
class StubGenerator : public BaseGenerator { … };
class ServiceGenerator : public BaseGenerator { … };
}
bool Generate(const Parser &parser, const std::string &path,
const Version &version) { … }
bool GenerateStub(const Parser &parser, const std::string &path,
const Version &version) { … }
}
}
}