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.
| 115 | // should have enough type information in a checked expr to find a more |
| 116 | // specific candidate list. |
| 117 | inline 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 |
no outgoing calls