MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / _walk

Function _walk

scripts/code_verify_rules.py:1167–1171  ·  view source on GitHub ↗

Yield node and all descendants in depth-first order.

(node)

Source from the content-addressed store, hash-verified

1165
1166
1167def _walk(node):
1168 """Yield node and all descendants in depth-first order."""
1169 yield node
1170 for child in node.children:
1171 yield from _walk(child)
1172
1173
1174def _find_field_decl_default(class_node, src: bytes):

Callers 8

_cold_branch_line_spanFunction · 0.85
_recursion_findingsFunction · 0.85
_cpp_rulesFunction · 0.85
_decl_first_nameFunction · 0.85
_anon_member_labelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected