Skip to main content

next_source_id

Function next_source_id 

Source
pub fn next_source_id() -> u32
Expand description

Allocate a new source ID for a freshly parsed AST tree.

Call once per rnix::Root::parse invocation. The returned ID is used as the high 32 bits of the IDENT_CACHE key, ensuring that identifiers from different source texts never collide.