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

Function _prescan_functions

graphify/extract.py:14104–14113  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

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)

Callers 1

extract_bashFunction · 0.85

Calls 1

_bash_func_nameFunction · 0.85

Tested by

no test coverage detected