slang::ast::IteratorSymbol class

Represents an iterator variable created for array manipulation methods.

Base classes

class TempVarSymbol
Represents a temporary variable materialized within a limited scope such as a single expression.

Public variables

const Type& arrayType
The type of the array that this iterator traverses.
std::string_view indexMethodName
The name of the built-in "index" method, which can be customized by the user.

Variable documentation

std::string_view slang::ast::IteratorSymbol::indexMethodName

The name of the built-in "index" method, which can be customized by the user.

Some uses of IteratorSymbol don't allow an index method and set this value to the empty string.