/// Evaluate all parsed ASTs into frozen modules
Evaluate all parsed ASTs into frozen modules
Evaluate all parsed ASTs into frozen modules
fn eval_all(mut self) -> Result<BTreeMap<ModuleId, FrozenModule>> {
        let keys: Vec<_> = self.asts.keys().cloned().collect();
        for id in keys {
            // this can be None when a module has already been parsed as a
            // dependency of another
            if let Some(ast) = self.asts.remove(&id) {
                self.eval_and_freeze_module(&id, ast)?;
            }
        }
        Ok(self.modules)
    }
fn eval_all ( mut self ) -> Result < BTreeMap < ModuleId , FrozenModule > > { let keys : Vec < _ > = self . asts . keys ( ) . cloned ( ) . collect ( ) ; for id in keys { // this can be None when a module has already been parsed as a // dependency of another if let Some ( ast ) = self . asts . remove ( & id ) { self . eval_and_freeze_module ( & id , ast ) ? ; } } Ok ( self . modules ) }
Evaluate all parsed ASTs into frozen modules
Evaluate all parsed ASTs into frozen modules
mut self