mirror of
https://github.com/encounter/decomp-permuter.git
synced 2026-07-10 03:18:46 -07:00
Handle FuncCall better in visit_replace
This commit is contained in:
+3
-1
@@ -286,7 +286,9 @@ def visit_replace(top_node: ca.Node, callback: Callable[[ca.Node, bool], Any]) -
|
||||
node.left = rec(node.left)
|
||||
node.right = rec(node.right)
|
||||
elif isinstance(node, ca.FuncCall):
|
||||
# not worth replacing .name
|
||||
# not worth replacing .name if it's a normal function call
|
||||
if not isinstance(node.name, ca.ID):
|
||||
node.name = rec(node.name)
|
||||
if node.args:
|
||||
rec(node.args, True)
|
||||
elif isinstance(node, ca.ExprList):
|
||||
|
||||
Reference in New Issue
Block a user