module Solargraph::RbsMap::Conversions

def alias_to_pin decl, closure

Returns:
  • (void) -

Parameters:
  • closure (Pin::Namespace) --
  • decl (RBS::AST::Members::Alias) --
def alias_to_pin decl, closure
  pins.push Solargraph::Pin::MethodAlias.new(
    name: decl.new_name.to_s,
    type_location: location_decl_to_pin_location(decl.location),
    original: decl.old_name.to_s,
    closure: closure
  )
end