# File rbs-1.4.0/lib/rbs/ast/members.rb, line 356
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
# File rbs-1.4.0/lib/rbs/ast/members.rb, line 365
def ==(other)
other.is_a?(self.class) &&
other.new_name == new_name &&
other.old_name == old_name &&
other.kind == kind
end
# File rbs-1.4.0/lib/rbs/ast/members.rb, line 374
def hash
self.class.hash ^ new_name.hash ^ old_name.hash ^ kind.hash
end
# File rbs-1.4.0/lib/rbs/ast/members.rb, line 390
def instance?
kind == :instance
end