# File rbs-1.0.4/lib/rbs/definition.rb, line 37 def ==(other) other.is_a?(TypeDef) && other.type == type && other.member == member && other.defined_in == defined_in && other.implemented_in == implemented_in end
# File rbs-1.0.4/lib/rbs/definition.rb, line 55 def annotations member.annotations end
# File rbs-1.0.4/lib/rbs/definition.rb, line 47 def hash self.class.hash ^ type.hash ^ member.hash ^ defined_in.hash ^ implemented_in.hash end
# File rbs-1.0.4/lib/rbs/definition.rb, line 63 def overload? case mem = member when AST::Members::MethodDefinition mem.overload? else false end end
# File rbs-1.0.4/lib/rbs/definition.rb, line 59 def update(type: self.type, member: self.member, defined_in: self.defined_in, implemented_in: self.implemented_in) TypeDef.new(type: type, member: member, defined_in: defined_in, implemented_in: implemented_in) end