Enum swc_ecma_parser::Syntax
source · [−]Variants
Es(EsConfig)
Standard
Typescript(TsConfig)
This variant requires the cargo feature typescript
to be enabled.
Implementations
sourceimpl Syntax
impl Syntax
pub fn import_assertions(self) -> bool
pub fn fn_bind(self) -> bool
pub fn decorators(self) -> bool
pub fn decorators_before_export(self) -> bool
sourcepub const fn typescript(self) -> bool
pub const fn typescript(self) -> bool
Should we parse typescript?
pub fn export_default_from(self) -> bool
pub fn dts(self) -> bool
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Syntax
impl<'de> Deserialize<'de> for Syntax
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Syntax
impl Eq for Syntax
impl StructuralEq for Syntax
impl StructuralPartialEq for Syntax
Auto Trait Implementations
impl RefUnwindSafe for Syntax
impl Send for Syntax
impl Sync for Syntax
impl Unpin for Syntax
impl UnwindSafe for Syntax
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more