class

DoisC::ASTData::FunctionDeclaration

Inherits DoisC::ASTData::Declaration < DoisC::ASTData::Statement < DoisC::ASTData::Node < Reference < Object

Declaration of a function, i.e. fn foo $ ...

Constructors

new(name : String, params : Array(Parameter), generics : Array(String), body : Expression, return_type_id : TypeID, source_location : SourceLocation)
Source

Instance methods

body
Source
generics
Source
name
Source
params
Source
resolved_type
Source
resolved_type=(resolved_type : Types::Type | Nil)
Source
return_type_id
Source