class Stacklang::AST::Function
- Stacklang::AST::Function
- Stacklang::AST
- Reference
- Object
Defined in:
stacklang/ast.crConstructors
Instance Method Summary
- #body : Array(Stacklang::AST::Statement)
- #dump(io, indent = 0)
- #extern : Bool
- #name : Stacklang::AST::Identifier
- #parameters : Array(Stacklang::AST::Function::Parameter)
- #return_type : Stacklang::AST::Type?
Instance methods inherited from class Stacklang::AST
character
character,
dump(io, indent = 0)
dump,
line
line,
to_s(io : IO)
to_s,
token : Tokenizer::Token | Nil
token,
token=(token : Tokenizer::Token | Nil)
token=
Constructor Detail
def self.new(token, name : Identifier, parameters : Array(Parameter), return_type : Type | Nil, body : Array(Statement), extern : Bool)
#