# File rbs-1.4.0/lib/rbs/ast/declarations.rb, line 280
def initialize(name:, type_params:, members:, self_types:, annotations:, location:, comment:)
@name = name
@type_params = type_params
@self_types = self_types
@members = members
@annotations = annotations
@location = location
@comment = comment
end
# File rbs-1.4.0/lib/rbs/ast/declarations.rb, line 290
def ==(other)
other.is_a?(Module) &&
other.name == name &&
other.type_params == type_params &&
other.self_types == self_types &&
other.members == members
end
# File rbs-1.4.0/lib/rbs/ast/declarations.rb, line 300
def hash
self.class.hash ^ name.hash ^ type_params.hash ^ self_types.hash ^ members.hash
end
# File rbs-1.4.0/lib/rbs/ast/declarations.rb, line 304
def to_json(state = _ = nil)
{
declaration: :module,
name: name,
type_params: type_params,
members: members,
self_types: self_types,
annotations: annotations,
location: location,
comment: comment
}.to_json(state)
end