chromium/third_party/grpc/src/src/compiler/php_generator.cc

/*
 *
 * Copyright 2016 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 <map>

#include <google/protobuf/compiler/php/php_generator.h>

#include "src/compiler/config.h"
#include "src/compiler/generator_helpers.h"
#include "src/compiler/php_generator_helpers.h"

GeneratedClassName;
Descriptor;
FileDescriptor;
MethodDescriptor;
ServiceDescriptor;
Printer;
StringOutputStream;
map;

namespace grpc_php_generator {
namespace {

std::string ConvertToPhpNamespace(const std::string& name) {}

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

std::string MessageIdentifierName(const std::string& name,
                                  const FileDescriptor* file) {}

void PrintMethod(const MethodDescriptor* method, Printer* out) {}

void PrintServerMethod(const MethodDescriptor* method, Printer* out) {}

void PrintServerMethodDescriptors(const ServiceDescriptor* service,
                                  Printer* out) {}

// Prints out the service descriptor object
void PrintService(const ServiceDescriptor* service,
                  const std::string& class_suffix, bool is_server,
                  Printer* out) {}
}  // namespace

std::string GenerateFile(const FileDescriptor* file,
                         const ServiceDescriptor* service,
                         const std::string& class_suffix, bool is_server) {}

}  // namespace grpc_php_generator