oxc/crates/oxc_parser/src/state.rs

14 lines
430 B
Rust

use rustc_hash::{FxHashMap, FxHashSet};
use oxc_ast::ast::{AssignmentExpression, Decorator};
#[derive(Default)]
pub struct ParserState<'a> {
pub not_parenthesized_arrow: FxHashSet<u32>,
pub decorators: Vec<Decorator<'a>>,
/// Temporary storage for `CoverInitializedName` `({ foo = bar })`.
/// Keyed by `ObjectProperty`'s span.start.
pub cover_initialized_name: FxHashMap<u32, AssignmentExpression<'a>>,
}