slang::ast::GenerateBlockArraySymbol class final

Represents an array of generate blocks, as generated by a loop generate construct.

Base classes

class Symbol
Base class for all symbols (logical code constructs) such as modules, types, functions, variables, etc.
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 GenerateBlockArraySymbol& fromSyntax(Compilation& compilation, const syntax::LoopGenerateSyntax& syntax, SymbolIndex scopeIndex, const ASTContext& context, uint32_t constructIndex)
Creates a generate block array from the given loop-generate syntax node.

Public variables

const Expression* initialExpression
Initial value assigned to loopVariable.
const Expression* stopExpression
Bound stop expression of the loop-generate.
const Expression* iterExpression
Bound iteration expression of the loop-generate.
const VariableSymbol* loopVariable
Loop variable used by the bound stop and iteration expressions.