slang::ast::CallExpression::RandomizeCallInfo struct

Extra information associated with a randomize method call.

Public variables

const Constraint* inlineConstraints
Inline constraints specified with the call, if any.
std::span<const std::string_view> constraintRestrictions
Extra constraint restrictions that apply, if any.
const VariableSymbol* thisVar
If randomizing an object via a handle (other than 'this'), a compiler-generated variable that refers to that object.

Variable documentation

const VariableSymbol* slang::ast::CallExpression::RandomizeCallInfo::thisVar

If randomizing an object via a handle (other than 'this'), a compiler-generated variable that refers to that object.

It is bound once to the value of the first argument when the call is made, and non-static members of the object referenced in the argument list and inline constraints are accessed through it.