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

Function _proc_name

graphify/extract.py:13420–13427  ·  view source on GitHub ↗
(header_node)

Source from the content-addressed store, hash-verified

13418 module_nid = file_nid
13419
13420 def _proc_name(header_node) -> str | None: # type: ignore[no-untyped-def]
13421 name_node = header_node.child_by_field_name("name")
13422 if name_node:
13423 return _read(name_node)
13424 for child in header_node.children:
13425 if child.type in ("identifier", "genericDot", "genericTpl"):
13426 return _read(child)
13427 return None
13428
13429 def walk(node, parent_nid: str) -> None: # type: ignore[no-untyped-def]
13430 nonlocal module_nid

Callers 1

walkFunction · 0.85

Calls 1

_readFunction · 0.85

Tested by

no test coverage detected