Class Stmt.Function
Inheritance
System.Object
Stmt.Function
Assembly: Perlang.Common.dll
Syntax
public class Function : Stmt
Constructors
|
Improve this Doc
View Source
Function(Token, IEnumerable<Parameter>, IEnumerable<Stmt>, TypeReference)
Declaration
public Function(Token name, IEnumerable<Parameter> parameters, IEnumerable<Stmt> body, TypeReference returnTypeReference)
Parameters
Properties
|
Improve this Doc
View Source
Body
Declaration
public ImmutableList<Stmt> Body { get; }
Property Value
Type |
Description |
ImmutableList<Stmt> |
|
|
Improve this Doc
View Source
Name
Declaration
public Token Name { get; }
Property Value
|
Improve this Doc
View Source
Parameters
Declaration
public ImmutableList<Parameter> Parameters { get; }
Property Value
|
Improve this Doc
View Source
ReturnTypeReference
Declaration
public ITypeReference ReturnTypeReference { get; }
Property Value
Methods
|
Improve this Doc
View Source
Accept<TR>(Stmt.IVisitor<TR>)
Declaration
public override TR Accept<TR>(Stmt.IVisitor<TR> visitor)
Parameters
Returns
Type Parameters
Overrides
Perlang.Stmt.Accept<TR>(Perlang.Stmt.IVisitor<TR>)
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|