struct

Ast::Signature

Inherits IrNode < Struct < Value < Object

Constructors

new(location : Location, type_params : Slice(TypeParameter) | ::Nil = nil, parameters : ::Array(Parameter) = [] of Parameter, return_type : Type | ::Nil = nil, return_convention : Convention = nil)
Source

Instance methods

location
Source
location=(location : Location)
Source
parameters
Source
parameters=(parameters : ::Array(Parameter))
Source
return_convention
Source
return_convention=(return_convention : Convention | ::Nil)
Source
return_type
Source
return_type=(return_type : Type | ::Nil)
Source
to_s(io : IO)

Same as #inspect(io).

Source
type_params
Source
type_params=(type_params : Slice(TypeParameter) | ::Nil)
Source