MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / DescriptorRegistered

Method DescriptorRegistered

runtime/function_registry.cc:221–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221bool FunctionRegistry::DescriptorRegistered(
222 const cel::FunctionDescriptor& descriptor) const {
223 auto overloads = functions_.find(descriptor.name());
224 if (overloads == functions_.end()) {
225 return false;
226 }
227 const RegistryEntry& entry = overloads->second;
228 for (const auto& static_ovl : entry.static_overloads) {
229 if (static_ovl.descriptor->ShapeMatches(descriptor)) {
230 return true;
231 }
232 }
233 for (const auto& lazy_ovl : entry.lazy_overloads) {
234 if (lazy_ovl.descriptor->ShapeMatches(descriptor)) {
235 return true;
236 }
237 }
238 return false;
239}
240
241bool FunctionRegistry::ValidateNonStrictOverload(
242 const cel::FunctionDescriptor& descriptor) const {

Callers

nothing calls this directly

Calls 3

nameMethod · 0.45
endMethod · 0.45
ShapeMatchesMethod · 0.45

Tested by

no test coverage detected