class RBS::AST::Declarations::TypeAlias

def ==(other)

def ==(other)
  other.is_a?(TypeAlias) &&
    other.name == name &&
    other.type_params == type_params &&
    other.type == type
end

def hash

def hash
  self.class.hash ^ name.hash ^ type_params.hash ^ type.hash
end

def initialize(name:, type_params:, type:, annotations:, location:, comment:)

def initialize(name:, type_params:, type:, annotations:, location:, comment:)
  @name = name
  @type_params = type_params
  @type = type
  @annotations = annotations
  @location = location
  @comment = comment
end

def to_json(state = _ = nil)

def to_json(state = _ = nil)
  {
    declaration: :alias,
    name: name,
    type_params: type_params,
    type: type,
    annotations: annotations,
    location: location,
    comment: comment
  }.to_json(state)
end