swc_ecma_parser

Type Alias EsConfig

source
pub type EsConfig = EsSyntax;
👎Deprecated: Use ‘EsSyntax’ instead

Aliased Type§

struct EsConfig {
    pub jsx: bool,
    pub fn_bind: bool,
    pub decorators: bool,
    pub decorators_before_export: bool,
    pub export_default_from: bool,
    pub import_attributes: bool,
    pub allow_super_outside_method: bool,
    pub allow_return_outside_function: bool,
    pub auto_accessors: bool,
    pub explicit_resource_management: bool,
}

Fields§

§jsx: 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§import_attributes: bool

Stage 3.

§allow_super_outside_method: bool§allow_return_outside_function: bool§auto_accessors: bool§explicit_resource_management: bool