MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / add_doc_method_param

Function add_doc_method_param

PythonAPI/docs/doc_gen.py:280–296  ·  view source on GitHub ↗
(md, param)

Source from the content-addressed store, hash-verified

278
279
280def add_doc_method_param(md, param):
281 param_name = param['param_name']
282 param_type = ''
283 param_doc = ''
284 if valid_dic_val(param, 'type'):
285 param_type = create_hyperlinks(param['type'])
286 if valid_dic_val(param, 'doc'):
287 param_doc = create_hyperlinks(md.prettify_doc(param['doc']))
288 param_type = '' if not param_type else parentheses(italic(param_type))
289 md.list_push(code(param_name))
290 if param_type:
291 md.text(' ' + param_type)
292 if param_doc:
293 md.textn(' – ' + param_doc)
294 else:
295 md.new_line()
296 md.list_pop()
297
298
299def add_doc_method(md, method, class_key):

Callers 1

add_doc_methodFunction · 0.85

Calls 11

create_hyperlinksFunction · 0.85
prettify_docMethod · 0.80
valid_dic_valFunction · 0.70
parenthesesFunction · 0.70
italicFunction · 0.70
codeFunction · 0.70
list_pushMethod · 0.45
textMethod · 0.45
textnMethod · 0.45
new_lineMethod · 0.45
list_popMethod · 0.45

Tested by

no test coverage detected