swc_ecma_compiler/
features.rs

1use bitflags::bitflags;
2
3bitflags! {
4    #[derive(Debug, Clone, Copy)]
5    pub struct Features: u64 {
6        const STATIC_BLOCKS = 1 << 0;
7        const OPTIONAL_CHAINING = 1 << 1;
8        const PRIVATE_IN_OBJECT = 1 << 2;
9        const LOGICAL_ASSIGNMENTS = 1 << 3;
10        const EXPORT_NAMESPACE_FROM = 1 << 4;
11    }
12}
13
14impl Default for Features {
15    fn default() -> Self {
16        Self::empty()
17    }
18}