Returns the current BlockBuilder.
()
| 159 | |
| 160 | @staticmethod |
| 161 | def current() -> Optional["BlockBuilder"]: |
| 162 | """Returns the current BlockBuilder.""" |
| 163 | if BlockBuilder._stack: |
| 164 | return BlockBuilder._stack[-1] |
| 165 | else: |
| 166 | return None |
| 167 | |
| 168 | def __init__(self, mod: IRModule = None): |
| 169 | # Which functions are currently being defined |
no outgoing calls
no test coverage detected