slang::ast::CaseAssertionExpr class

Represents a case operator in a property expression.

Base classes

class AssertionExpr
The base class for assertion expressions (sequences and properties).

Public types

struct ItemGroup
A group of items that match one case item.

Public variables

const Expression& expr
The controlling case expression.
std::span<const ItemGroup> items
The list of case items that get checked for a match.
const AssertionExpr* defaultCase
An optional default case that applies if no items match.