verse.parser.parser.CondValCase

class verse.parser.parser.CondValCase(cond: List[AST | CondVal | Lambda | Reduction | Dict[str, AST | CondVal | Lambda | Reduction | Dict[str, ScopeValue]]], val: AST | CondVal | Lambda | Reduction | Dict[str, AST | CondVal | Lambda | Reduction | Dict[str, ScopeValue]])

Bases: CustomIR

A single case of a conditional value. Values in cond are implicitly `and`ed together

Attributes:
end_col_offset
end_lineno

Methods

set_fields

__init__(cond: List[AST | CondVal | Lambda | Reduction | Dict[str, AST | CondVal | Lambda | Reduction | Dict[str, ScopeValue]]], val: AST | CondVal | Lambda | Reduction | Dict[str, AST | CondVal | Lambda | Reduction | Dict[str, ScopeValue]]) None