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.
| 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. |