| 75 | } |
| 76 | |
| 77 | bool DescriptorDatabase::FindFileByName(const std::string& filename, google::protobuf::FileDescriptorProto* output) { |
| 78 | const auto& it = _fileIndexByName.find(filename); |
| 79 | if (it == _fileIndexByName.end()) { |
| 80 | return false; |
| 81 | } |
| 82 | return copyProtoOfFile(it->second, output); |
| 83 | } |
| 84 | |
| 85 | bool DescriptorDatabase::FindFileContainingSymbol(const std::string& symbolName, |
| 86 | google::protobuf::FileDescriptorProto* output) { |