chromium/third_party/flatbuffers/src/grpc/src/compiler/go_generator.cc

#include "src/compiler/go_generator.h"

#include <cctype>
#include <map>
#include <sstream>

template<class T> grpc::string as_string(T x) {}

inline bool ClientOnlyStreaming(const grpc_generator::Method *method) {}

inline bool ServerOnlyStreaming(const grpc_generator::Method *method) {}

namespace grpc_go_generator {
namespace {

// Returns string with first letter to lowerCase
static grpc::string unexportName(grpc::string s) {}

// Returns string with first letter to uppercase
static grpc::string exportName(grpc::string s) {}

static void GenerateError(grpc_generator::Printer *printer,
                   std::map<grpc::string, grpc::string> vars,
                   const bool multiple_return = true) {}

// Generates imports for the service
static void GenerateImports(grpc_generator::File *file,
                     grpc_generator::Printer *printer,
                     std::map<grpc::string, grpc::string> vars) {}

// Generates Server method signature source
static void GenerateServerMethodSignature(const grpc_generator::Method *method,
                                   grpc_generator::Printer *printer,
                                   std::map<grpc::string, grpc::string> vars) {}

static void GenerateServerMethod(const grpc_generator::Method *method,
                          grpc_generator::Printer *printer,
                          std::map<grpc::string, grpc::string> vars) {}

// Generates Client method signature source
static void GenerateClientMethodSignature(const grpc_generator::Method *method,
                                   grpc_generator::Printer *printer,
                                   std::map<grpc::string, grpc::string> vars) {}

// Generates Client method source
static void GenerateClientMethod(const grpc_generator::Method *method,
                          grpc_generator::Printer *printer,
                          std::map<grpc::string, grpc::string> vars) {}

// Generates client API for the service
void GenerateService(const grpc_generator::Service *service,
                     grpc_generator::Printer *printer,
                     std::map<grpc::string, grpc::string> vars) {}
}  // namespace

// Returns source for the service
grpc::string GenerateServiceSource(grpc_generator::File *file,
                                   const grpc_generator::Service *service,
                                   grpc_go_generator::Parameters *parameters) {}
}  // Namespace grpc_go_generator