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

Function ArgumentsMatcher

eval/compiler/resolver.h:117–123  ·  view source on GitHub ↗

ArgumentMatcher generates a function signature matcher for CelFunctions. TODO(issues/91): this is the same behavior as parsed exprs in the CPP evaluator (just check the right call style and number of arguments), but we should have enough type information in a checked expr to find a more specific candidate list.

Source from the content-addressed store, hash-verified

115// should have enough type information in a checked expr to find a more
116// specific candidate list.
117inline std::vector<cel::Kind> ArgumentsMatcher(int argument_count) {
118 std::vector<cel::Kind> argument_matcher(argument_count);
119 for (int i = 0; i < argument_count; i++) {
120 argument_matcher[i] = cel::Kind::kAny;
121 }
122 return argument_matcher;
123}
124
125} // namespace google::api::expr::runtime
126

Callers 3

TEST_FFunction · 0.85
BestOverloadMatchFunction · 0.85
MaybeUpdateCallNodeMethod · 0.85

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.68