Return all comment node inside a parent node Args: node (tree_sitter.Node) Return: List: list of comment nodes
(node)
| 89 | |
| 90 | @staticmethod |
| 91 | def get_comment_node(node): |
| 92 | """ |
| 93 | Return all comment node inside a parent node |
| 94 | Args: |
| 95 | node (tree_sitter.Node) |
| 96 | Return: |
| 97 | List: list of comment nodes |
| 98 | """ |
| 99 | comment_node = get_node_by_kind(node, kind=['comment']) |
| 100 | return comment_node |
| 101 | |
| 102 | @staticmethod |
| 103 | def get_function_metadata(function_node, blob: str=None) -> Dict[str, Any]: |
nothing calls this directly
no test coverage detected