Skip to content

class Crystal::While
inherits Crystal::ASTNode

While expression.

'while' cond
  body
'end'

Class methods

.new(cond, body = nil)

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

#break_vars : Array(MetaVars)?

View source

#break_vars=(break_vars : Array(MetaVars)?)

View source

#clone_without_location

View source

#cond=(cond : ASTNode)

View source

#has_breaks?

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