Type Alias rustpython_ast::located::StmtFunctionDef
source · pub type StmtFunctionDef = StmtFunctionDef<SourceRange>;Aliased Type§
struct StmtFunctionDef {
pub range: SourceRange,
pub name: Identifier,
pub args: Box<Arguments<SourceRange>>,
pub body: Vec<Stmt<SourceRange>>,
pub decorator_list: Vec<Expr<SourceRange>>,
pub returns: Option<Box<Expr<SourceRange>>>,
pub type_comment: Option<String>,
pub type_params: Vec<TypeParam<SourceRange>>,
}Fields§
§range: SourceRange§name: Identifier§args: Box<Arguments<SourceRange>>§body: Vec<Stmt<SourceRange>>§decorator_list: Vec<Expr<SourceRange>>§returns: Option<Box<Expr<SourceRange>>>§type_comment: Option<String>§type_params: Vec<TypeParam<SourceRange>>