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

Method FindId

common/ast/navigable_ast_internal.h:256–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254 // If ids are non-unique, the first pre-order node encountered with id is
255 // returned.
256 const NodeType* absl_nullable FindId(int64_t id) const {
257 auto it = metadata_->id_to_node.find(id);
258 if (it == metadata_->id_to_node.end()) {
259 return nullptr;
260 }
261 return it->second;
262 }
263
264 // Return ptr to the AST node representing the given Expr protobuf node.
265 const NodeType* absl_nullable FindExpr(

Callers 2

TESTFunction · 0.80
TESTFunction · 0.80

Calls 1

endMethod · 0.45

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64