@try_delegation<EOL><INDENT>@dedupe<EOL>def gen_methods(self, *args, **kwargs):<DEDENT>
token = args[<NUM_LIT:0>]<EOL>inst = self.inst<EOL>prefix = self._method_prefix<EOL>for method_key in self.gen_method_keys(*args, **kwargs):<EOL><INDENT>method = getattr(inst, prefix + method_key, None)<EOL>if method is not None:<EOL><INDENT>yield method<EOL><DEDENT><DEDENT>typename = type(token).__name__<EOL>yield from self.check_basetype(<EOL>token, typename, self.builtins.get(typename))<EOL>for basetype_name in self.interp_types:<EOL><INDENT>yield from self.check_basetype(<EOL>token, basetype_name, getattr(self.types, basetype_name, None))<EOL><DEDENT>for basetype_name in self.abc_types:<EOL><INDENT>yield from self.check_basetype(<EOL>token, basetype_name, getattr(self.collections, basetype_name, None))<EOL><DEDENT>yield from self.gen_generic()<EOL>
Find all method names this input dispatches to.