(result: dict, method_nid: str)
| 557 | |
| 558 | |
| 559 | def _owner_of(result: dict, method_nid: str) -> str: |
| 560 | nodes = {n["id"]: n for n in result["nodes"]} |
| 561 | return next(nodes[e["source"]]["label"] for e in result["edges"] |
| 562 | if e["relation"] == "method" and e["target"] == method_nid) |
| 563 | |
| 564 | |
| 565 | def _call_owners(calls, result: dict, caller: str) -> set[tuple[str, str]]: |