Skip to main content

PROJECT_INDEX

Constant PROJECT_INDEX 

Source
const PROJECT_INDEX: LocalKey<RefCell<Option<(usize, Rc<ProjectIndex>)>>>;
Expand description

Project index keyed by the [hir::Hir] address. The HIR lives inside the [solar::sema::Compiler] for the whole lint run, so its address is stable and the same index can be reused across every contract instead of rebuilt per source.