MCPcopy Index your code
hub / github.com/RustPython/RustPython / unparse_function_arg

Method unparse_function_arg

crates/codegen/src/unparse.rs:504–510  ·  view source on GitHub ↗
(&mut self, arg: &ast::ParameterWithDefault)

Source from the content-addressed store, hash-verified

502 Ok(())
503 }
504 fn unparse_function_arg(&mut self, arg: &ast::ParameterWithDefault) -> fmt::Result {
505 self.unparse_arg(&arg.parameter)?;
506 if let Some(default) = &arg.default {
507 write!(self, "={}", UnparseExpr::new(default, self.source))?;
508 }
509 Ok(())
510 }
511
512 fn unparse_arg(&mut self, arg: &ast::Parameter) -> fmt::Result {
513 self.p_id(&arg.name)?;

Callers 1

unparse_argumentsMethod · 0.80

Calls 1

unparse_argMethod · 0.80

Tested by

no test coverage detected