/// Emit the global unparametrized things which are unambiguous, like free
/// functions.
Emit the global unparametrized things which are unambiguous, like free
functions.
Emit the global unparametrized things which are unambiguous like free functions .
pub fn emit_globals(&mut self, ast: &ast::Root) -> Result<()> {
        for file in &ast.files {
            for item in &file.items {
                match &item.data {
                    ast::ItemData::SubroutineDecl(decl) => {
                        self.emit_function(decl.id(), self.default_param_env())?;
                    }
                    _ => (),
                }
            }
        }
        Ok(())
    }
pub fn emit_globals ( & mut self , ast : & ast :: Root ) -> Result < ( ) > { for file in & ast . files { for item in & file . items { match & item . data { ast :: ItemData :: SubroutineDecl ( decl ) => { self . emit_function ( decl . id ( ) , self . default_param_env ( ) ) ? ; } _ => ( ) , } } } Ok ( ( ) ) }
Emit the global unparametrized things which are unambiguous, like free
functions.
Emit the global unparametrized things which are unambiguous like free functions .
&mut self
ast
&ast::Root