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

Function is_csharp_explicit_interface_node

graphify/extractors/csharp.py:36–47  ·  view source on GitHub ↗

A C# explicit interface implementation (``int IA.Get()``). It is reachable only through the interface, so the name-keyed call indexes leave it out; the interface member reaches it by dispatch.

(node: dict)

Source from the content-addressed store, hash-verified

34
35
36def is_csharp_explicit_interface_node(node: dict) -> bool:
37 """A C# explicit interface implementation (``int IA.Get()``).
38
39 It is reachable only through the interface, so the name-keyed call indexes
40 leave it out; the interface member reaches it by dispatch.
41 """
42 metadata = node.get("metadata") or {}
43 return (
44 isinstance(metadata, dict)
45 and bool(metadata.get("explicit_interface"))
46 and effective_suffix(str(node.get("source_file") or "")) == ".cs"
47 )
48
49
50def _build_csharp_type_def_index(

Callers 3

_csharp_overload_indexFunction · 0.90
extractFunction · 0.90

Calls 2

effective_suffixFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected