Skip to content

class Crystal::MultiAssign
inherits Crystal::ASTNode

Assign expression.

target [',' target]+ '=' value [',' value]*

Included modules

Crystal::ExpandableNode

Class methods

.new(targets, values)

View source

Methods

#==(other : self)

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

View source

#accept_children(visitor)

View source

#clone_without_location

View source

#end_location

The location where this node ends, or nil if the location is not known.

View source

#hash(hasher)

View source

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

View source

#targets : Array(ASTNode)

View source

#targets=(targets : Array(ASTNode))

View source

#values=(values : Array(ASTNode))

View source