webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Functions
google::protobuf::compiler::ruby Namespace Reference

Classes

class  Generator
 

Functions

std::string IntToString (int32 value)
 
std::string StripDotProto (const std::string &proto_file)
 
std::string LabelForField (google::protobuf::FieldDescriptor *field)
 
std::string TypeName (google::protobuf::FieldDescriptor *field)
 
void GenerateMessage (const google::protobuf::Descriptor *message, google::protobuf::io::Printer *printer)
 
void GenerateEnum (const google::protobuf::EnumDescriptor *en, google::protobuf::io::Printer *printer)
 
void GenerateMessageAssignment (const std::string &prefix, const google::protobuf::Descriptor *message, google::protobuf::io::Printer *printer)
 
void GenerateEnumAssignment (const std::string &prefix, const google::protobuf::EnumDescriptor *en, google::protobuf::io::Printer *printer)
 
std::string GetOutputFilename (const std::string &proto_file)
 
std::string LabelForField (const google::protobuf::FieldDescriptor *field)
 
std::string TypeName (const google::protobuf::FieldDescriptor *field)
 
void GenerateField (const google::protobuf::FieldDescriptor *field, google::protobuf::io::Printer *printer)
 
void GenerateOneof (const google::protobuf::OneofDescriptor *oneof, google::protobuf::io::Printer *printer)
 
std::string RubifyConstant (const std::string &name)
 
int GeneratePackageModules (std::string package_name, google::protobuf::io::Printer *printer)
 
void EndPackageModules (int levels, google::protobuf::io::Printer *printer)
 
bool UsesTypeFromFile (const Descriptor *message, const FileDescriptor *file, string *error)
 
bool MaybeEmitDependency (const FileDescriptor *import, const FileDescriptor *from, io::Printer *printer, string *error)
 
bool GenerateFile (const FileDescriptor *file, io::Printer *printer, string *error)
 

Function Documentation

◆ EndPackageModules()

void google::protobuf::compiler::ruby::EndPackageModules ( int  levels,
google::protobuf::io::Printer printer 
)

◆ GenerateEnum()

void google::protobuf::compiler::ruby::GenerateEnum ( const google::protobuf::EnumDescriptor en,
google::protobuf::io::Printer printer 
)

◆ GenerateEnumAssignment()

void google::protobuf::compiler::ruby::GenerateEnumAssignment ( const std::string prefix,
const google::protobuf::EnumDescriptor en,
google::protobuf::io::Printer printer 
)

◆ GenerateField()

void google::protobuf::compiler::ruby::GenerateField ( const google::protobuf::FieldDescriptor field,
google::protobuf::io::Printer printer 
)

◆ GenerateFile()

bool google::protobuf::compiler::ruby::GenerateFile ( const FileDescriptor file,
io::Printer printer,
string error 
)

◆ GenerateMessage()

void google::protobuf::compiler::ruby::GenerateMessage ( const google::protobuf::Descriptor message,
google::protobuf::io::Printer printer 
)

◆ GenerateMessageAssignment()

void google::protobuf::compiler::ruby::GenerateMessageAssignment ( const std::string prefix,
const google::protobuf::Descriptor message,
google::protobuf::io::Printer printer 
)

◆ GenerateOneof()

void google::protobuf::compiler::ruby::GenerateOneof ( const google::protobuf::OneofDescriptor oneof,
google::protobuf::io::Printer printer 
)

◆ GeneratePackageModules()

int google::protobuf::compiler::ruby::GeneratePackageModules ( std::string  package_name,
google::protobuf::io::Printer printer 
)

◆ GetOutputFilename()

std::string google::protobuf::compiler::ruby::GetOutputFilename ( const std::string proto_file)

◆ IntToString()

std::string google::protobuf::compiler::ruby::IntToString ( int32  value)

◆ LabelForField() [1/2]

std::string google::protobuf::compiler::ruby::LabelForField ( google::protobuf::FieldDescriptor field)

◆ LabelForField() [2/2]

std::string google::protobuf::compiler::ruby::LabelForField ( const google::protobuf::FieldDescriptor field)

◆ MaybeEmitDependency()

bool google::protobuf::compiler::ruby::MaybeEmitDependency ( const FileDescriptor import,
const FileDescriptor from,
io::Printer printer,
string error 
)

◆ RubifyConstant()

std::string google::protobuf::compiler::ruby::RubifyConstant ( const std::string name)

◆ StripDotProto()

std::string google::protobuf::compiler::ruby::StripDotProto ( const std::string proto_file)

◆ TypeName() [1/2]

std::string google::protobuf::compiler::ruby::TypeName ( google::protobuf::FieldDescriptor field)

◆ TypeName() [2/2]

std::string google::protobuf::compiler::ruby::TypeName ( const google::protobuf::FieldDescriptor field)

◆ UsesTypeFromFile()

bool google::protobuf::compiler::ruby::UsesTypeFromFile ( const Descriptor message,
const FileDescriptor file,
string error 
)