Skip to content

class Crystal::ProcLiteral
inherits Crystal::ASTNode

Class methods

.new(def __arg52 = Def.new("->"))

View source

Methods

#==(other : self)

Returns true if this reference is the same as other. Invokes same?.

#accept_children(visitor)

View source

#clone_without_location

View source

#def : Def

View source

#def=(def __arg0 : Def)

View source

#expected_return_type : Type?

View source

#expected_return_type=(expected_return_type : Type?)

View source

#force_nil=(force_nil)

View source

#force_nil? : Bool

View source

#hash(hasher)

#interpret(method : String, args : Array(ASTNode), named_args : Hash(String, ASTNode)?, block : Crystal::Block?, interpreter : Crystal::MacroInterpreter, name_loc : Location?)

View source

#proc_pointer : ProcPointer?

If this ProcLiteral was created from expanding a ProcPointer, this holds the reference to it.

View source

#proc_pointer=(proc_pointer : ProcPointer?)

If this ProcLiteral was created from expanding a ProcPointer, this holds the reference to it.

View source

#return_type

View source

#update(from = nil)

View source