EnumValueSymbol class final
#include <slang/ast/types/AllTypes.h>
Represents an enumerated value / member.
Base classes
- class ValueSymbol
- A base class for symbols that represent a value (for example a variable or a parameter).
Public functions
- const ConstantValue& getValue(SourceRange referencingRange = {}) const
- Gets the value of the enum member.
- void setValue(ConstantValue value)
- Sets the value of the enum member.
- void resolveEnum(const ASTContext& bindingContext) const
- Creates the enum containing this value, if it hasn't been created already, using the given context to find variables that only exist while binding some expression, like iterators or assertion formal arguments.
- const Scope* getDeclaringScope() const
- Gets the scope in which the enum containing this value was declared, looking through the temporary blocks used for enums declared inside of expressions that are bound in isolation.
Public variables
- const EnumDeclaration* declaration
- The declaration of the enum containing this value, if it was created from syntax, which is used to create the enum on demand.