swc_core::ecma::utils

Function default_constructor_with_span

pub fn default_constructor_with_span(
    has_super: bool,
    super_call_span: Span,
) -> Constructor
Available on crate features __ecma and __utils only.
Expand description

super_call_span should be the span of the class definition Use value of Class::span.