SimpleSystemSubroutine class
#include <slang/ast/SystemSubroutine.h>
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 and is not allowed in constant contexts.
Public functions
-
const Expression& bindArgument(size_
t argIndex, const ASTContext& context, const syntax:: ExpressionSyntax& syntax, const Args& previousArgs) const final - Allows the subroutine to perform custom argument binding for the given argument index.
- const Type& checkArguments(const ASTContext& context, const Args& args, SourceRange range, const Expression* iterOrThis) const final
- Allows the subroutine to perform checking of the arguments in a call expression.