MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeText-parser / get_docstring

Method get_docstring

src/codetext/parser/rust_parser.py:55–66  ·  view source on GitHub ↗
(node, blob=None)

Source from the content-addressed store, hash-verified

53
54 @staticmethod
55 def get_docstring(node, blob=None):
56 if blob:
57 logger.info('From version `0.0.6` this function will update argument in the API')
58 docstring_node = RustParser.get_docstring_node(node)
59 docstring = []
60 if docstring_node:
61 for item in docstring_node:
62 doc = get_node_text(item)
63 docstring.append(doc)
64
65 docstring = '\n'.join(docstring)
66 return docstring
67
68 @staticmethod
69 def get_function_metadata(function_node, blob=None) -> Dict[str, str]:

Callers

nothing calls this directly

Calls 2

get_node_textFunction · 0.85
get_docstring_nodeMethod · 0.45

Tested by

no test coverage detected