mod collector;
pub(crate) mod helpers;
mod process;
#[cfg(test)]
mod tests;
mod transform;
use vize_carton::{FxHashMap, String};
#[derive(Debug, Clone)]
pub struct PropsDestructureBinding {
pub local: String,
pub default: Option<String>,
}
#[derive(Debug, Clone, Default)]
pub struct PropsDestructuredBindings {
pub bindings: FxHashMap<String, PropsDestructureBinding>,
pub rest_id: Option<String>,
}
impl PropsDestructuredBindings {
pub fn is_empty(&self) -> bool {
self.bindings.is_empty() && self.rest_id.is_none()
}
}
pub use helpers::gen_props_access_exp;
pub use process::process_props_destructure;
pub use transform::transform_destructured_props;