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

Method GetSubplan

eval/compiler/flat_expr_builder_extensions.cc:397–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397ExecutionPathView PlannerContext::GetSubplan(const cel::Expr& node) {
398 auto* subexpression = program_builder_.GetSubexpression(&node);
399 if (subexpression == nullptr) {
400 return ExecutionPathView();
401 }
402 subexpression->Flatten();
403 return subexpression->flattened_elements();
404}
405
406absl::StatusOr<ExecutionPath> PlannerContext::ExtractSubplan(
407 const cel::Expr& node) {

Callers 6

GetConstantStringMethod · 0.80
OnPostVisitMethod · 0.80
TEST_FFunction · 0.80
OnPostVisitMethod · 0.80
OnPostVisitMethod · 0.80

Calls 1

FlattenMethod · 0.45

Tested by 1

TEST_FFunction · 0.64