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

Class FunctionDef

parser/src/ast.rs:924–933  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

922// https://docs.python.org/3/library/ast.html#functiondef
923#[derive(Debug, Clone)]
924pub struct FunctionDef {
925 pub node: Node,
926 pub name: StrId,
927 pub args: Arguments,
928 pub body: Vec<Statement>,
929 pub decorator_list: Vec<Expression>,
930 pub returns: Option<Expression>,
931 pub type_comment: Option<String>,
932 pub type_params: Vec<TypeParam>,
933}
934
935// https://docs.python.org/3/library/ast.html#ast.AsyncFunctionDef
936#[derive(Debug, Clone)]

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected