use crate::{Assigner, TypeTable};
use leo_ast::{NodeBuilder, TupleExpression};
use leo_span::Symbol;
use indexmap::IndexMap;
pub struct Destructurer<'a> {
pub(crate) type_table: &'a TypeTable,
pub(crate) node_builder: &'a NodeBuilder,
pub(crate) assigner: &'a Assigner,
pub(crate) tuples: IndexMap<Symbol, TupleExpression>,
pub(crate) is_async: bool,
}
impl<'a> Destructurer<'a> {
pub(crate) fn new(type_table: &'a TypeTable, node_builder: &'a NodeBuilder, assigner: &'a Assigner) -> Self {
Self { type_table, node_builder, assigner, tuples: IndexMap::new(), is_async: false }
}
}