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

Method RecursionEligible

eval/compiler/flat_expr_builder.cc:1083–1088  ·  view source on GitHub ↗

Returns the maximum recursion depth of the current program if it is eligible for recursion, or nullopt if it is not.

Source from the content-addressed store, hash-verified

1081 // Returns the maximum recursion depth of the current program if it is
1082 // eligible for recursion, or nullopt if it is not.
1083 absl::optional<int> RecursionEligible() {
1084 if (!PlanRecursiveProgram() || program_builder_.current() == nullptr) {
1085 return absl::nullopt;
1086 }
1087 return program_builder_.current()->RecursiveDependencyDepth();
1088 }
1089
1090 std::vector<std::unique_ptr<DirectExpressionStep>>
1091 ExtractRecursiveDependencies() {

Callers

nothing calls this directly

Calls 2

currentMethod · 0.80

Tested by

no test coverage detected