Skip to content

Commit cd3fa02

Browse files
committed
[parse.py] internal function
1 parent 903a598 commit cd3fa02

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bindings/python/scripts/parse.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self, file, compiler_arguments):
3333
}
3434

3535
@staticmethod
36-
def is_valid_child(parent_node, child_node):
36+
def _is_valid_child(parent_node, child_node):
3737
child = child_node.get("cursor")
3838
parent_filename = parent_node.get("filename")
3939

@@ -117,7 +117,7 @@ def parse_node_recursive(cls, node):
117117
# Get cursor's children and recursively add their info to a dictionary, as members of the parent
118118
for child in cursor.get_children():
119119
child_node = {"cursor": child, "filename": filename, "depth": depth + 1}
120-
if cls.is_valid_child(node, child_node):
120+
if cls._is_valid_child(node, child_node):
121121
child_parsed_info = cls.parse_node_recursive(child_node)
122122
parsed_info["members"].append(child_parsed_info)
123123

@@ -133,4 +133,3 @@ def get_parsed_info(self):
133133
- The key 'members' contains the node's children's `parsed_info`
134134
"""
135135
return self.parse_node_recursive(self.root_node)
136-

0 commit comments

Comments
 (0)