swc_core::ecma::ast

Trait EsReserved

pub trait EsReserved: AsRef<str> {
    // Provided methods
    fn is_reserved(&self) -> bool { ... }
    fn is_reserved_in_strict_mode(&self, is_module: bool) -> bool { ... }
    fn is_reserved_in_strict_bind(&self) -> bool { ... }
    fn is_reserved_in_es3(&self) -> bool { ... }
    fn is_reserved_in_any(&self) -> bool { ... }
}
Available on crate features __ecma and ecma_ast only.

Provided Methods§

fn is_reserved(&self) -> bool

fn is_reserved_in_strict_mode(&self, is_module: bool) -> bool

fn is_reserved_in_strict_bind(&self) -> bool

fn is_reserved_in_es3(&self) -> bool

fn is_reserved_in_any(&self) -> bool

Implementations on Foreign Types§

§

impl EsReserved for &str

§

impl EsReserved for String

Implementors§