Struct swc_ecma_transforms::helpers::Helpers

source ·
pub struct Helpers { /* private fields */ }
Expand description

Tracks used helper methods. (e.g. __extends)

Implementations§

source§

impl Helpers

source

pub fn new(external: bool) -> Helpers

source

pub const fn mark(&self) -> Mark

source

pub const fn external(&self) -> bool

source§

impl Helpers

source

pub fn apply_decorated_descriptor(&self)

source

pub fn array_like_to_array(&self)

source

pub fn array_with_holes(&self)

source

pub fn array_without_holes(&self)

source

pub fn assert_this_initialized(&self)

source

pub fn async_generator(&self)

source

pub fn async_generator_delegate(&self)

source

pub fn async_iterator(&self)

source

pub fn async_to_generator(&self)

source

pub fn await_async_generator(&self)

source

pub fn await_value(&self)

source

pub fn check_private_redeclaration(&self)

source

pub fn class_apply_descriptor_destructure(&self)

source

pub fn class_apply_descriptor_get(&self)

source

pub fn class_apply_descriptor_set(&self)

source

pub fn class_apply_descriptor_update(&self)

source

pub fn class_call_check(&self)

source

pub fn class_check_private_static_field_descriptor(&self)

source

pub fn class_extract_field_descriptor(&self)

source

pub fn class_name_tdz_error(&self)

source

pub fn class_private_field_get(&self)

source

pub fn class_private_field_init(&self)

source

pub fn class_private_field_loose_base(&self)

source

pub fn class_private_field_loose_key(&self)

source

pub fn class_private_field_set(&self)

source

pub fn class_private_field_update(&self)

source

pub fn class_private_method_get(&self)

source

pub fn class_private_method_init(&self)

source

pub fn class_private_method_set(&self)

source

pub fn class_static_private_field_spec_get(&self)

source

pub fn class_static_private_field_spec_set(&self)

source

pub fn class_static_private_field_update(&self)

source

pub fn construct(&self)

source

pub fn create_class(&self)

source

pub fn decorate(&self)

source

pub fn defaults(&self)

source

pub fn define_enumerable_properties(&self)

source

pub fn define_property(&self)

source

pub fn export_star(&self)

source

pub fn extends(&self)

source

pub fn get(&self)

source

pub fn get_prototype_of(&self)

source

pub fn inherits(&self)

source

pub fn inherits_loose(&self)

source

pub fn initializer_define_property(&self)

source

pub fn initializer_warning_helper(&self)

source

pub fn instanceof(&self)

source

pub fn interop_require_default(&self)

source

pub fn interop_require_wildcard(&self)

source

pub fn is_native_function(&self)

source

pub fn iterable_to_array(&self)

source

pub fn iterable_to_array_limit(&self)

source

pub fn iterable_to_array_limit_loose(&self)

source

pub fn jsx(&self)

source

pub fn new_arrow_check(&self)

source

pub fn non_iterable_rest(&self)

source

pub fn non_iterable_spread(&self)

source

pub fn object_destructuring_empty(&self)

source

pub fn object_spread(&self)

source

pub fn object_spread_props(&self)

source

pub fn object_without_properties(&self)

source

pub fn object_without_properties_loose(&self)

source

pub fn possible_constructor_return(&self)

source

pub fn read_only_error(&self)

source

pub fn set(&self)

source

pub fn set_prototype_of(&self)

source

pub fn skip_first_generator_next(&self)

source

pub fn sliced_to_array(&self)

source

pub fn sliced_to_array_loose(&self)

source

pub fn super_prop_base(&self)

source

pub fn tagged_template_literal(&self)

source

pub fn tagged_template_literal_loose(&self)

source

pub fn throw(&self)

source

pub fn to_array(&self)

source

pub fn to_consumable_array(&self)

source

pub fn to_primitive(&self)

source

pub fn to_property_key(&self)

source

pub fn update(&self)

source

pub fn type_of(&self)

source

pub fn unsupported_iterable_to_array(&self)

source

pub fn wrap_async_generator(&self)

source

pub fn wrap_native_super(&self)

source

pub fn write_only_error(&self)

source

pub fn class_private_field_destructure(&self)

source

pub fn class_static_private_field_destructure(&self)

source

pub fn class_static_private_method_get(&self)

source

pub fn class_check_private_static_access(&self)

source

pub fn is_native_reflect_construct(&self)

source

pub fn create_super(&self)

source

pub fn create_for_of_iterator_helper_loose(&self)

source

pub fn ts_decorate(&self)

source

pub fn ts_generator(&self)

source

pub fn ts_metadata(&self)

source

pub fn ts_param(&self)

source

pub fn ts_values(&self)

source

pub fn apply_decs_2203_r(&self)

source

pub fn identity(&self)

source

pub fn dispose(&self)

source

pub fn using(&self)

source

pub fn using_ctx(&self)

source§

impl Helpers

source

pub fn extend_from(&self, other: &Helpers)

Trait Implementations§

source§

impl Debug for Helpers

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Helpers

source§

fn default() -> Helpers

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more