Move PythonType2LSL to the main lsloptimizer script.
This is preparation work for splitting the optimizer.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
|
||||
import lslfuncs
|
||||
from lslfuncs import Key, Vector, Quaternion
|
||||
|
||||
class deadcode(object):
|
||||
# Functions that cause the rest of the current block to never be executed
|
||||
@@ -14,11 +13,6 @@ class deadcode(object):
|
||||
# TODO: check if there are any more than this one.
|
||||
TerminatorFuncs = ('llResetScript',)
|
||||
|
||||
# TODO: Share with lsloptimizer.
|
||||
PythonType2LSL = {int: 'integer', float: 'float',
|
||||
unicode: 'string', Key: 'key', Vector: 'vector',
|
||||
Quaternion: 'rotation', list: 'list'}
|
||||
|
||||
def MarkReferences(self, node):
|
||||
"""Marks each node it passes through as executed (X), and each variable
|
||||
as read (R) (with count) and/or written (W) (with node where it is, or
|
||||
|
||||
Reference in New Issue
Block a user