summaryrefslogtreecommitdiff
path: root/python/function.py
diff options
context:
space:
mode:
authorkat <kat@vector35.com>2023-04-17 10:12:48 -0500
committerkat <kat@vector35.com>2023-04-17 10:12:48 -0500
commit3012de2bbc4d6f4f5631863e22b411c0b38325eb (patch)
treef58a7c07480d071eb11ec087851fdbe66c81ee27 /python/function.py
parentab54857c50d46cd3157a6c8f45a45e4e12712825 (diff)
Add .components convenience API to Functions and DataVariables
Diffstat (limited to 'python/function.py')
-rw-r--r--python/function.py4
1 files changed, 4 insertions, 0 deletions
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)