class Mint::Ast::Function
- Mint::Ast::Function
- Mint::Ast::Node
- Reference
- Object
Defined in:
ast/function.crConstructors
Instance Method Summary
- #arguments : Array(Mint::Ast::Argument)
- #body : Mint::Ast::Block
- #comment : Mint::Ast::Comment?
-
#keep_name=(keep_name : Bool)
TOOD: Remove when the old compiler is removed.
-
#keep_name? : Bool
TOOD: Remove when the old compiler is removed.
- #name : Mint::Ast::Variable
- #type : Mint::Ast::Node?
Instance methods inherited from class Mint::Ast::Node
file : Parser::File
file,
from : Int64
from,
from=(from : Int64)
from=,
location : Location
location,
new_line?
new_line?,
parent : Node | Nil
parent,
parent=(parent : Node | Nil)
parent=,
source
source,
to : Int64
to,
to_tuple
to_tuple
Constructor methods inherited from class Mint::Ast::Node
new(file : Mint::Parser::File, from : Int64, to : Int64)
new
Class methods inherited from class Mint::Ast::Node
compute_location(file : Parser::File, from, to)
compute_location,
compute_position(lines, needle) : Position
compute_position
Constructor Detail
def self.new(arguments : Array(Argument), file : Parser::File, comment : Comment | Nil, name : Variable, type : Node | Nil, body : Block, from : Int64, to : Int64)
#