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

Method get_comment_node

src/codetext/parser/cpp_parser.py:91–100  ·  view source on GitHub ↗

Return all comment node inside a parent node Args: node (tree_sitter.Node) Return: List: list of comment nodes

(node)

Source from the content-addressed store, hash-verified

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]:

Callers

nothing calls this directly

Calls 1

get_node_by_kindFunction · 0.85

Tested by

no test coverage detected