chromium/third_party/grpc/src/src/compiler/objective_c_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/objective_c_generator.h"

#include <map>
#include <set>
#include <sstream>

#include <google/protobuf/compiler/objectivec/objectivec_helpers.h>

#include "src/compiler/config.h"
#include "src/compiler/objective_c_generator_helpers.h"

ClassName;
FileDescriptor;
MethodDescriptor;
ServiceDescriptor;
Printer;
map;
set;

namespace grpc_objective_c_generator {
namespace {

void PrintProtoRpcDeclarationAsPragma(Printer* printer,
                                      const MethodDescriptor* method,
                                      map< ::std::string, ::std::string> vars) {}

template <typename DescriptorType>
static void PrintAllComments(const DescriptorType* desc, Printer* printer,
                             bool deprecated = false) {}

void PrintMethodSignature(Printer* printer, const MethodDescriptor* method,
                          const map< ::std::string, ::std::string>& vars) {}

void PrintSimpleSignature(Printer* printer, const MethodDescriptor* method,
                          map< ::std::string, ::std::string> vars) {}

void PrintAdvancedSignature(Printer* printer, const MethodDescriptor* method,
                            map< ::std::string, ::std::string> vars) {}

void PrintV2Signature(Printer* printer, const MethodDescriptor* method,
                      map< ::std::string, ::std::string> vars) {}

inline map< ::std::string, ::std::string> GetMethodVars(
    const MethodDescriptor* method) {}

void PrintMethodDeclarations(Printer* printer, const MethodDescriptor* method) {}

void PrintV2MethodDeclarations(Printer* printer,
                               const MethodDescriptor* method) {}

void PrintSimpleImplementation(Printer* printer, const MethodDescriptor* method,
                               map< ::std::string, ::std::string> vars) {}

void PrintAdvancedImplementation(Printer* printer,
                                 const MethodDescriptor* method,
                                 map< ::std::string, ::std::string> vars) {}

void PrintV2Implementation(Printer* printer, const MethodDescriptor* method,
                           map< ::std::string, ::std::string> vars) {}

void PrintMethodImplementations(Printer* printer,
                                const MethodDescriptor* method,
                                const Parameters& generator_params) {}

}  // namespace

::std::string GetAllMessageClasses(const FileDescriptor* file) {}

::std::string GetProtocol(const ServiceDescriptor* service,
                          const Parameters& generator_params) {}

::std::string GetV2Protocol(const ServiceDescriptor* service) {}

::std::string GetInterface(const ServiceDescriptor* service,
                           const Parameters& generator_params) {}

::std::string GetSource(const ServiceDescriptor* service,
                        const Parameters& generator_params) {}

}  // namespace grpc_objective_c_generator