mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
Misc small non-user-visible fixes
Some are Unicode vs Str stuff, others are style adjustments, others in unused functions, and so on.
This commit is contained in:
parent
59c3f9fc71
commit
d9938f1a37
5 changed files with 33 additions and 32 deletions
|
@ -18,9 +18,9 @@
|
|||
# Expand inlined functions. This could perhaps be made at parse time, but that
|
||||
# would obfuscate the source too much.
|
||||
|
||||
from lslcommon import nr
|
||||
from lslopt.lslcommon import nr
|
||||
|
||||
# Statement-level nodes that have at most 1 child and is of type expression
|
||||
# Statement-level nodes that have at most 1 child and are of type expression
|
||||
SINGLE_OPT_EXPR_CHILD_NODES = frozenset({'DECL', 'EXPR', 'RETURN',
|
||||
'@', 'STSW', 'JUMP', ';', 'LAMBDA'})
|
||||
|
||||
|
|
|
@ -3007,7 +3007,7 @@ list lazy_list_set(list L, integer i, list v)
|
|||
del self.scopestack
|
||||
|
||||
if self.enable_inline:
|
||||
import lslinliner
|
||||
from lslopt import lslinliner
|
||||
lslinliner.inliner().inline(self.tree, self.symtab)
|
||||
|
||||
treesymtab = self.tree, self.symtab
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue