Function swc_core::ecma::utils::collect_decls_with_ctxt

pub fn collect_decls_with_ctxt<I, N>(
    n: &N,
    ctxt: SyntaxContext
) -> HashSet<I, RandomState>
where I: IdentLike + Eq + Hash + Send + Sync, N: VisitWith<BindingCollector<I>>,
Available on crate features __ecma and __utils only.
Expand description

Collects binding identifiers, but only if it has a context which is identical to ctxt.