Return all comment node inside a parent node Args: node (tree_sitter.Node) Return: List: list of comment nodes
(function_node)
| 13 | |
| 14 | @staticmethod |
| 15 | def get_comment_node(function_node): |
| 16 | """ |
| 17 | Return all comment node inside a parent node |
| 18 | Args: |
| 19 | node (tree_sitter.Node) |
| 20 | Return: |
| 21 | List: list of comment nodes |
| 22 | """ |
| 23 | comment_node = get_node_by_kind(function_node, kind='comment') |
| 24 | return comment_node |
| 25 | |
| 26 | @staticmethod |
| 27 | def get_docstring_node(node): |