stylex_utils/swc.rs
1use swc_core::{common::SyntaxContext, ecma::utils::ExprCtx};
2
3pub fn get_default_expr_ctx() -> ExprCtx {
4 // NOTE: ExprCtx does not have a default constructor, so we have to manually set the fields
5 ExprCtx {
6 unresolved_ctxt: SyntaxContext::empty(),
7 is_unresolved_ref_safe: false,
8 in_strict: false,
9 remaining_depth: 4,
10 }
11}