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        const NULLISH_COALESCING = 1 << 5;
12    }
13}
14
15impl Default for Features {
16    fn default() -> Self {
17        Self::empty()
18    }
19}