MCPcopy Create free account
hub / github.com/Glyphack/enderpy / to_function_def

Method to_function_def

parser/src/ast.rs:971–982  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

969 }
970 }
971 pub fn to_function_def(&self) -> FunctionDef {
972 FunctionDef {
973 node: self.node,
974 name: self.name,
975 args: self.args.clone(),
976 body: self.body.clone(),
977 decorator_list: self.decorator_list.clone(),
978 returns: self.returns.clone(),
979 type_comment: self.type_comment.clone(),
980 type_params: self.type_params.clone(),
981 }
982 }
983}
984
985// https://docs.python.org/3/library/ast.html#ast.ClassDef

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected