swc_ecma_usage_analyzer::alias

Function try_collect_infects_from

source
pub fn try_collect_infects_from<N>(
    node: &N,
    config: AliasConfig,
    max_entries: usize,
) -> Result<FxHashSet<Access>, TooManyAccesses>
where N: InfectableNode + VisitWith<InfectionCollector>,
Expand description

If the number of accesses exceeds max_entries, it returns Err(()).