class YARP::AliasNode

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/yarp/node.rbs

class YARP::AliasNode < YARP::Node
  def accept: (Analyzer::Visitor visitor) -> Array[Array, ]
  def child_nodes: () -> Array[YARP::SymbolNode]
  def initialize: (YARP::SymbolNode new_name, YARP::SymbolNode old_name, YARP::Location keyword_loc, YARP::Location location) -> void
end

^^^^^^^^^^^^^
alias foo bar
Represents the use of the ‘alias` keyword.

def accept(visitor)

Experimental RBS support (using type sampling data from the type_fusion project).

def accept: (Analyzer::Visitor visitor) -> Array |

This signature was generated using 16 samples from 1 application.

def accept: (visitor: Visitor) -> void
def accept(visitor)
  visitor.visit_alias_node(self)
end

def child_nodes

Experimental RBS support (using type sampling data from the type_fusion project).

def child_nodes: () -> YARP::SymbolNode

This signature was generated using 19 samples from 1 application.

def child_nodes: () -> Array[nil | Node]
def child_nodes
  [new_name, old_name]
end

def deconstruct_keys(keys)

def deconstruct_keys: (keys: Array[Symbol]) -> Hash[Symbol, nil | Node | Array[Node] | String | Token | Array[Token] | Location]
def deconstruct_keys(keys)
  { new_name: new_name, old_name: old_name, keyword_loc: keyword_loc, location: location }
end

def initialize(new_name, old_name, keyword_loc, location)

Experimental RBS support (using type sampling data from the type_fusion project).

def initialize: (YARP::SymbolNode new_name, YARP::SymbolNode old_name, YARP::Location keyword_loc, YARP::Location location) -> void

This signature was generated using 9 samples from 1 application.

def initialize: (new_name: Node, old_name: Node, keyword_loc: Location, location: Location) -> void
def initialize(new_name, old_name, keyword_loc, location)
  @new_name = new_name
  @old_name = old_name
  @keyword_loc = keyword_loc
  @location = location
end

def keyword

def keyword: () -> String
def keyword
  keyword_loc.slice
end