class Sorbet::Private::HiddenMethodFinder
def serialize_methods(source, rbi, klass, is_singleton)
def serialize_methods(source, rbi, klass, is_singleton) _by_name = source.map {|v| [v["name"]["name"], v]}.to_h [] = Sorbet::Private::Serialize.new(constant_cache) ch do |rbi_entry| if rbi_entry["kind"] != "METHOD" = rbi_entry["name"]["name"] if source_by_name[name] if BLACKLIST.include?([klass.object_id, name]) if name.start_with?('<') && name.end_with?('>') n is_singleton method = klass.singleton_method(name) se method = klass.instance_method(name) d ue => e t << "# #{e.message.gsub("\n", "\n# ")}" xt r_method = method.super_method xt if super_method && T::AbstractUtils.abstract_method?(method) == T::AbstractUtils.abstract_method?(super_method) rs = capture_stderr do t << maker.serialize_method(method, is_singleton, with_sig: false) rs.split("\n").each do |line| t << "# #{line}"