Syntax::FunDef
Inherits Syntax::ASTNode < Reference < Object
Constructors
new(name : String, args : Array(Syntax::Arg) = [] of Arg, return_type : Syntax::ASTNode | Nil = nil, varargs : Bool = false, body : Syntax::ASTNode | Nil = nil, real_name : String = name)
SourceInstance methods
==(other : self)
Returns true if this reference is the same as other. Invokes same?.
accept_children(visitor)
Sourceargs
Sourcebody
Sourcebody=(body : ASTNode | Nil)
Sourceclone_without_location
Sourcedoc
Returns the doc comment attached to this node. Not every node
supports having doc comments, so by default this returns nil.
hash(hasher)
See Object#hash(hasher)
name
Sourcereal_name
Sourcereturn_type
Sourcereturn_type=(return_type : ASTNode | Nil)
Sourcevarargs?
Source