MCPcopy Create free account
hub / github.com/NVIDIA/cuda-quantum / popIfStmtBlockStack

Method popIfStmtBlockStack

python/cudaq/kernel/ast_bridge.py:788–792  ·  view source on GitHub ↗

Indicate that we have just left an if statement then or else block.

(self)

Source from the content-addressed store, hash-verified

786 self.inIfStmtBlockStack += 1
787
788 def popIfStmtBlockStack(self):
789 """Indicate that we have just left an if statement then or else
790 block."""
791 assert self.inIfStmtBlockStack > 0
792 self.inIfStmtBlockStack -= 1
793
794 def isInForBody(self):
795 """Return True if the current insertion point is within a for body

Callers 2

process_boolean_opMethod · 0.95
visit_IfMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected