Get docstring description for node Args: node (tree_sitter.Node) blob (str): original source code which parse the `node` Returns: str: docstring
(node, blob:str=None)
| 72 | |
| 73 | @staticmethod |
| 74 | def get_docstring(node, blob:str=None): |
| 75 | """ |
| 76 | Get docstring description for node |
| 77 | |
| 78 | Args: |
| 79 | node (tree_sitter.Node) |
| 80 | blob (str): original source code which parse the `node` |
| 81 | Returns: |
| 82 | str: docstring |
| 83 | """ |
| 84 | if blob: |
| 85 | logger.info('From version `0.0.6` this function will update argument in the API') |
| 86 | docstring_node = GoParser.get_docstring_node(node) |
| 87 | docstring = '\n'.join(get_node_text(s) for s in docstring_node) |
| 88 | return docstring |
| 89 | |
| 90 | @staticmethod |
| 91 | def get_function_list(node): |