ConditionalExpression class final
Represents a conditional operator expression.
Base classes
- class Expression
- The base class for all expressions in SystemVerilog.
Public types
- struct Condition
- A condition.
Public functions
- const Expression& left() const
- Expression& left()
- const Expression& right() const
- Expression& right()
- const Expression* knownSide() const
- If the condition for this expression is a known constant value, this method returns the side of the expression that will be selected (i.e.
Public variables
- 
              std::span<const Condition> conditions 
- The list of conditions controlling the expression.
- SourceLocation opLoc
- The location of the conditional '?' operator token.
Function documentation
              const Expression& slang::
            | Returns | the left-hand side operand | 
|---|
              Expression& slang::
            | Returns | the left-hand side operand | 
|---|
              const Expression& slang::
            | Returns | the right-hand side operand | 
|---|
              Expression& slang::
            | Returns | the right-hand side operand | 
|---|
              const Expression* slang::
            If the condition for this expression is a known constant value, this method returns the side of the expression that will be selected (i.e.
the left or right expression). Otherwise returns nullptr.