slang::ast::EnumType class final

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

const Type& baseType
The base type of the enum.
int systemId
The system-generated ID.

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.