1pub mod binder;
2pub mod collector;
3
4pub use binder::{BinderScopes, bind_symbols_with};
5pub use collector::{CollectorScopes, build_and_collect_symbols, collect_symbols_with};
6
7#[derive(Default, Clone, Debug)]
8pub struct ResolverOption {
9 pub print_ir: bool,
10 pub sequential: bool,
11 pub bind_func_bodies: bool,
12}
13
14impl ResolverOption {
15 pub fn with_print_ir(mut self, print_ir: bool) -> Self {
16 self.print_ir = print_ir;
17 self
18 }
19
20 pub fn with_sequential(mut self, sequential: bool) -> Self {
21 self.sequential = sequential;
22 self
23 }
24
25 pub fn with_bind_func_bodies(mut self, bind_func_bodies: bool) -> Self {
26 self.bind_func_bodies = bind_func_bodies;
27 self
28 }
29}