# File rbs-1.4.0/lib/rbs/ast/declarations.rb, line 192
def initialize(name:, type_params:, super_class:, members:, annotations:, location:, comment:)
@name = name
@type_params = type_params
@super_class = super_class
@members = members
@annotations = annotations
@location = location
@comment = comment
end
# File rbs-1.4.0/lib/rbs/ast/declarations.rb, line 202
def ==(other)
other.is_a?(Class) &&
other.name == name &&
other.type_params == type_params &&
other.super_class == super_class &&
other.members == members
end
# File rbs-1.4.0/lib/rbs/ast/declarations.rb, line 212
def hash
self.class.hash ^ name.hash ^ type_params.hash ^ super_class.hash ^ members.hash
end
# File rbs-1.4.0/lib/rbs/ast/declarations.rb, line 216
def to_json(state = _ = nil)
{
declaration: :class,
name: name,
type_params: type_params,
members: members,
super_class: super_class,
annotations: annotations,
location: location,
comment: comment
}.to_json(state)
end