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

/*
 *
 * Copyright 2015 gRPC authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

#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 {};
}  // namespace

bool Generate(const Parser &parser, const std::string &path,
              const Version &version) {}

bool GenerateStub(const Parser &parser, const std::string &path,
                  const Version &version) {}

}  // namespace grpc
}  // namespace python
}  // namespace flatbuffers