Skip to content

class Crystal::When
inherits Crystal::ASTNode

Class methods

.new(conds : Array(ASTNode), body : ASTNode? = nil, exhaustive = false)

View source

Methods

#==(other : self)

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

#accept_children(visitor)

View source

#body=(body : ASTNode)

View source

#clone_without_location

View source

#conds=(conds : Array(ASTNode))

View source

#exhaustive=(exhaustive : Bool)

View source

#exhaustive? : 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