class

Syntax::Assign

Inherits Syntax::ASTNode < Reference < Object

Assign expression.

target '=' value

Constructors

new(target : Syntax::ASTNode, value : Syntax::ASTNode)
Source

Instance methods

==(other : self)

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

accept_children(visitor)
Source
clone_without_location
Source
doc

Returns the doc comment attached to this node. Not every node supports having doc comments, so by default this returns nil.

Source
doc=(doc : String | Nil)
Source
end_location

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

Source
hash(hasher)

See Object#hash(hasher)

target
Source
target=(target : ASTNode)
Source
value
Source
value=(value : ASTNode)
Source
visibility=(visibility)
Source