slang::ast::CallExpression::SystemCallInfo struct

Additional context that applies to system subroutine calls.

Public functions

auto getIteratorInfo() const -> std::pair<const Expression*, const ValueSymbol*>

Public variables

not_null<const SystemSubroutine*> subroutine
The system subroutine being called.
not_null<const Scope*> scope
The scope in which the call occurs.
std::variant<std::monostate, IteratorCallInfo, RandomizeCallInfo> extraInfo
Additional information that applies to the call.

Function documentation

std::pair<const Expression*, const ValueSymbol*> slang::ast::CallExpression::SystemCallInfo::getIteratorInfo() const

Returns the extra info if this is for an iterator call, and an empty pair of nullptr if not.