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

Function _bash_func_name

graphify/extractors/bash.py:524–530  ·  view source on GitHub ↗

Get the name from a function_definition node.

(node)

Source from the content-addressed store, hash-verified

522 return resolved
523
524 def _bash_func_name(node) -> str | None:
525 """Get the name from a function_definition node."""
526 # bash grammar: function_definition has a word child (the name)
527 for child in node.children:
528 if child.type == "word":
529 return literal(child)
530 return None
531
532 def walk_calls(body_node, func_nid: str, seen_calls: set) -> None:
533 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