slang::ast::ForeachLoopStatement class

Represents a foreach loop statement.

Base classes

class Statement
The base class for all statements in SystemVerilog.

Public types

struct LoopDim
Describes one dimension that will be iterated by the loop.

Public variables

const Expression& arrayRef
An expression indicating the array to iterate.
std::span<const LoopDim> loopDims
A list of dimensions iterated by the loop.
const Statement& body
The body of the loop.