MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / _get_depth

Function _get_depth

Scripts/emit_docs.py:533–539  ·  view source on GitHub ↗
(name: str, parent_map: dict, memo: set = None)

Source from the content-addressed store, hash-verified

531
532
533def _get_depth(name: str, parent_map: dict, memo: set = None) -> int:
534 if memo is None: memo = set()
535 if name in memo: return 0
536 memo.add(name)
537 parent = parent_map.get(name)
538 if not parent: return 0
539 return 1 + _get_depth(parent, parent_map, memo)
540
541
542def _write_api_index(entries: list, api_root: str, parent_map: dict):

Callers 2

_write_api_indexFunction · 0.85
build_nav_yamlFunction · 0.85

Calls 1

addMethod · 0.80

Tested by

no test coverage detected