Class Function
- Namespace
- flx.SILQ.Statements
- Assembly
- flx.SILQ.dll
Represents a function statement in the SILQ language.
public record Function : Statement, IEquatable<Statement>, IEquatable<Function>
- Inheritance
-
Function
- Implements
- Inherited Members
Remarks
A function statement consists of a name and a list of arguments. It inherits from the base Statement class.
Constructors
Function(Token, List<Expression>)
Represents a function statement in the SILQ language.
public Function(Token Name, List<Expression> Arguments)
Parameters
NameTokenArgumentsList<Expression>
Remarks
A function statement consists of a name and a list of arguments. It inherits from the base Statement class.
Properties
Arguments
public List<Expression> Arguments { get; init; }
Property Value
Name
public Token Name { get; init; }
Property Value
Methods
Accept(IVisitor)
Accepts a visitor that implements the IVisitor interface.
public override void Accept(IVisitor visitor)
Parameters
visitorIVisitorThe visitor to accept.