slang::TempVarSymbol class

Represents a temporary variable materialized within a limited scope such as a single expression. Used for things like iterators used in array manipulation methods and for pattern identifiers.

Base classes

class VariableSymbol
Represents a variable declaration.

Derived classes

class IteratorSymbol
Represents an iterator variable created for array manipulation methods.
class PatternVarSymbol
Represents a pattern variable materialized for a pattern matching expression.

Public variables

const TempVarSymbol* nextTemp

Variable documentation

const TempVarSymbol* slang::TempVarSymbol::nextTemp

For efficiency purposes, each temp var symbol can form a linked list so that when binding nested expressions we don't need to manage memory separately for list nodes. This member is otherwise not useful to other consumers.