Skip to main content

parse_with_cache

Function parse_with_cache 

Source
pub fn parse_with_cache(source: &str, cache: &mut NodeCache) -> Parse
Expand description

Parse with a shared rowan::NodeCache for green-node interning.

Re-parsing the same source through the same cache produces structurally identical subtrees that share the same Arc allocation, enabling O(1) pointer-equality checks via GreenNode::eq.