MCPcopy Create free account
hub / github.com/Samsung/UTopia / addFieldToDescriptorPointerType

Method addFieldToDescriptorPointerType

lib/generation/ProtobufDescriptor.cpp:159–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159google::protobuf::FieldDescriptorProto *
160ProtobufDescriptor::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
170google::protobuf::FieldDescriptorProto *
171ProtobufDescriptor::addFieldToDescriptor(

Callers

nothing calls this directly

Calls 2

isPointerTypeMethod · 0.80
isStringTypeMethod · 0.80

Tested by

no test coverage detected