EnumType class final
#include <slang/ast/types/AllTypes.h>
Represents an enumerated type.
Base classes
- class IntegralType
- A base class for integral types, which include all scalar types, predefined integer types, packed arrays, packed structures, packed unions, and enum types.
- class Scope
- Base class for symbols that represent a name scope; that is, they contain children and can participate in name lookup.
Public static functions
-
static void declareValues(const Scope& scope,
const syntax::
EnumTypeSyntax& syntax, function_ ref<void(const Symbol&)> insertCB) - Declares the values of the given enum in the given scope.
Public variables
Function documentation
static void slang:: ast:: EnumType:: declareValues(const Scope& scope,
const syntax:: EnumTypeSyntax& syntax,
function_ ref<void(const Symbol&)> insertCB)
Declares the values of the given enum in the given scope.
The type itself, along with the actual values, gets created the first time one of the values' types is resolved.