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) -> untyped def child_nodes: () -> untyped 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) -> untyped
This signature was generated using 1 sample from 1 application.
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: () -> untyped
This signature was generated using 1 sample from 1 application.
def child_nodes [new_name, old_name] end
def deconstruct_keys(keys)
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 2 samples from 1 application.
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 keyword_loc.slice end