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

Method GetCurrentIndex

eval/compiler/flat_expr_builder.cc:1738–1743  ·  view source on GitHub ↗

Index of the next step to be inserted, in terms of the current subexpression

Source from the content-addressed store, hash-verified

1736 // Index of the next step to be inserted, in terms of the current
1737 // subexpression
1738 ProgramStepIndex GetCurrentIndex() const {
1739 // Nonnull while active -- nullptr indicates logic error in the builder.
1740 ABSL_DCHECK(program_builder_.current() != nullptr);
1741 return {static_cast<int>(program_builder_.current()->elements().size()),
1742 program_builder_.current()};
1743 }
1744
1745 CondVisitor* FindCondVisitor(const cel::Expr* expr) const {
1746 if (cond_visitor_stack_.empty()) {

Callers 4

PostVisitArgMethod · 0.80
PostVisitTargetMethod · 0.80
PostVisitMethod · 0.80
PostVisitArgDefaultMethod · 0.80

Calls 2

currentMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected