class
#include <slang/ast/Statements.h>
ForLoopStatement Represents a for
loop statement.
Base classes
- class Statement
- The base class for all statements in SystemVerilog.
Public variables
-
std::
span<const Expression*const > initializers - A list of variable initializers (mutually exclusive with loopVars )
-
std::
span<const VariableSymbol*const > loopVars - A list of variables declared in the for loop (mutually exclusive with initializers )
- const Expression* stopExpr
- An optional expression that controls when the loop stops.
-
std::
span<const Expression*const > steps - A list of steps to apply on each iteration.
- const Statement& body
- The body of the loop.