(node)
| 14102 | # in walk() can detect user-defined functions that shadow 'source' / '.' |
| 14103 | # regardless of definition order in the file. |
| 14104 | def _prescan_functions(node) -> None: |
| 14105 | if node.type == "function_definition": |
| 14106 | name = _bash_func_name(node) |
| 14107 | if name: |
| 14108 | defined_functions.add(name) |
| 14109 | for child in node.children: |
| 14110 | _prescan_functions(child) |
| 14111 | else: |
| 14112 | for child in node.children: |
| 14113 | _prescan_functions(child) |
| 14114 | |
| 14115 | _prescan_functions(root) |
| 14116 | walk(root, file_nid) |
no test coverage detected