class RBS::AST::Declarations::Alias
def ==(other)
def ==(other) other.is_a?(Alias) && other.name == name && other.type == type end
def hash
def hash self.class.hash ^ name.hash ^ type.hash end
def initialize(name:, type:, annotations:, location:, comment:)
def initialize(name:, type:, annotations:, location:, comment:) @name = name @type = type @annotations = annotations @location = location @comment = comment end
def to_json(state = _ = nil)
def to_json(state = _ = nil) { declaration: :alias, name: name, type: type, annotations: annotations, location: location, comment: comment }.to_json(state) end