Struct swc_ecma_parser::EsConfig [−][src]
pub struct EsConfig {Show 17 fields
pub jsx: bool,
pub num_sep: bool,
pub class_private_props: bool,
pub class_private_methods: bool,
pub class_props: bool,
pub fn_bind: bool,
pub decorators: bool,
pub decorators_before_export: bool,
pub export_default_from: bool,
pub export_namespace_from: bool,
pub dynamic_import: bool,
pub nullish_coalescing: bool,
pub optional_chaining: bool,
pub import_meta: bool,
pub top_level_await: bool,
pub import_assertions: bool,
pub static_blocks: bool,
}
Fields
jsx: bool
num_sep: bool
Support numeric separator. Stage 3.
class_private_props: bool
class_private_methods: bool
class_props: bool
fn_bind: bool
Support function bind expression.
decorators: bool
Enable decorators.
decorators_before_export: bool
babel: decorators.decoratorsBeforeExport
Effective only if decorator
is true.
export_default_from: bool
export_namespace_from: bool
dynamic_import: bool
nullish_coalescing: bool
Stage 3.
optional_chaining: bool
import_meta: bool
Stage 3.
top_level_await: bool
Stage 3.
import_assertions: bool
Stage 3.
static_blocks: bool
Trait Implementations
fn 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
Auto Trait Implementations
impl RefUnwindSafe for EsConfig
impl UnwindSafe for EsConfig
Blanket Implementations
Mutably borrows from an owned value. Read more