mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-03 00:18:20 +00:00
Fix recently introduced bug: function renaming failed.
This commit is contained in:
parent
1c16355187
commit
17bf0b7a1e
1 changed files with 3 additions and 0 deletions
|
@ -166,6 +166,9 @@ class outscript(object):
|
||||||
# node is a node
|
# node is a node
|
||||||
if 'scope' in node and 'NewName' in self.symtab[node['scope']][node['name']]:
|
if 'scope' in node and 'NewName' in self.symtab[node['scope']][node['name']]:
|
||||||
return self.symtab[node['scope']][node['name']]['NewName']
|
return self.symtab[node['scope']][node['name']]['NewName']
|
||||||
|
if node['nt'] == 'FNCALL' and 'NewName' in self.symtab[0][node['name']]:
|
||||||
|
return self.symtab[0][node['name']]['NewName']
|
||||||
|
|
||||||
return node['name']
|
return node['name']
|
||||||
# node is a name
|
# node is a name
|
||||||
if 'NewName' in self.symtab[scope][node]:
|
if 'NewName' in self.symtab[scope][node]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue