Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
google::protobuf::compiler::Parser Class Reference

#include <parser.h>

Classes

class  LocationRecorder
 
struct  MapField
 

Public Member Functions

const std::string & GetSyntaxIdentifier ()
 
const std::string & GetSyntaxIdentifier ()
 
bool Parse (io::Tokenizer *input, FileDescriptorProto *file)
 
bool Parse (io::Tokenizer *input, FileDescriptorProto *file)
 
 Parser ()
 
 Parser ()
 
void RecordErrorsTo (io::ErrorCollector *error_collector)
 
void RecordErrorsTo (io::ErrorCollector *error_collector)
 
void RecordSourceLocationsTo (SourceLocationTable *location_table)
 
void RecordSourceLocationsTo (SourceLocationTable *location_table)
 
void SetRequireSyntaxIdentifier (bool value)
 
void SetRequireSyntaxIdentifier (bool value)
 
void SetStopAfterSyntaxIdentifier (bool value)
 
void SetStopAfterSyntaxIdentifier (bool value)
 
 ~Parser ()
 
 ~Parser ()
 

Private Types

enum  OptionStyle { OPTION_ASSIGNMENT, OPTION_STATEMENT, OPTION_ASSIGNMENT, OPTION_STATEMENT }
 
enum  OptionStyle { OPTION_ASSIGNMENT, OPTION_STATEMENT, OPTION_ASSIGNMENT, OPTION_STATEMENT }
 

Private Member Functions

void AddError (const std::string &error)
 
void AddError (const std::string &error)
 
void AddError (int line, int column, const std::string &error)
 
void AddError (int line, int column, const std::string &error)
 
void AddWarning (const std::string &warning)
 
void AddWarning (const string &warning)
 
bool AtEnd ()
 
bool AtEnd ()
 
bool Consume (const char *text)
 
bool Consume (const char *text)
 
bool Consume (const char *text, const char *error)
 
bool Consume (const char *text, const char *error)
 
bool ConsumeEndOfDeclaration (const char *text, const LocationRecorder *location)
 
bool ConsumeEndOfDeclaration (const char *text, const LocationRecorder *location)
 
bool ConsumeIdentifier (std::string *output, const char *error)
 
bool ConsumeIdentifier (std::string *output, const char *error)
 
bool ConsumeInteger (int *output, const char *error)
 
bool ConsumeInteger (int *output, const char *error)
 
bool ConsumeInteger64 (uint64 max_value, uint64 *output, const char *error)
 
bool ConsumeInteger64 (uint64_t max_value, uint64_t *output, const char *error)
 
bool ConsumeNumber (double *output, const char *error)
 
bool ConsumeNumber (double *output, const char *error)
 
bool ConsumeSignedInteger (int *output, const char *error)
 
bool ConsumeSignedInteger (int *output, const char *error)
 
bool ConsumeString (std::string *output, const char *error)
 
bool ConsumeString (std::string *output, const char *error)
 
bool DefaultToOptionalFields () const
 
bool DefaultToOptionalFields () const
 
void GenerateMapEntry (const MapField &map_field, FieldDescriptorProto *field, RepeatedPtrField< DescriptorProto > *messages)
 
void GenerateMapEntry (const MapField &map_field, FieldDescriptorProto *field, RepeatedPtrField< DescriptorProto > *messages)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (Parser)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (Parser)
 
bool LookingAt (const char *text)
 
bool LookingAt (const char *text)
 
bool LookingAtType (io::Tokenizer::TokenType token_type)
 
bool LookingAtType (io::Tokenizer::TokenType token_type)
 
bool ParseDefaultAssignment (FieldDescriptorProto *field, const LocationRecorder &field_location, const FileDescriptorProto *containing_file)
 
bool ParseDefaultAssignment (FieldDescriptorProto *field, const LocationRecorder &field_location, const FileDescriptorProto *containing_file)
 
bool ParseEnumBlock (EnumDescriptorProto *enum_type, const LocationRecorder &enum_location, const FileDescriptorProto *containing_file)
 
bool ParseEnumBlock (EnumDescriptorProto *enum_type, const LocationRecorder &enum_location, const FileDescriptorProto *containing_file)
 
bool ParseEnumConstant (EnumValueDescriptorProto *enum_value, const LocationRecorder &enum_value_location, const FileDescriptorProto *containing_file)
 
bool ParseEnumConstant (EnumValueDescriptorProto *enum_value, const LocationRecorder &enum_value_location, const FileDescriptorProto *containing_file)
 
bool ParseEnumConstantOptions (EnumValueDescriptorProto *value, const LocationRecorder &enum_value_location, const FileDescriptorProto *containing_file)
 
bool ParseEnumConstantOptions (EnumValueDescriptorProto *value, const LocationRecorder &enum_value_location, const FileDescriptorProto *containing_file)
 
bool ParseEnumDefinition (EnumDescriptorProto *enum_type, const LocationRecorder &enum_location, const FileDescriptorProto *containing_file)
 
bool ParseEnumDefinition (EnumDescriptorProto *enum_type, const LocationRecorder &enum_location, const FileDescriptorProto *containing_file)
 
bool ParseEnumStatement (EnumDescriptorProto *message, const LocationRecorder &enum_location, const FileDescriptorProto *containing_file)
 
bool ParseEnumStatement (EnumDescriptorProto *message, const LocationRecorder &enum_location, const FileDescriptorProto *containing_file)
 
bool ParseExtend (RepeatedPtrField< FieldDescriptorProto > *extensions, RepeatedPtrField< DescriptorProto > *messages, const LocationRecorder &parent_location, int location_field_number_for_nested_type, const LocationRecorder &extend_location, const FileDescriptorProto *containing_file)
 
bool ParseExtend (RepeatedPtrField< FieldDescriptorProto > *extensions, RepeatedPtrField< DescriptorProto > *messages, const LocationRecorder &parent_location, int location_field_number_for_nested_type, const LocationRecorder &extend_location, const FileDescriptorProto *containing_file)
 
bool ParseExtensions (DescriptorProto *message, const LocationRecorder &extensions_location, const FileDescriptorProto *containing_file)
 
bool ParseExtensions (DescriptorProto *message, const LocationRecorder &extensions_location, const FileDescriptorProto *containing_file)
 
bool ParseFieldOptions (FieldDescriptorProto *field, const LocationRecorder &field_location, const FileDescriptorProto *containing_file)
 
bool ParseFieldOptions (FieldDescriptorProto *field, const LocationRecorder &field_location, const FileDescriptorProto *containing_file)
 
bool ParseImport (RepeatedPtrField< std::string > *dependency, RepeatedField< int32 > *public_dependency, RepeatedField< int32 > *weak_dependency, const LocationRecorder &root_location, const FileDescriptorProto *containing_file)
 
bool ParseImport (RepeatedPtrField< std::string > *dependency, RepeatedField< int32_t > *public_dependency, RepeatedField< int32_t > *weak_dependency, const LocationRecorder &root_location, const FileDescriptorProto *containing_file)
 
bool ParseJsonName (FieldDescriptorProto *field, const LocationRecorder &field_location, const FileDescriptorProto *containing_file)
 
bool ParseJsonName (FieldDescriptorProto *field, const LocationRecorder &field_location, const FileDescriptorProto *containing_file)
 
bool ParseLabel (FieldDescriptorProto::Label *label, const LocationRecorder &field_location, const FileDescriptorProto *containing_file)
 
bool ParseLabel (FieldDescriptorProto::Label *label, const LocationRecorder &field_location, const FileDescriptorProto *containing_file)
 
bool ParseMessageBlock (DescriptorProto *message, const LocationRecorder &message_location, const FileDescriptorProto *containing_file)
 
bool ParseMessageBlock (DescriptorProto *message, const LocationRecorder &message_location, const FileDescriptorProto *containing_file)
 
bool ParseMessageDefinition (DescriptorProto *message, const LocationRecorder &message_location, const FileDescriptorProto *containing_file)
 
bool ParseMessageDefinition (DescriptorProto *message, const LocationRecorder &message_location, const FileDescriptorProto *containing_file)
 
bool ParseMessageField (FieldDescriptorProto *field, RepeatedPtrField< DescriptorProto > *messages, const LocationRecorder &parent_location, int location_field_number_for_nested_type, const LocationRecorder &field_location, const FileDescriptorProto *containing_file)
 
bool ParseMessageField (FieldDescriptorProto *field, RepeatedPtrField< DescriptorProto > *messages, const LocationRecorder &parent_location, int location_field_number_for_nested_type, const LocationRecorder &field_location, const FileDescriptorProto *containing_file)
 
bool ParseMessageFieldNoLabel (FieldDescriptorProto *field, RepeatedPtrField< DescriptorProto > *messages, const LocationRecorder &parent_location, int location_field_number_for_nested_type, const LocationRecorder &field_location, const FileDescriptorProto *containing_file)
 
bool ParseMessageFieldNoLabel (FieldDescriptorProto *field, RepeatedPtrField< DescriptorProto > *messages, const LocationRecorder &parent_location, int location_field_number_for_nested_type, const LocationRecorder &field_location, const FileDescriptorProto *containing_file)
 
bool ParseMessageStatement (DescriptorProto *message, const LocationRecorder &message_location, const FileDescriptorProto *containing_file)
 
bool ParseMessageStatement (DescriptorProto *message, const LocationRecorder &message_location, const FileDescriptorProto *containing_file)
 
bool ParseMethodOptions (const LocationRecorder &parent_location, const FileDescriptorProto *containing_file, const int optionsFieldNumber, Message *mutable_options)
 
bool ParseMethodOptions (const LocationRecorder &parent_location, const FileDescriptorProto *containing_file, const int optionsFieldNumber, Message *mutable_options)
 
bool ParseOneof (OneofDescriptorProto *oneof_decl, DescriptorProto *containing_type, int oneof_index, const LocationRecorder &oneof_location, const LocationRecorder &containing_type_location, const FileDescriptorProto *containing_file)
 
bool ParseOneof (OneofDescriptorProto *oneof_decl, DescriptorProto *containing_type, int oneof_index, const LocationRecorder &oneof_location, const LocationRecorder &containing_type_location, const FileDescriptorProto *containing_file)
 
bool ParseOption (Message *options, const LocationRecorder &options_location, const FileDescriptorProto *containing_file, OptionStyle style)
 
bool ParseOption (Message *options, const LocationRecorder &options_location, const FileDescriptorProto *containing_file, OptionStyle style)
 
bool ParseOptionNamePart (UninterpretedOption *uninterpreted_option, const LocationRecorder &part_location, const FileDescriptorProto *containing_file)
 
bool ParseOptionNamePart (UninterpretedOption *uninterpreted_option, const LocationRecorder &part_location, const FileDescriptorProto *containing_file)
 
bool ParsePackage (FileDescriptorProto *file, const LocationRecorder &root_location, const FileDescriptorProto *containing_file)
 
bool ParsePackage (FileDescriptorProto *file, const LocationRecorder &root_location, const FileDescriptorProto *containing_file)
 
bool ParseReserved (DescriptorProto *message, const LocationRecorder &message_location)
 
bool ParseReserved (DescriptorProto *message, const LocationRecorder &message_location)
 
bool ParseReserved (EnumDescriptorProto *message, const LocationRecorder &message_location)
 
bool ParseReserved (EnumDescriptorProto *message, const LocationRecorder &message_location)
 
bool ParseReservedNames (DescriptorProto *message, const LocationRecorder &parent_location)
 
bool ParseReservedNames (DescriptorProto *message, const LocationRecorder &parent_location)
 
bool ParseReservedNames (EnumDescriptorProto *message, const LocationRecorder &parent_location)
 
bool ParseReservedNames (EnumDescriptorProto *message, const LocationRecorder &parent_location)
 
bool ParseReservedNumbers (DescriptorProto *message, const LocationRecorder &parent_location)
 
bool ParseReservedNumbers (DescriptorProto *message, const LocationRecorder &parent_location)
 
bool ParseReservedNumbers (EnumDescriptorProto *message, const LocationRecorder &parent_location)
 
bool ParseReservedNumbers (EnumDescriptorProto *message, const LocationRecorder &parent_location)
 
bool ParseServiceBlock (ServiceDescriptorProto *service, const LocationRecorder &service_location, const FileDescriptorProto *containing_file)
 
bool ParseServiceBlock (ServiceDescriptorProto *service, const LocationRecorder &service_location, const FileDescriptorProto *containing_file)
 
bool ParseServiceDefinition (ServiceDescriptorProto *service, const LocationRecorder &service_location, const FileDescriptorProto *containing_file)
 
bool ParseServiceDefinition (ServiceDescriptorProto *service, const LocationRecorder &service_location, const FileDescriptorProto *containing_file)
 
bool ParseServiceMethod (MethodDescriptorProto *method, const LocationRecorder &method_location, const FileDescriptorProto *containing_file)
 
bool ParseServiceMethod (MethodDescriptorProto *method, const LocationRecorder &method_location, const FileDescriptorProto *containing_file)
 
bool ParseServiceStatement (ServiceDescriptorProto *message, const LocationRecorder &service_location, const FileDescriptorProto *containing_file)
 
bool ParseServiceStatement (ServiceDescriptorProto *message, const LocationRecorder &service_location, const FileDescriptorProto *containing_file)
 
bool ParseSyntaxIdentifier (const LocationRecorder &parent)
 
bool ParseSyntaxIdentifier (const LocationRecorder &parent)
 
bool ParseTopLevelStatement (FileDescriptorProto *file, const LocationRecorder &root_location)
 
bool ParseTopLevelStatement (FileDescriptorProto *file, const LocationRecorder &root_location)
 
bool ParseType (FieldDescriptorProto::Type *type, std::string *type_name)
 
bool ParseType (FieldDescriptorProto::Type *type, std::string *type_name)
 
bool ParseUninterpretedBlock (std::string *value)
 
bool ParseUninterpretedBlock (std::string *value)
 
bool ParseUserDefinedType (std::string *type_name)
 
bool ParseUserDefinedType (std::string *type_name)
 
void SkipRestOfBlock ()
 
void SkipRestOfBlock ()
 
void SkipStatement ()
 
void SkipStatement ()
 
bool TryConsume (const char *text)
 
bool TryConsume (const char *text)
 
bool TryConsumeEndOfDeclaration (const char *text, const LocationRecorder *location)
 
bool TryConsumeEndOfDeclaration (const char *text, const LocationRecorder *location)
 
bool TryConsumeEndOfDeclarationFinishScope (const char *text, const LocationRecorder *location)
 
bool TryConsumeEndOfDeclarationFinishScope (const char *text, const LocationRecorder *location)
 
bool ValidateEnum (const EnumDescriptorProto *proto)
 
bool ValidateEnum (const EnumDescriptorProto *proto)
 

Private Attributes

io::ErrorCollectorerror_collector_
 
bool had_errors_
 
io::Tokenizerinput_
 
bool require_syntax_identifier_
 
SourceCodeInfosource_code_info_
 
SourceLocationTablesource_location_table_
 
bool stop_after_syntax_identifier_
 
std::string syntax_identifier_
 
std::vector< std::string > upcoming_detached_comments_
 
std::string upcoming_doc_comments_
 

Detailed Description

Definition at line 68 of file third_party/bloaty/third_party/protobuf/src/google/protobuf/compiler/parser.h.

Member Enumeration Documentation

◆ OptionStyle [1/2]

Enumerator
OPTION_ASSIGNMENT 
OPTION_STATEMENT 
OPTION_ASSIGNMENT 
OPTION_STATEMENT 

Definition at line 469 of file third_party/bloaty/third_party/protobuf/src/google/protobuf/compiler/parser.h.

◆ OptionStyle [2/2]

Enumerator
OPTION_ASSIGNMENT 
OPTION_STATEMENT 
OPTION_ASSIGNMENT 
OPTION_STATEMENT 

Definition at line 473 of file third_party/protobuf/src/google/protobuf/compiler/parser.h.

Constructor & Destructor Documentation

◆ Parser() [1/2]

google::protobuf::compiler::Parser::Parser ( )

◆ ~Parser() [1/2]

google::protobuf::compiler::Parser::~Parser ( )

◆ Parser() [2/2]

google::protobuf::compiler::Parser::Parser ( )

◆ ~Parser() [2/2]

google::protobuf::compiler::Parser::~Parser ( )

Member Function Documentation

◆ AddError() [1/4]

void google::protobuf::compiler::Parser::AddError ( const std::string &  error)
private

◆ AddError() [2/4]

void google::protobuf::compiler::Parser::AddError ( const std::string &  error)
private

◆ AddError() [3/4]

void google::protobuf::compiler::Parser::AddError ( int  line,
int  column,
const std::string &  error 
)
private

◆ AddError() [4/4]

void google::protobuf::compiler::Parser::AddError ( int  line,
int  column,
const std::string &  error 
)
private

◆ AddWarning() [1/2]

void google::protobuf::compiler::Parser::AddWarning ( const std::string &  warning)
private

◆ AddWarning() [2/2]

void google::protobuf::compiler::Parser::AddWarning ( const string &  warning)
private

◆ AtEnd() [1/2]

bool google::protobuf::compiler::Parser::AtEnd ( )
inlineprivate

◆ AtEnd() [2/2]

bool google::protobuf::compiler::Parser::AtEnd ( )
inlineprivate

◆ Consume() [1/4]

bool google::protobuf::compiler::Parser::Consume ( const char *  text)
private

◆ Consume() [2/4]

bool google::protobuf::compiler::Parser::Consume ( const char *  text)
private

◆ Consume() [3/4]

bool google::protobuf::compiler::Parser::Consume ( const char *  text,
const char *  error 
)
private

◆ Consume() [4/4]

bool google::protobuf::compiler::Parser::Consume ( const char *  text,
const char *  error 
)
private

◆ ConsumeEndOfDeclaration() [1/2]

bool google::protobuf::compiler::Parser::ConsumeEndOfDeclaration ( const char *  text,
const LocationRecorder location 
)
private

◆ ConsumeEndOfDeclaration() [2/2]

bool google::protobuf::compiler::Parser::ConsumeEndOfDeclaration ( const char *  text,
const LocationRecorder location 
)
private

◆ ConsumeIdentifier() [1/2]

bool google::protobuf::compiler::Parser::ConsumeIdentifier ( std::string *  output,
const char *  error 
)
private

◆ ConsumeIdentifier() [2/2]

bool google::protobuf::compiler::Parser::ConsumeIdentifier ( std::string *  output,
const char *  error 
)
private

◆ ConsumeInteger() [1/2]

bool google::protobuf::compiler::Parser::ConsumeInteger ( int output,
const char *  error 
)
private

◆ ConsumeInteger() [2/2]

bool google::protobuf::compiler::Parser::ConsumeInteger ( int output,
const char *  error 
)
private

◆ ConsumeInteger64() [1/2]

bool google::protobuf::compiler::Parser::ConsumeInteger64 ( uint64  max_value,
uint64 output,
const char *  error 
)
private

◆ ConsumeInteger64() [2/2]

bool google::protobuf::compiler::Parser::ConsumeInteger64 ( uint64_t  max_value,
uint64_t output,
const char *  error 
)
private

◆ ConsumeNumber() [1/2]

bool google::protobuf::compiler::Parser::ConsumeNumber ( double *  output,
const char *  error 
)
private

◆ ConsumeNumber() [2/2]

bool google::protobuf::compiler::Parser::ConsumeNumber ( double *  output,
const char *  error 
)
private

◆ ConsumeSignedInteger() [1/2]

bool google::protobuf::compiler::Parser::ConsumeSignedInteger ( int output,
const char *  error 
)
private

◆ ConsumeSignedInteger() [2/2]

bool google::protobuf::compiler::Parser::ConsumeSignedInteger ( int output,
const char *  error 
)
private

◆ ConsumeString() [1/2]

bool google::protobuf::compiler::Parser::ConsumeString ( std::string *  output,
const char *  error 
)
private

◆ ConsumeString() [2/2]

bool google::protobuf::compiler::Parser::ConsumeString ( std::string *  output,
const char *  error 
)
private

◆ DefaultToOptionalFields() [1/2]

bool google::protobuf::compiler::Parser::DefaultToOptionalFields ( ) const
inlineprivate

◆ DefaultToOptionalFields() [2/2]

bool google::protobuf::compiler::Parser::DefaultToOptionalFields ( ) const
inlineprivate

◆ GenerateMapEntry() [1/2]

void google::protobuf::compiler::Parser::GenerateMapEntry ( const MapField map_field,
FieldDescriptorProto field,
RepeatedPtrField< DescriptorProto > *  messages 
)
private

◆ GenerateMapEntry() [2/2]

void google::protobuf::compiler::Parser::GenerateMapEntry ( const MapField map_field,
FieldDescriptorProto field,
RepeatedPtrField< DescriptorProto > *  messages 
)
private

◆ GetSyntaxIdentifier() [1/2]

const std::string& google::protobuf::compiler::Parser::GetSyntaxIdentifier ( )
inline

◆ GetSyntaxIdentifier() [2/2]

const std::string& google::protobuf::compiler::Parser::GetSyntaxIdentifier ( )
inline

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [1/2]

google::protobuf::compiler::Parser::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( Parser  )
private

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [2/2]

google::protobuf::compiler::Parser::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( Parser  )
private

◆ LookingAt() [1/2]

bool google::protobuf::compiler::Parser::LookingAt ( const char *  text)
inlineprivate

◆ LookingAt() [2/2]

bool google::protobuf::compiler::Parser::LookingAt ( const char *  text)
inlineprivate

◆ LookingAtType() [1/2]

bool google::protobuf::compiler::Parser::LookingAtType ( io::Tokenizer::TokenType  token_type)
inlineprivate

◆ LookingAtType() [2/2]

bool google::protobuf::compiler::Parser::LookingAtType ( io::Tokenizer::TokenType  token_type)
inlineprivate

◆ Parse() [1/2]

bool google::protobuf::compiler::Parser::Parse ( io::Tokenizer input,
FileDescriptorProto file 
)

◆ Parse() [2/2]

bool google::protobuf::compiler::Parser::Parse ( io::Tokenizer input,
FileDescriptorProto file 
)

◆ ParseDefaultAssignment() [1/2]

bool google::protobuf::compiler::Parser::ParseDefaultAssignment ( FieldDescriptorProto field,
const LocationRecorder field_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseDefaultAssignment() [2/2]

bool google::protobuf::compiler::Parser::ParseDefaultAssignment ( FieldDescriptorProto field,
const LocationRecorder field_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseEnumBlock() [1/2]

bool google::protobuf::compiler::Parser::ParseEnumBlock ( EnumDescriptorProto enum_type,
const LocationRecorder enum_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseEnumBlock() [2/2]

bool google::protobuf::compiler::Parser::ParseEnumBlock ( EnumDescriptorProto enum_type,
const LocationRecorder enum_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseEnumConstant() [1/2]

bool google::protobuf::compiler::Parser::ParseEnumConstant ( EnumValueDescriptorProto enum_value,
const LocationRecorder enum_value_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseEnumConstant() [2/2]

bool google::protobuf::compiler::Parser::ParseEnumConstant ( EnumValueDescriptorProto enum_value,
const LocationRecorder enum_value_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseEnumConstantOptions() [1/2]

bool google::protobuf::compiler::Parser::ParseEnumConstantOptions ( EnumValueDescriptorProto value,
const LocationRecorder enum_value_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseEnumConstantOptions() [2/2]

bool google::protobuf::compiler::Parser::ParseEnumConstantOptions ( EnumValueDescriptorProto value,
const LocationRecorder enum_value_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseEnumDefinition() [1/2]

bool google::protobuf::compiler::Parser::ParseEnumDefinition ( EnumDescriptorProto enum_type,
const LocationRecorder enum_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseEnumDefinition() [2/2]

bool google::protobuf::compiler::Parser::ParseEnumDefinition ( EnumDescriptorProto enum_type,
const LocationRecorder enum_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseEnumStatement() [1/2]

bool google::protobuf::compiler::Parser::ParseEnumStatement ( EnumDescriptorProto message,
const LocationRecorder enum_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseEnumStatement() [2/2]

bool google::protobuf::compiler::Parser::ParseEnumStatement ( EnumDescriptorProto message,
const LocationRecorder enum_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseExtend() [1/2]

bool google::protobuf::compiler::Parser::ParseExtend ( RepeatedPtrField< FieldDescriptorProto > *  extensions,
RepeatedPtrField< DescriptorProto > *  messages,
const LocationRecorder parent_location,
int  location_field_number_for_nested_type,
const LocationRecorder extend_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseExtend() [2/2]

bool google::protobuf::compiler::Parser::ParseExtend ( RepeatedPtrField< FieldDescriptorProto > *  extensions,
RepeatedPtrField< DescriptorProto > *  messages,
const LocationRecorder parent_location,
int  location_field_number_for_nested_type,
const LocationRecorder extend_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseExtensions() [1/2]

bool google::protobuf::compiler::Parser::ParseExtensions ( DescriptorProto message,
const LocationRecorder extensions_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseExtensions() [2/2]

bool google::protobuf::compiler::Parser::ParseExtensions ( DescriptorProto message,
const LocationRecorder extensions_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseFieldOptions() [1/2]

bool google::protobuf::compiler::Parser::ParseFieldOptions ( FieldDescriptorProto field,
const LocationRecorder field_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseFieldOptions() [2/2]

bool google::protobuf::compiler::Parser::ParseFieldOptions ( FieldDescriptorProto field,
const LocationRecorder field_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseImport() [1/2]

bool google::protobuf::compiler::Parser::ParseImport ( RepeatedPtrField< std::string > *  dependency,
RepeatedField< int32 > *  public_dependency,
RepeatedField< int32 > *  weak_dependency,
const LocationRecorder root_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseImport() [2/2]

bool google::protobuf::compiler::Parser::ParseImport ( RepeatedPtrField< std::string > *  dependency,
RepeatedField< int32_t > *  public_dependency,
RepeatedField< int32_t > *  weak_dependency,
const LocationRecorder root_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseJsonName() [1/2]

bool google::protobuf::compiler::Parser::ParseJsonName ( FieldDescriptorProto field,
const LocationRecorder field_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseJsonName() [2/2]

bool google::protobuf::compiler::Parser::ParseJsonName ( FieldDescriptorProto field,
const LocationRecorder field_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseLabel() [1/2]

bool google::protobuf::compiler::Parser::ParseLabel ( FieldDescriptorProto::Label label,
const LocationRecorder field_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseLabel() [2/2]

bool google::protobuf::compiler::Parser::ParseLabel ( FieldDescriptorProto::Label label,
const LocationRecorder field_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseMessageBlock() [1/2]

bool google::protobuf::compiler::Parser::ParseMessageBlock ( DescriptorProto message,
const LocationRecorder message_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseMessageBlock() [2/2]

bool google::protobuf::compiler::Parser::ParseMessageBlock ( DescriptorProto message,
const LocationRecorder message_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseMessageDefinition() [1/2]

bool google::protobuf::compiler::Parser::ParseMessageDefinition ( DescriptorProto message,
const LocationRecorder message_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseMessageDefinition() [2/2]

bool google::protobuf::compiler::Parser::ParseMessageDefinition ( DescriptorProto message,
const LocationRecorder message_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseMessageField() [1/2]

bool google::protobuf::compiler::Parser::ParseMessageField ( FieldDescriptorProto field,
RepeatedPtrField< DescriptorProto > *  messages,
const LocationRecorder parent_location,
int  location_field_number_for_nested_type,
const LocationRecorder field_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseMessageField() [2/2]

bool google::protobuf::compiler::Parser::ParseMessageField ( FieldDescriptorProto field,
RepeatedPtrField< DescriptorProto > *  messages,
const LocationRecorder parent_location,
int  location_field_number_for_nested_type,
const LocationRecorder field_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseMessageFieldNoLabel() [1/2]

bool google::protobuf::compiler::Parser::ParseMessageFieldNoLabel ( FieldDescriptorProto field,
RepeatedPtrField< DescriptorProto > *  messages,
const LocationRecorder parent_location,
int  location_field_number_for_nested_type,
const LocationRecorder field_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseMessageFieldNoLabel() [2/2]

bool google::protobuf::compiler::Parser::ParseMessageFieldNoLabel ( FieldDescriptorProto field,
RepeatedPtrField< DescriptorProto > *  messages,
const LocationRecorder parent_location,
int  location_field_number_for_nested_type,
const LocationRecorder field_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseMessageStatement() [1/2]

bool google::protobuf::compiler::Parser::ParseMessageStatement ( DescriptorProto message,
const LocationRecorder message_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseMessageStatement() [2/2]

bool google::protobuf::compiler::Parser::ParseMessageStatement ( DescriptorProto message,
const LocationRecorder message_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseMethodOptions() [1/2]

bool google::protobuf::compiler::Parser::ParseMethodOptions ( const LocationRecorder parent_location,
const FileDescriptorProto containing_file,
const int  optionsFieldNumber,
Message mutable_options 
)
private

◆ ParseMethodOptions() [2/2]

bool google::protobuf::compiler::Parser::ParseMethodOptions ( const LocationRecorder parent_location,
const FileDescriptorProto containing_file,
const int  optionsFieldNumber,
Message mutable_options 
)
private

◆ ParseOneof() [1/2]

bool google::protobuf::compiler::Parser::ParseOneof ( OneofDescriptorProto oneof_decl,
DescriptorProto containing_type,
int  oneof_index,
const LocationRecorder oneof_location,
const LocationRecorder containing_type_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseOneof() [2/2]

bool google::protobuf::compiler::Parser::ParseOneof ( OneofDescriptorProto oneof_decl,
DescriptorProto containing_type,
int  oneof_index,
const LocationRecorder oneof_location,
const LocationRecorder containing_type_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseOption() [1/2]

bool google::protobuf::compiler::Parser::ParseOption ( Message options,
const LocationRecorder options_location,
const FileDescriptorProto containing_file,
OptionStyle  style 
)
private

◆ ParseOption() [2/2]

bool google::protobuf::compiler::Parser::ParseOption ( Message options,
const LocationRecorder options_location,
const FileDescriptorProto containing_file,
OptionStyle  style 
)
private

◆ ParseOptionNamePart() [1/2]

bool google::protobuf::compiler::Parser::ParseOptionNamePart ( UninterpretedOption uninterpreted_option,
const LocationRecorder part_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseOptionNamePart() [2/2]

bool google::protobuf::compiler::Parser::ParseOptionNamePart ( UninterpretedOption uninterpreted_option,
const LocationRecorder part_location,
const FileDescriptorProto containing_file 
)
private

◆ ParsePackage() [1/2]

bool google::protobuf::compiler::Parser::ParsePackage ( FileDescriptorProto file,
const LocationRecorder root_location,
const FileDescriptorProto containing_file 
)
private

◆ ParsePackage() [2/2]

bool google::protobuf::compiler::Parser::ParsePackage ( FileDescriptorProto file,
const LocationRecorder root_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseReserved() [1/4]

bool google::protobuf::compiler::Parser::ParseReserved ( DescriptorProto message,
const LocationRecorder message_location 
)
private

◆ ParseReserved() [2/4]

bool google::protobuf::compiler::Parser::ParseReserved ( DescriptorProto message,
const LocationRecorder message_location 
)
private

◆ ParseReserved() [3/4]

bool google::protobuf::compiler::Parser::ParseReserved ( EnumDescriptorProto message,
const LocationRecorder message_location 
)
private

◆ ParseReserved() [4/4]

bool google::protobuf::compiler::Parser::ParseReserved ( EnumDescriptorProto message,
const LocationRecorder message_location 
)
private

◆ ParseReservedNames() [1/4]

bool google::protobuf::compiler::Parser::ParseReservedNames ( DescriptorProto message,
const LocationRecorder parent_location 
)
private

◆ ParseReservedNames() [2/4]

bool google::protobuf::compiler::Parser::ParseReservedNames ( DescriptorProto message,
const LocationRecorder parent_location 
)
private

◆ ParseReservedNames() [3/4]

bool google::protobuf::compiler::Parser::ParseReservedNames ( EnumDescriptorProto message,
const LocationRecorder parent_location 
)
private

◆ ParseReservedNames() [4/4]

bool google::protobuf::compiler::Parser::ParseReservedNames ( EnumDescriptorProto message,
const LocationRecorder parent_location 
)
private

◆ ParseReservedNumbers() [1/4]

bool google::protobuf::compiler::Parser::ParseReservedNumbers ( DescriptorProto message,
const LocationRecorder parent_location 
)
private

◆ ParseReservedNumbers() [2/4]

bool google::protobuf::compiler::Parser::ParseReservedNumbers ( DescriptorProto message,
const LocationRecorder parent_location 
)
private

◆ ParseReservedNumbers() [3/4]

bool google::protobuf::compiler::Parser::ParseReservedNumbers ( EnumDescriptorProto message,
const LocationRecorder parent_location 
)
private

◆ ParseReservedNumbers() [4/4]

bool google::protobuf::compiler::Parser::ParseReservedNumbers ( EnumDescriptorProto message,
const LocationRecorder parent_location 
)
private

◆ ParseServiceBlock() [1/2]

bool google::protobuf::compiler::Parser::ParseServiceBlock ( ServiceDescriptorProto service,
const LocationRecorder service_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseServiceBlock() [2/2]

bool google::protobuf::compiler::Parser::ParseServiceBlock ( ServiceDescriptorProto service,
const LocationRecorder service_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseServiceDefinition() [1/2]

bool google::protobuf::compiler::Parser::ParseServiceDefinition ( ServiceDescriptorProto service,
const LocationRecorder service_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseServiceDefinition() [2/2]

bool google::protobuf::compiler::Parser::ParseServiceDefinition ( ServiceDescriptorProto service,
const LocationRecorder service_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseServiceMethod() [1/2]

bool google::protobuf::compiler::Parser::ParseServiceMethod ( MethodDescriptorProto method,
const LocationRecorder method_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseServiceMethod() [2/2]

bool google::protobuf::compiler::Parser::ParseServiceMethod ( MethodDescriptorProto method,
const LocationRecorder method_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseServiceStatement() [1/2]

bool google::protobuf::compiler::Parser::ParseServiceStatement ( ServiceDescriptorProto message,
const LocationRecorder service_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseServiceStatement() [2/2]

bool google::protobuf::compiler::Parser::ParseServiceStatement ( ServiceDescriptorProto message,
const LocationRecorder service_location,
const FileDescriptorProto containing_file 
)
private

◆ ParseSyntaxIdentifier() [1/2]

bool google::protobuf::compiler::Parser::ParseSyntaxIdentifier ( const LocationRecorder parent)
private

◆ ParseSyntaxIdentifier() [2/2]

bool google::protobuf::compiler::Parser::ParseSyntaxIdentifier ( const LocationRecorder parent)
private

◆ ParseTopLevelStatement() [1/2]

bool google::protobuf::compiler::Parser::ParseTopLevelStatement ( FileDescriptorProto file,
const LocationRecorder root_location 
)
private

◆ ParseTopLevelStatement() [2/2]

bool google::protobuf::compiler::Parser::ParseTopLevelStatement ( FileDescriptorProto file,
const LocationRecorder root_location 
)
private

◆ ParseType() [1/2]

bool google::protobuf::compiler::Parser::ParseType ( FieldDescriptorProto::Type type,
std::string *  type_name 
)
private

◆ ParseType() [2/2]

bool google::protobuf::compiler::Parser::ParseType ( FieldDescriptorProto::Type type,
std::string *  type_name 
)
private

◆ ParseUninterpretedBlock() [1/2]

bool google::protobuf::compiler::Parser::ParseUninterpretedBlock ( std::string *  value)
private

◆ ParseUninterpretedBlock() [2/2]

bool google::protobuf::compiler::Parser::ParseUninterpretedBlock ( std::string *  value)
private

◆ ParseUserDefinedType() [1/2]

bool google::protobuf::compiler::Parser::ParseUserDefinedType ( std::string *  type_name)
private

◆ ParseUserDefinedType() [2/2]

bool google::protobuf::compiler::Parser::ParseUserDefinedType ( std::string *  type_name)
private

◆ RecordErrorsTo() [1/2]

void google::protobuf::compiler::Parser::RecordErrorsTo ( io::ErrorCollector error_collector)
inline

◆ RecordErrorsTo() [2/2]

void google::protobuf::compiler::Parser::RecordErrorsTo ( io::ErrorCollector error_collector)
inline

◆ RecordSourceLocationsTo() [1/2]

void google::protobuf::compiler::Parser::RecordSourceLocationsTo ( SourceLocationTable location_table)
inline

◆ RecordSourceLocationsTo() [2/2]

void google::protobuf::compiler::Parser::RecordSourceLocationsTo ( SourceLocationTable location_table)
inline

◆ SetRequireSyntaxIdentifier() [1/2]

void google::protobuf::compiler::Parser::SetRequireSyntaxIdentifier ( bool  value)
inline

◆ SetRequireSyntaxIdentifier() [2/2]

void google::protobuf::compiler::Parser::SetRequireSyntaxIdentifier ( bool  value)
inline

◆ SetStopAfterSyntaxIdentifier() [1/2]

void google::protobuf::compiler::Parser::SetStopAfterSyntaxIdentifier ( bool  value)
inline

◆ SetStopAfterSyntaxIdentifier() [2/2]

void google::protobuf::compiler::Parser::SetStopAfterSyntaxIdentifier ( bool  value)
inline

◆ SkipRestOfBlock() [1/2]

void google::protobuf::compiler::Parser::SkipRestOfBlock ( )
private

◆ SkipRestOfBlock() [2/2]

void google::protobuf::compiler::Parser::SkipRestOfBlock ( )
private

◆ SkipStatement() [1/2]

void google::protobuf::compiler::Parser::SkipStatement ( )
private

◆ SkipStatement() [2/2]

void google::protobuf::compiler::Parser::SkipStatement ( )
private

◆ TryConsume() [1/2]

bool google::protobuf::compiler::Parser::TryConsume ( const char *  text)
private

◆ TryConsume() [2/2]

bool google::protobuf::compiler::Parser::TryConsume ( const char *  text)
private

◆ TryConsumeEndOfDeclaration() [1/2]

bool google::protobuf::compiler::Parser::TryConsumeEndOfDeclaration ( const char *  text,
const LocationRecorder location 
)
private

◆ TryConsumeEndOfDeclaration() [2/2]

bool google::protobuf::compiler::Parser::TryConsumeEndOfDeclaration ( const char *  text,
const LocationRecorder location 
)
private

◆ TryConsumeEndOfDeclarationFinishScope() [1/2]

bool google::protobuf::compiler::Parser::TryConsumeEndOfDeclarationFinishScope ( const char *  text,
const LocationRecorder location 
)
private

◆ TryConsumeEndOfDeclarationFinishScope() [2/2]

bool google::protobuf::compiler::Parser::TryConsumeEndOfDeclarationFinishScope ( const char *  text,
const LocationRecorder location 
)
private

◆ ValidateEnum() [1/2]

bool google::protobuf::compiler::Parser::ValidateEnum ( const EnumDescriptorProto proto)
private

◆ ValidateEnum() [2/2]

bool google::protobuf::compiler::Parser::ValidateEnum ( const EnumDescriptorProto proto)
private

Member Data Documentation

◆ error_collector_

io::ErrorCollector * google::protobuf::compiler::Parser::error_collector_
private

◆ had_errors_

bool google::protobuf::compiler::Parser::had_errors_
private

◆ input_

io::Tokenizer * google::protobuf::compiler::Parser::input_
private

◆ require_syntax_identifier_

bool google::protobuf::compiler::Parser::require_syntax_identifier_
private

◆ source_code_info_

SourceCodeInfo * google::protobuf::compiler::Parser::source_code_info_
private

◆ source_location_table_

SourceLocationTable * google::protobuf::compiler::Parser::source_location_table_
private

◆ stop_after_syntax_identifier_

bool google::protobuf::compiler::Parser::stop_after_syntax_identifier_
private

◆ syntax_identifier_

std::string google::protobuf::compiler::Parser::syntax_identifier_
private

◆ upcoming_detached_comments_

std::vector< std::string > google::protobuf::compiler::Parser::upcoming_detached_comments_
private

◆ upcoming_doc_comments_

std::string google::protobuf::compiler::Parser::upcoming_doc_comments_
private

The documentation for this class was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:22