swc_core::ecma::utils::swc_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 __utils 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§