#include <parser.h>
Public Member Functions | |
void | Add (const Message *descriptor, DescriptorPool::ErrorCollector::ErrorLocation location, int line, int column) |
void | AddImport (const Message *descriptor, const string &name, int line, int column) |
void | Clear () |
bool | Find (const Message *descriptor, DescriptorPool::ErrorCollector::ErrorLocation location, int *line, int *column) const |
bool | FindImport (const Message *descriptor, const string &name, int *line, int *column) const |
SourceLocationTable () | |
~SourceLocationTable () | |
Private Types | |
typedef std::map< std::pair< const Message *, DescriptorPool::ErrorCollector::ErrorLocation >, std::pair< int, int > > | LocationMap |
Private Attributes | |
std::map< std::pair< const Message *, string >, std::pair< int, int > > | import_location_map_ |
LocationMap | location_map_ |
|
private |
google::protobuf::compiler::SourceLocationTable::SourceLocationTable | ( | ) |
google::protobuf::compiler::SourceLocationTable::~SourceLocationTable | ( | ) |
void google::protobuf::compiler::SourceLocationTable::Add | ( | const Message * | descriptor, |
DescriptorPool::ErrorCollector::ErrorLocation | location, | ||
int | line, | ||
int | column | ||
) |
void google::protobuf::compiler::SourceLocationTable::Clear | ( | ) |
bool google::protobuf::compiler::SourceLocationTable::Find | ( | const Message * | descriptor, |
DescriptorPool::ErrorCollector::ErrorLocation | location, | ||
int * | line, | ||
int * | column | ||
) | const |
|
private |