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

Method FindExpr

common/ast/navigable_ast_internal.h:265–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263
264 // Return ptr to the AST node representing the given Expr protobuf node.
265 const NodeType* absl_nullable FindExpr(
266 const ExprType* absl_nonnull expr) const {
267 auto it = metadata_->expr_to_node.find(expr);
268 if (it == metadata_->expr_to_node.end()) {
269 return nullptr;
270 }
271 return it->second;
272 }
273
274 // The root of the AST.
275 const NodeType& Root() const { return *metadata_->nodes[0]; }

Callers 2

TESTFunction · 0.80
TESTFunction · 0.80

Calls 1

endMethod · 0.45

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64