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

Method get_docstring

src/codetext/parser/php_parser.py:23–32  ·  view source on GitHub ↗
(node, blob: str=None)

Source from the content-addressed store, hash-verified

21
22 @staticmethod
23 def get_docstring(node, blob: str=None) -> str:
24 if blob:
25 logger.info('From version `0.0.6` this function will update argument in the API')
26 docstring_node = PhpParser.get_docstring_node(node)
27
28 docstring = ''
29 if docstring_node:
30 docstring = get_node_text(docstring_node[0])
31
32 return docstring
33
34 @staticmethod
35 def get_docstring_node(node):

Callers

nothing calls this directly

Calls 2

get_node_textFunction · 0.85
get_docstring_nodeMethod · 0.45

Tested by

no test coverage detected