Skip to content

Commit

Permalink
Removes commented code.
Browse files Browse the repository at this point in the history
  • Loading branch information
payneio committed Feb 6, 2025
1 parent d0a9aa5 commit b588079
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,6 @@ class FunctionInterceptor(ast.NodeTransformer):
def __init__(self) -> None:
pass

# def _get_function_name(self, node: Union[ast.Name, ast.Attribute]) -> str:
# """Build the complete function name."""
# try:
# if isinstance(node, ast.Name):
# return node.id
# elif isinstance(node, ast.Attribute):
# if isinstance(node.value, (ast.Name, ast.Attribute)):
# base = self._get_function_name(node.value)
# return f"{base}.{node.attr}"
# raise TypeError(f"Unsupported function name type: {type(node.value)}")
# raise TypeError(f"Unsupported node type for function name: {type(node)}")
# except Exception as e:
# raise RuntimeError(f"Error evaluating function name: {str(e)}")

def get_function_name(self, node: ast.Call) -> str | None:
"""Get fully qualified function name from a Call node. Returns None for builtins."""
if isinstance(node.func, ast.Name):
Expand Down

0 comments on commit b588079

Please sign in to comment.