Trait Analyze
twiggy_traits
pub trait Analyze { type Data: Emit; fn analyze(items: &mut Items) -> Result<Self::Data, Error>; }
An analysis takes our IR and returns some kind of data results that can be emitted.
type Data: Emit
The resulting data from this analysis.
fn analyze(items: &mut Items) -> Result<Self::Data, Error>
Run this analysis on the given IR items.