diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/binaryview.py | 4 | ||||
| -rw-r--r-- | python/function.py | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/python/binaryview.py b/python/binaryview.py index 950b9935..980876b8 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -9272,6 +9272,10 @@ class DataVariable(CoreDataVariable): def name(self, value: str) -> None: self.symbol = value + @property + def components(self) -> List[component.Component]: + return self.view.get_data_variable_parent_components(self) + class DataVariableAndName(CoreDataVariable): def __init__(self, addr: int, var_type: '_types.Type', var_name: str, auto_discovered: bool) -> None: diff --git a/python/function.py b/python/function.py index ebc2a40a..bb4a9b2a 100644 --- a/python/function.py +++ b/python/function.py @@ -1843,6 +1843,10 @@ class Function: return result @property + def components(self): + return self.view.get_function_parent_components(self) + + @property def inline_during_analysis(self) -> 'types.BoolWithConfidence': """Whether the function's IL should be inlined into all callers' IL""" result = core.BNIsFunctionInlinedDuringAnalysis(self.handle) |
