MCPcopy Create free account
hub / github.com/defold/defold / _add_param

Function _add_param

scripts/dmsdk/gen_cpp.py:71–80  ·  view source on GitHub ↗
(lines, tag, doc)

Source from the content-addressed store, hash-verified

69 lines.append(f'@{tag} {s}')
70
71def _add_param(lines, tag, doc):
72 if doc is None:
73 return
74 name = doc.get('name', '')
75 typ = doc.get('type', '')
76 desc = doc.get('desc', '')
77 if not typ:
78 lines.append(f'@{tag} {name} {desc}')
79 else:
80 lines.append(f'@{tag} {name} [type:{typ}] {desc}')
81
82def _format_doc_lines(lines, indent):
83 indent_str = get_indent(indent)

Callers 1

gen_docFunction · 0.70

Calls 2

appendMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected