Skip to content

class Crystal::OpAssign
inherits Crystal::ASTNode

Operator assign expression.

target op'=' value

For example if op is + then the above is:

target '+=' value

Class methods

.new(target, op, value)

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

#end_location

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

View source

#hash(hasher)

#name_location : Location?

View source

#name_location=(name_location : Location?)

View source

#op=(op : String)

View source

#target : ASTNode

View source

#target=(target : ASTNode)

View source

#value=(value : ASTNode)

View source