Table of Contents

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

Name Token
Arguments List<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

List<Expression>

Name

public Token Name { get; init; }

Property Value

Token

Methods

Accept(IVisitor)

Accepts a visitor that implements the IVisitor interface.

public override void Accept(IVisitor visitor)

Parameters

visitor IVisitor

The visitor to accept.