Get docstring description for node Args: node (tree_sitter.Node) blob (str): original source code which parse the `node` Returns: str: docstring
(node, blob=None)
| 14 | |
| 15 | @staticmethod |
| 16 | def get_docstring(node, blob=None): |
| 17 | """ |
| 18 | Get docstring description for node |
| 19 | |
| 20 | Args: |
| 21 | node (tree_sitter.Node) |
| 22 | blob (str): original source code which parse the `node` |
| 23 | Returns: |
| 24 | str: docstring |
| 25 | """ |
| 26 | if blob: |
| 27 | logger.info('From version `0.0.6` this function will update argument in the API') |
| 28 | docstring_node = CppParser.get_docstring_node(node) |
| 29 | docstring = '\n'.join(get_node_text(s) for s in docstring_node) |
| 30 | return docstring |
| 31 | |
| 32 | @staticmethod |
| 33 | def get_docstring_node(node): |
nothing calls this directly
no test coverage detected