swc_core::ecma::utils::swc_common

Derive Macro EqIgnoreSpan

#[derive(EqIgnoreSpan)]
{
    // Attributes available to this derive:
    #[not_spanned]
    #[use_eq]
}
Available on crate features __ecma and __utils only.
Expand description

Derives swc_common::EqIgnoreSpan.

Fields annotated with #[not_spanned] or #[use_eq] will use == instead of eq_ignore_span.