def get_function_signature(self, node):
name = self.extract_text(self.get_specific_subnodes(node, '<STR_LIT:name>'))<EOL>if self.with_type_info:<EOL><INDENT>argsstring = self.extract_text(self.get_specific_subnodes(node, '<STR_LIT>'))<EOL><DEDENT>else:<EOL><INDENT>argsstring = []<EOL>param_id = <NUM_LIT:1><EOL>for n_param in self.get_specific_subnodes(node, '<STR_LIT>'):<EOL><INDENT>declname = self.extract_text(self.get_specific_subnodes(n_param, '<STR_LIT>'))<EOL>if not declname:<EOL><INDENT>declname = '<STR_LIT>' + str(param_id)<EOL><DEDENT>defval = self.extract_text(self.get_specific_subnodes(n_param, '<STR_LIT>'))<EOL>if defval:<EOL><INDENT>defval = '<STR_LIT:=>' + defval<EOL><DEDENT>argsstring.append(declname + defval)<EOL>param_id = param_id + <NUM_LIT:1><EOL><DEDENT>argsstring = '<STR_LIT:(>' + '<STR_LIT:U+002CU+0020>'.join(argsstring) + '<STR_LIT:)>'<EOL><DEDENT>type = self.extract_text(self.get_specific_subnodes(node, '<STR_LIT:type>'))<EOL>function_definition = name + argsstring<EOL>if type != '<STR_LIT>' and type != '<STR_LIT>':<EOL><INDENT>function_definition = function_definition + '<STR_LIT>' + type<EOL><DEDENT>return '<STR_LIT>' + function_definition + '<STR_LIT>'<EOL>
Returns the function signature string for memberdef nodes.