| 157 | } |
| 158 | |
| 159 | google::protobuf::FieldDescriptorProto * |
| 160 | ProtobufDescriptor::addFieldToDescriptorPointerType( |
| 161 | google::protobuf::DescriptorProto &Desc, const std::string &FieldName, |
| 162 | const Type &T) { |
| 163 | assert(T.isPointerType() && "Unexpected Program State"); |
| 164 | if (!T.isStringType()) |
| 165 | return nullptr; |
| 166 | return addFieldToDescriptor( |
| 167 | Desc, FieldName, google::protobuf::FieldDescriptorProto::TYPE_BYTES); |
| 168 | } |
| 169 | |
| 170 | google::protobuf::FieldDescriptorProto * |
| 171 | ProtobufDescriptor::addFieldToDescriptor( |
nothing calls this directly
no test coverage detected