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

Method ShapeMatches

common/function_descriptor.h:95–97  ·  view source on GitHub ↗

Helper for matching a descriptor. This tests that the shape is the same -- |other| accepts the same number and types of arguments and is the same call style).

Source from the content-addressed store, hash-verified

93 // |other| accepts the same number and types of arguments and is the same call
94 // style).
95 bool ShapeMatches(const FunctionDescriptor& other) const {
96 return ShapeMatches(other.receiver_style(), other.types());
97 }
98 bool ShapeMatches(bool receiver_style, absl::Span<const Kind> types) const;
99
100 bool operator==(const FunctionDescriptor& other) const;

Callers

nothing calls this directly

Calls 1

receiver_styleMethod · 0.45

Tested by

no test coverage detected