Skip to content

Commit

Permalink
[DecompilerTask] remove monkey patching of task object (#344)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: fnhartmann <[email protected]>
Co-authored-by: fnhartmann <[email protected]>
  • Loading branch information
3 people authored Oct 11, 2023
1 parent 9663023 commit 1979022
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions decompiler/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def __init__(
self._failed = False
self._failure_origin = None
self._complex_types = complex_types if complex_types else ComplexTypeMap()
self._code = None

@property
def name(self) -> str:
Expand Down Expand Up @@ -99,3 +100,13 @@ def failure_message(self) -> str:
def complex_types(self) -> ComplexTypeMap:
"""Return complex types present in the function (structs, unions, enums, etc.)."""
return self._complex_types

@property
def code(self) -> str:
"""Return C-Code representation for the Task."""
return self._code

@code.setter
def code(self, value):
"""Setter function for C-Code representation of the Task"""
self._code = value

0 comments on commit 1979022

Please sign in to comment.