Represents the use of the ‘alias` keyword to alias a global variable.

alias $foo $bar
^^^^^^^^^^^^^^^
Attributes
Read

Represents the new name of the global variable that can be used after aliasing.

alias $foo $bar
      ^^^^
Read

Represents the old name of the global variable that can be used before aliasing.

alias $foo $bar
           ^^^^
Class Methods

Initialize a new AliasGlobalVariableNode node.

Return a symbol representation of this node type. See ‘Node::type`.

Instance Methods

Implements case-equality for the node. This is effectively == but without comparing the value of locations. Locations are checked only for presence.

def accept: (Visitor visitor) -> void

def child_nodes: () -> Array[nil | Node]

def comment_targets: () -> Array[Node | Location]

An alias for child_nodes

def inspect -> String

def keyword: () -> String

The location of the ‘alias` keyword.

alias $foo $bar
^^^^^

Save the keyword_loc location using the given saved source so that it can be retrieved later.

Return a symbol representation of this node type. See ‘Node#type`.