Go to the documentation of this file.
37 #ifndef GOOGLE_PROTOBUF_COMPILER_PARSER_H__
38 #define GOOGLE_PROTOBUF_COMPILER_PARSER_H__
48 #include <google/protobuf/port_def.inc>
59 class SourceLocationTable;
87 source_location_table_ = location_table;
117 stop_after_syntax_identifier_ =
value;
121 class LocationRecorder;
135 void SkipStatement();
139 void SkipRestOfBlock();
150 inline bool LookingAt(
const char* text);
156 bool TryConsume(
const char* text);
163 bool Consume(
const char* text,
const char*
error);
166 bool Consume(
const char* text);
170 bool ConsumeInteger(
int*
output,
const char*
error);
172 bool ConsumeSignedInteger(
int*
output,
const char*
error);
178 bool ConsumeNumber(
double*
output,
const char*
error);
191 bool TryConsumeEndOfDeclaration(
const char* text,
193 bool TryConsumeEndOfDeclarationFinishScope(
const char* text,
196 bool ConsumeEndOfDeclaration(
const char* text,
211 void AddWarning(
const string& warning);
242 void AddPath(
int path_component);
261 void RecordLegacyLocation(
268 int CurrentPathSize()
const;
367 int location_field_number_for_nested_type,
376 int location_field_number_for_nested_type,
404 int location_field_number_for_nested_type,
437 const int optionsFieldNumber,
476 bool ParseOption(
Message*
options,
const LocationRecorder& options_location,
485 const LocationRecorder& part_location,
518 return syntax_identifier_ ==
"proto3";
585 std::pair<const Message*, DescriptorPool::ErrorCollector::ErrorLocation>,
586 std::pair<int, int> >
589 std::map<std::pair<const Message*, string>, std::pair<int, int> >
597 #include <google/protobuf/port_undef.inc>
599 #endif // GOOGLE_PROTOBUF_COMPILER_PARSER_H__
GLuint const GLchar * name
int Find(PyContainer *self, PyObject *item)
const Descriptor::ReservedRange value
std::string syntax_identifier_
#define GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TypeName)
io::ErrorCollector * error_collector_
std::string upcoming_doc_comments_
SourceCodeInfo * source_code_info_
bool require_syntax_identifier_
GLuint GLsizei const GLchar * label
bool is_map_field(const upb_fielddef *field)
static int Init(CMessage *self, PyObject *args, PyObject *kwargs)
GLsizei const GLchar *const * string
static PyObject * Add(PyObject *self, PyObject *file_descriptor_proto)
bool stop_after_syntax_identifier_
LocationMap location_map_
zend_class_entry * enum_type
std::string value_type_name
FieldDescriptorProto_Type
bool require_syntax_identifier_
std::string key_type_name
std::map< std::pair< const Message *, DescriptorPool::ErrorCollector::ErrorLocation >, std::pair< int, int > > LocationMap
FieldDescriptorProto::Type value_type
SourceCodeInfo::Location * location_
FieldDescriptorProto_Label
const char * detached_comments[10]
static bool ParseType(State *state)
SourceLocationTable * source_location_table_
const std::string & GetSyntaxIdentifier()
const FieldDescriptor * field
bool DefaultToOptionalFields() const
std::vector< std::string > upcoming_detached_comments_
MockErrorCollector error_collector_
void RecordSourceLocationsTo(SourceLocationTable *location_table)
SourceCodeInfo * source_code_info_
void SetStopAfterSyntaxIdentifier(bool value)
void RecordErrorsTo(io::ErrorCollector *error_collector)
GLsizei const GLfloat * value
const upb_json_parsermethod const upb_symtab upb_sink * output
std::map< std::pair< const Message *, string >, std::pair< int, int > > import_location_map_
void SetRequireSyntaxIdentifier(bool value)
GLenum GLuint GLenum GLsizei const GLchar * message
FieldDescriptorProto::Type key_type
const Descriptor::ReservedRange const EnumValueDescriptor method
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:57