swc_ecma_compiler 5.0.0

Compatibility layer for the ECMAScript standard
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use bitflags::bitflags;

bitflags! {
    #[derive(Debug, Clone, Copy)]
    pub struct Features: u64 {
        const STATIC_BLOCKS = 1 << 0;
        const OPTIONAL_CHAINING = 1 << 1;
        const PRIVATE_IN_OBJECT = 1 << 2;
        const LOGICAL_ASSIGNMENTS = 1 << 3;
        const EXPORT_NAMESPACE_FROM = 1 << 4;
    }
}

impl Default for Features {
    fn default() -> Self {
        Self::empty()
    }
}