Skip to content

class Crystal::ProcNotation
inherits Crystal::ASTNode

The Proc notation in the type grammar:

input1, input2, ..., inputN -> output

Class methods

.new(inputs = nil, output = nil)

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

#hash(hasher)

#inputs : Array(ASTNode)?

View source

#inputs=(inputs : Array(ASTNode)?)

View source

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

View source

#output : ASTNode?

View source

#output=(output : ASTNode?)

View source