struct

Ast::Function

Inherits Ast::HasSignature < Ast::TopLevelItem < IrNode < Struct < Value < Object

Constructors

new(location : Location, name : ::String, signature : Signature, body : Expr)
Source
new(name : ::String, signature : Signature, body : Expr)
Source

Instance methods

body
Source
body=(body : Expr)
Source
name
Source
name=(name : ::String)
Source
to_s(io : IO)

Same as #inspect(io).

Source