From 2959d69e86eacf0de78703d48217215deb507cd4 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Tue, 23 Nov 2021 09:00:30 -0500 Subject: Fully deprecate (Low|Medium|High)LevelILExpr in favor of ExpressionIndex --- python/lowlevelil.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'python/lowlevelil.py') diff --git a/python/lowlevelil.py b/python/lowlevelil.py index 5a560cad..6130baa3 100644 --- a/python/lowlevelil.py +++ b/python/lowlevelil.py @@ -2641,6 +2641,23 @@ ILInstruction:Mapping[LowLevelILOperation, LowLevelILInstruction] = { # type: i } +class LowLevelILExpr: + """ + ``class LowLevelILExpr`` hold the index of IL Expressions. + + .. note:: Deprecated. Use ExpressionIndex instead + """ + def __init__(self, index:ExpressionIndex): + self._index = index + + def __int__(self): + return self._index + + @property + def index(self) -> ExpressionIndex: + return self._index + + class LowLevelILFunction: """ ``class LowLevelILFunction`` contains the list of ExpressionIndex objects that make up a function. ExpressionIndex -- cgit v1.3.1