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

Method is_contextual

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

Whether the function is contextual (impure). Contextual functions depend on state other than the arguments received in the CEL expression evaluation or have visible side effects. This breaks some of the assumptions of CEL. This flag is used as a hint to the planner that some optimizations are not safe or not effective.

Source from the content-addressed store, hash-verified

88 // some of the assumptions of CEL. This flag is used as a hint to the planner
89 // that some optimizations are not safe or not effective.
90 bool is_contextual() const { return impl_->options.is_contextual; }
91
92 // Helper for matching a descriptor. This tests that the shape is the same --
93 // |other| accepts the same number and types of arguments and is the same call

Callers 2

IsConstExprFunction · 0.80
InvokeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected