fn compile<Logger: FnMut(String) -> ()>(
        &mut self,
        mut log: Logger,
        address: AccountAddress,
        input: &str,
    ) -> Result<ScriptOrModule> {
        Ok(match parse_script_or_module("unused_file_name", input)? {
            ast::ScriptOrModule::Script(parsed_script) => {
                log(format!("{}", &parsed_script));
                ScriptOrModule::Script(compile_script(Some(address), parsed_script, &self.deps)?.0)
            }
            ast::ScriptOrModule::Module(parsed_module) => {
                log(format!("{}", &parsed_module));
                let module = compile_module(address, parsed_module, &self.deps)?.0;
                let verified =
                    VerifiedModule::bypass_verifier_DANGEROUS_FOR_TESTING_ONLY(module.clone());
                self.deps.push(verified);
                ScriptOrModule::Module(module)
            }
        })
    }
/// Compile a transaction script or module.
Compile a transaction script or module.
Compile a transaction script or module .
fn compile<Logger: FnMut(String) -> ()>(
        &mut self,
        mut log: Logger,
        address: AccountAddress,
        input: &str,
    ) -> Result<ScriptOrModule> {
        Ok(match parse_script_or_module("unused_file_name", input)? {
            ast::ScriptOrModule::Script(parsed_script) => {
                log(format!("{}", &parsed_script));
                ScriptOrModule::Script(compile_script(Some(address), parsed_script, &self.deps)?.0)
            }
            ast::ScriptOrModule::Module(parsed_module) => {
                log(format!("{}", &parsed_module));
                let module = compile_module(address, parsed_module, &self.deps)?.0;
                let verified =
                    VerifiedModule::bypass_verifier_DANGEROUS_FOR_TESTING_ONLY(module.clone());
                self.deps.push(verified);
                ScriptOrModule::Module(module)
            }
        })
    }
fn compile < Logger : FnMut ( String ) -> ( ) > ( & mut self , mut log : Logger , address : AccountAddress , input : & str , ) -> Result < ScriptOrModule > { Ok ( match parse_script_or_module ( " " , input ) ? { ast :: ScriptOrModule :: Script ( parsed_script ) => { log ( format ! ( " " parsed_script ) ) ; ScriptOrModule :: Script ( compile_script ( Some ( address ) , parsed_script , & self . deps ) ? . 0 ) } ast :: ScriptOrModule :: Module ( parsed_module ) => { log ( format ! ( " " parsed_module ) ) ; let module = compile_module ( address , parsed_module , & self . deps ) ? . 0 ; let verified = VerifiedModule :: bypass_verifier_DANGEROUS_FOR_TESTING_ONLY ( module . clone ( ) ) ; self . deps . push ( verified ) ; ScriptOrModule :: Module ( module ) } } ) }
Compile a transaction script or module.
Compile a transaction script or module .
&mut self
log
Logger
address
AccountAddress
input
&str
&mut self
log
Logger
address
AccountAddress
input
&str