def _generate_route_signature(<EOL>self,<EOL>route,<EOL>namespace,  <EOL>route_args,<EOL>extra_args,<EOL>doc_list,<EOL>task_type_name,<EOL>func_suffix):
for name, _, typ in extra_args:<EOL><INDENT>route_args.append((name, typ))<EOL><DEDENT>deprecated = '<STR_LIT>' if route.deprecated else '<STR_LIT>'<EOL>func_name = '<STR_LIT>'.format(fmt_route_func(route), func_suffix)<EOL>self.emit(comment_prefix)<EOL>if route.doc:<EOL><INDENT>route_doc = self.process_doc(route.doc, self._docf)<EOL><DEDENT>else:<EOL><INDENT>route_doc = '<STR_LIT>'.format(func_name)<EOL><DEDENT>self.emit_wrapped_text(<EOL>deprecated + route_doc, prefix=comment_prefix, width=<NUM_LIT>)<EOL>self.emit(comment_prefix)<EOL>for name, doc in doc_list:<EOL><INDENT>self.emit_wrapped_text(<EOL>'<STR_LIT>'.format(name, doc if doc else undocumented),<EOL>prefix=comment_prefix,<EOL>width=<NUM_LIT>)<EOL><DEDENT>self.emit(comment_prefix)<EOL>output = (<EOL>'<STR_LIT>' +<EOL>'<STR_LIT>')<EOL>output = output.format(<EOL>fmt_type(route.result_data_type, tag=False, no_ptr=True),<EOL>fmt_type(route.error_data_type, tag=False, no_ptr=True))<EOL>self.emit_wrapped_text(output, prefix=comment_prefix, width=<NUM_LIT>)<EOL>self.emit(comment_prefix)<EOL>result_type_str = fmt_type(route.result_data_type) if not is_void_type(<EOL>route.result_data_type) else '<STR_LIT>'<EOL>error_type_str = fmt_type(route.error_data_type) if not is_void_type(<EOL>route.error_data_type) else '<STR_LIT>'<EOL>return_type = '<STR_LIT>'.format(task_type_name, result_type_str,<EOL>error_type_str)<EOL>deprecated = self._get_deprecation_warning(route)<EOL>route_signature = fmt_signature(<EOL>func=func_name,<EOL>args=fmt_func_args_declaration(route_args),<EOL>return_type='<STR_LIT:{}>'.format(return_type))<EOL>self.emit('<STR_LIT>'.format(route_signature, deprecated))<EOL>self.emit()<EOL>
Generates route method signature for the given route.