mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
14 lines
430 B
Rust
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>>,
|
|
}
|