pub struct Marks {
pub non_top_level: Mark,
pub synthesized_seq: Mark,
pub standalone: Mark,
pub bundle_of_standalone: Mark,
pub const_ann: Mark,
pub noinline: Mark,
pub pure: Mark,
pub fake_block: Mark,
pub unresolved_mark: Mark,
}
Fields§
§non_top_level: Mark
Mark applied to non-top level variables which is injected while inlining.
In other words, AST nodes marked with this mark will not be treated as a top level item, even if it’s in the top level scope.
synthesized_seq: Mark
Indicates that a sequence expression is generated by the minifier.
This is required because sequences
option is ignored for synthesized
sequences.
standalone: Mark
Treat this function as a top level module.
If this mark is applied, the function will be treated as a black box. It will not be analyzed by usage analyzer.
§Note
Standalone functions should not depend on any other declarations in the outer scope.
This is only applied to swc_ecma_ast::Function and it should not be nested.
bundle_of_standalone: Mark
§const_ann: Mark
/** @const */
.
noinline: Mark
Check for /*#__NOINLINE__*/
pure: Mark
Check for /*#__PURE__*/
fake_block: Mark
This is applied to swc_ecma_ast::BlockStmt which is injected to preserve the side effects.
unresolved_mark: Mark
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Marks
impl RefUnwindSafe for Marks
impl Send for Marks
impl Sync for Marks
impl Unpin for Marks
impl UnwindSafe for Marks
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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