Expand description
AST Cache for efficient multi-analysis
Provides a caching layer for parsed ASTs to prevent redundant parsing when running multiple sub-analyses on the same file (TIGER-03 mitigation).
§Usage
ⓘ
let mut cache = AstCache::new(100);
let tree = cache.get_or_parse(&path, &source)?;
// Tree is cached for subsequent callsStructs§
- AstCache
- AST cache with LRU eviction
- AstCache
Key - Cache key combining path and modification time
- Cache
Stats - Cache statistics
Constants§
- MAX_
CACHE_ SIZE - Maximum cache size (number of ASTs to cache)