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.
- class VariableSymbol
- Represents a variable declaration.
- class IteratorSymbol
- Represents an iterator variable created for array manipulation methods.
- class PatternVarSymbol
- Represents a pattern variable materialized for a pattern matching expression.
- const TempVarSymbol* nextTemp
const TempVarSymbol* slang::
ast:: TempVarSymbol:: nextTemp
For efficiency purposes, each temp var symbol can form a linked list so that when creating nested expressions we don't need to manage memory separately for list nodes. This member is otherwise not useful to other consumers.