pub fn new(
        visitor: Rc<dyn CompileVisitor>,
        storage: Storage,
        unit: UnitBuilder,
        consts: Consts,
        gen: Gen,
    ) -> Self {
        Self {
            inner: Rc::new(RefCell::new(QueryInner {
                visitor,
                meta: HashMap::new(),
                storage,
                prelude: unit.prelude(),
                unit,
                consts,
                gen,
                queue: VecDeque::new(),
                indexed: HashMap::new(),
                const_fns: HashMap::new(),
                query_paths: HashMap::new(),
                internal_macros: HashMap::new(),
                items: HashMap::new(),
                names: Names::default(),
                modules: HashMap::new(),
            })),
        }
    }
/// Construct a new compilation context.
Construct a new compilation context.
Construct a new compilation context .
pub fn new(
        visitor: Rc<dyn CompileVisitor>,
        storage: Storage,
        unit: UnitBuilder,
        consts: Consts,
        gen: Gen,
    ) -> Self {
        Self {
            inner: Rc::new(RefCell::new(QueryInner {
                visitor,
                meta: HashMap::new(),
                storage,
                prelude: unit.prelude(),
                unit,
                consts,
                gen,
                queue: VecDeque::new(),
                indexed: HashMap::new(),
                const_fns: HashMap::new(),
                query_paths: HashMap::new(),
                internal_macros: HashMap::new(),
                items: HashMap::new(),
                names: Names::default(),
                modules: HashMap::new(),
            })),
        }
    }
pub fn new ( visitor : Rc < dyn CompileVisitor > , storage : Storage , unit : UnitBuilder , consts : Consts , gen : Gen , ) -> Self { Self { inner : Rc :: new ( RefCell :: new ( QueryInner { visitor , meta : HashMap :: new ( ) , storage , prelude : unit . prelude ( ) , unit , consts , gen , queue : VecDeque :: new ( ) , indexed : HashMap :: new ( ) , const_fns : HashMap :: new ( ) , query_paths : HashMap :: new ( ) , internal_macros : HashMap :: new ( ) , items : HashMap :: new ( ) , names : Names :: default ( ) , modules : HashMap :: new ( ) , } ) ) , } }
Construct a new compilation context.
Construct a new compilation context .
visitor
Rc<dyn CompileVisitor>
storage
Storage
unit
UnitBuilder
consts
Consts
gen
Gen
visitor
Rc<dyn CompileVisitor>
storage
Storage
unit
UnitBuilder
consts
Consts
gen
Gen