Trait swc_ecma_utils::IsDirective

source ·
pub trait IsDirective {
    // Required method
    fn as_ref(&self) -> Option<&Stmt>;

    // Provided methods
    fn is_directive(&self) -> bool { ... }
    fn directive_continue(&self) -> bool { ... }
    fn is_use_strict(&self) -> bool { ... }
}

Required Methods§

source

fn as_ref(&self) -> Option<&Stmt>

Provided Methods§

source

fn is_directive(&self) -> bool

👎Deprecated: use directive_continue instead
source

fn directive_continue(&self) -> bool

source

fn is_use_strict(&self) -> bool

Implementations on Foreign Types§

source§

impl IsDirective for &ModuleItem

source§

fn as_ref(&self) -> Option<&Stmt>

source§

impl IsDirective for ModuleItem

source§

fn as_ref(&self) -> Option<&Stmt>

source§

impl IsDirective for Stmt

source§

fn as_ref(&self) -> Option<&Stmt>

Implementors§