|
|
|
@ -3975,7 +3975,7 @@ class DescriptorBuilder { |
|
|
|
|
|
|
|
|
|
~DescriptorBuilder(); |
|
|
|
|
|
|
|
|
|
const FileDescriptor* BuildFile(const FileDescriptorProto& original_proto); |
|
|
|
|
const FileDescriptor* BuildFile(const FileDescriptorProto& proto); |
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
DescriptorBuilder(const DescriptorPool* pool, DescriptorPool::Tables* tables, |
|
|
|
@ -5574,10 +5574,8 @@ static void PlanAllocationSize(const FileDescriptorProto& proto, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const FileDescriptor* DescriptorBuilder::BuildFile( |
|
|
|
|
const FileDescriptorProto& original_proto) { |
|
|
|
|
filename_ = original_proto.name(); |
|
|
|
|
|
|
|
|
|
const FileDescriptorProto& proto = original_proto; |
|
|
|
|
const FileDescriptorProto& proto) { |
|
|
|
|
filename_ = proto.name(); |
|
|
|
|
|
|
|
|
|
// Check if the file already exists and is identical to the one being built.
|
|
|
|
|
// Note: This only works if the input is canonical -- that is, it
|
|
|
|
|