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

Method unparse_arg

crates/codegen/src/unparse.rs:512–518  ·  view source on GitHub ↗
(&mut self, arg: &ast::Parameter)

Source from the content-addressed store, hash-verified

510 }
511
512 fn unparse_arg(&mut self, arg: &ast::Parameter) -> fmt::Result {
513 self.p_id(&arg.name)?;
514 if let Some(ann) = &arg.annotation {
515 write!(self, ": {}", UnparseExpr::new(ann, self.source))?;
516 }
517 Ok(())
518 }
519
520 fn unparse_comp(&mut self, generators: &[ast::Comprehension]) -> fmt::Result {
521 for comp in generators {

Callers 2

unparse_argumentsMethod · 0.80
unparse_function_argMethod · 0.80

Calls 1

p_idMethod · 0.80

Tested by

no test coverage detected