MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _node_id

Function _node_id

tests/test_vbnet_extractor.py:585–590  ·  view source on GitHub ↗

The one node with this label (a leading `.` of C# methods ignored) in that file.

(result, label, filename)

Source from the content-addressed store, hash-verified

583
584
585def _node_id(result, label, filename):
586 """The one node with this label (a leading `.` of C# methods ignored) in that file."""
587 hits = [n["id"] for n in result["nodes"]
588 if n["label"].lstrip(".") == label and str(n.get("source_file", "")).endswith(filename)]
589 assert len(hits) == 1, f"{label!r} in {filename}: {hits}"
590 return hits[0]
591
592
593def _calls(result, caller, caller_file):

Calls 1

getMethod · 0.45

Tested by

no test coverage detected