slang::ast::SimpleSystemSubroutine class

An implementation of the SystemSubroutine interface that has basic argument types and a well-defined return type.

Base classes

class SystemSubroutine
The base class for built-in system subroutines.

Derived classes

class NonConstantFunction
An implementation of the SystemSubroutine interface that is also a "simple" subroutine that is also not allowed in constant contexts.

Public functions

auto bindArgument(size_t argIndex, const ASTContext& context, const syntax::ExpressionSyntax& syntax, const Args& previousArgs) const -> const Expression& final
Allows the subroutine to perform custom argument binding for the given argument index.
auto checkArguments(const ASTContext& context, const Args& args, SourceRange range, const Expression* iterOrThis) const -> const Type& final
Allows the subroutine to perform checking of the arguments in a call expression.