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