Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DecompilerTask] remove monkey patching of task object #344

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
fnhartmann marked this conversation as resolved.
Show resolved Hide resolved
Loading