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

Function _walk

Scripts/codegen/_codegen_checks.py:327–339  ·  view source on GitHub ↗
(node: Any)

Source from the content-addressed store, hash-verified

325 out: set = set()
326
327 def _walk(node: Any) -> None:
328 if isinstance(node, list):
329 for item in node:
330 if isinstance(item, str) and _ATTR_NAME_RE.match(item):
331 out.add(item)
332 else:
333 _walk(item)
334 elif isinstance(node, dict):
335 for k, v in node.items():
336 if k in ("obj_attr", "ref_attr") and isinstance(v, str):
337 if _ATTR_NAME_RE.match(v):
338 out.add(v)
339 _walk(v)
340
341 _walk(schema)
342 for cat_rules in rules.get("categories", {}).values():

Callers 1

_all_schema_attrsFunction · 0.70

Calls 1

addMethod · 0.80

Tested by

no test coverage detected