Root of the abstract syntax tree
(self)
| 2587 | |
| 2588 | @property |
| 2589 | def root(self) -> Optional[HighLevelILInstruction]: |
| 2590 | """Root of the abstract syntax tree""" |
| 2591 | expr_index = core.BNGetHighLevelILRootExpr(self.handle) |
| 2592 | if expr_index >= core.BNGetHighLevelILExprCount(self.handle): |
| 2593 | return None |
| 2594 | return HighLevelILInstruction.create(self, ExpressionIndex(expr_index)) |
| 2595 | |
| 2596 | @root.setter |
| 2597 | def root(self, value: HighLevelILInstruction) -> None: |
no test coverage detected