class RBS::AST::Members::Alias

def ==(other)

def ==(other)
  other.is_a?(self.class) &&
    other.new_name == new_name &&
    other.old_name == old_name &&
    other.kind == kind
end

def hash

def hash
  new_name.hash ^ old_name.hash ^ kind.hash
end

def initialize(new_name:, old_name:, kind:, annotations:, location:, comment:)

def initialize(new_name:, old_name:, kind:, annotations:, location:, comment:)
  @new_name = new_name
  @old_name = old_name
  @kind = kind
  @annotations = annotations
  @location = location
  @comment = comment
end

def instance?

def instance?
  kind == :instance
end

def singleton?

def singleton?
  kind == :singleton
end

def to_json(state = _ = nil)

def to_json(state = _ = nil)
  {
    member: :alias,
    new_name: new_name,
    old_name: old_name,
    kind: kind,
    annotations: annotations,
    location: location,
    comment: comment
  }.to_json(state)
end