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

Function _bash_func_name

graphify/extract.py:13991–13997  ·  view source on GitHub ↗

Get the name from a function_definition node.

(node)

Source from the content-addressed store, hash-verified

13989 return raw
13990
13991 def _bash_func_name(node) -> str | None:
13992 """Get the name from a function_definition node."""
13993 # bash grammar: function_definition has a word child (the name)
13994 for child in node.children:
13995 if child.type == "word":
13996 return literal(child)
13997 return None
13998
13999 def walk_calls(body_node, func_nid: str, seen_calls: set) -> None:
14000 if body_node is None:

Callers 2

walkFunction · 0.85
_prescan_functionsFunction · 0.85

Calls 1

literalFunction · 0.85

Tested by

no test coverage detected