slang::ast::LSPUtilities class

A collection of utility methods for working with LSP expressions.

Public static functions

static auto getBounds(const Expression& prefixExpression, EvalContext& evalContext, const Type& rootType) -> std::optional<DriverBitRange>
Computes bounds for a driver given its longest static prefix expression.
template<typename TCallback>
static void visitLSPs(const Expression& expr, EvalContext& evalContext, TCallback&& func, const Expression* initialLSP = nullptr)
Visits the longest static prefix expressions for all of the operands in the given expression using the provided callback function.