class documentation
class _BranchTracker: (source)
Track exhaustiveness in pattern matches.
Method | __init__ |
Undocumented |
Method | add |
Add a match case branch to the tracker. |
Method | add |
Add a default match case branch to the tracker. |
Method | check |
Check if we have ended a match statement with leftover cases. |
Instance Variable | matches |
Undocumented |
Method | _add |
Undocumented |
Instance Variable | _active |
Undocumented |
Instance Variable | _tracker |
Undocumented |
def add_branch(self, op:
opcodes.Opcode
, match_var: cfg.Variable
, case_var: cfg.Variable
) -> Optional[ bool]
:
(source)
¶
Add a match case branch to the tracker.