Get the name from a function_definition node.
(node)
| 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: |
no test coverage detected