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

Method IdsAreUnique

common/ast/navigable_ast_internal.h:282–284  ·  view source on GitHub ↗

Check whether the source AST used unique IDs for each node. This is typically the case, but older versions of the parsers didn't guarantee uniqueness for nodes generated by some macros and ASTs modified outside of CEL's parse/type check may not have unique IDs.

Source from the content-addressed store, hash-verified

280 // guarantee uniqueness for nodes generated by some macros and ASTs modified
281 // outside of CEL's parse/type check may not have unique IDs.
282 bool IdsAreUnique() const {
283 return metadata_->id_to_node.size() == metadata_->nodes.size();
284 }
285
286 // Equality operators test for identity. They are intended to distinguish
287 // moved-from or uninitialized instances from initialized.

Callers 2

TESTFunction · 0.80
TESTFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64