Class FunctionDeclarationStatementSyntax
Represents a function declaration statement.
Inheritance
System.Object
FunctionDeclarationStatementSyntax
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Loretta.CodeAnalysis.Lua.dll
Syntax
public sealed class FunctionDeclarationStatementSyntax : StatementSyntax
Properties
|
Improve this Doc
View Source
Body
Declaration
public StatementListSyntax Body { get; }
Property Value
|
Improve this Doc
View Source
EndKeyword
Declaration
public SyntaxToken EndKeyword { get; }
Property Value
|
Improve this Doc
View Source
FunctionKeyword
Declaration
public SyntaxToken FunctionKeyword { get; }
Property Value
|
Improve this Doc
View Source
Name
Declaration
public FunctionNameSyntax Name { get; }
Property Value
|
Improve this Doc
View Source
Parameters
The function's parameters.
Declaration
public ParameterListSyntax Parameters { get; }
Property Value
|
Improve this Doc
View Source
SemicolonToken
The semicolon at the end of the statement (if any).
Declaration
public override SyntaxToken SemicolonToken { get; }
Property Value
Overrides
|
Improve this Doc
View Source
TypeBinding
The function's (optional) return type.
Declaration
public TypeBindingSyntax TypeBinding { get; }
Property Value
|
Improve this Doc
View Source
TypeParameterList
Gets the type parameter list for this function (if any).
Declaration
public TypeParameterListSyntax TypeParameterList { get; }
Property Value
Methods
|
Improve this Doc
View Source
Accept(LuaSyntaxVisitor)
Declaration
public override void Accept(LuaSyntaxVisitor visitor)
Parameters
Overrides
|
Improve this Doc
View Source
Accept<TResult>(LuaSyntaxVisitor<TResult>)
Declaration
public override TResult Accept<TResult>(LuaSyntaxVisitor<TResult> visitor)
Parameters
Returns
Type Parameters
Overrides
Loretta.CodeAnalysis.Lua.LuaSyntaxNode.Accept<TResult>(Loretta.CodeAnalysis.Lua.LuaSyntaxVisitor<TResult>)
|
Improve this Doc
View Source
AddBodyStatements(StatementSyntax[])
Declaration
public FunctionDeclarationStatementSyntax AddBodyStatements(params StatementSyntax[] items)
Parameters
Returns
|
Improve this Doc
View Source
AddParametersParameters(ParameterSyntax[])
Declaration
public FunctionDeclarationStatementSyntax AddParametersParameters(params ParameterSyntax[] items)
Parameters
Returns
|
Improve this Doc
View Source
AddTypeParameterListNames(TypeParameterSyntax[])
Declaration
public FunctionDeclarationStatementSyntax AddTypeParameterListNames(params TypeParameterSyntax[] items)
Parameters
Returns
|
Improve this Doc
View Source
Update(SyntaxToken, FunctionNameSyntax, TypeParameterListSyntax, ParameterListSyntax, TypeBindingSyntax, StatementListSyntax, SyntaxToken, SyntaxToken)
Declaration
public FunctionDeclarationStatementSyntax Update(SyntaxToken functionKeyword, FunctionNameSyntax name, TypeParameterListSyntax typeParameterList, ParameterListSyntax parameters, TypeBindingSyntax typeBinding, StatementListSyntax body, SyntaxToken endKeyword, SyntaxToken semicolonToken)
Parameters
Returns
|
Improve this Doc
View Source
WithBody(StatementListSyntax)
Declaration
public FunctionDeclarationStatementSyntax WithBody(StatementListSyntax body)
Parameters
Returns
|
Improve this Doc
View Source
WithEndKeyword(SyntaxToken)
Declaration
public FunctionDeclarationStatementSyntax WithEndKeyword(SyntaxToken endKeyword)
Parameters
Returns
|
Improve this Doc
View Source
WithFunctionKeyword(SyntaxToken)
Declaration
public FunctionDeclarationStatementSyntax WithFunctionKeyword(SyntaxToken functionKeyword)
Parameters
Returns
|
Improve this Doc
View Source
WithName(FunctionNameSyntax)
Declaration
public FunctionDeclarationStatementSyntax WithName(FunctionNameSyntax name)
Parameters
Returns
|
Improve this Doc
View Source
WithParameters(ParameterListSyntax)
Declaration
public FunctionDeclarationStatementSyntax WithParameters(ParameterListSyntax parameters)
Parameters
Returns
|
Improve this Doc
View Source
WithSemicolonToken(SyntaxToken)
Declaration
public FunctionDeclarationStatementSyntax WithSemicolonToken(SyntaxToken semicolonToken)
Parameters
Returns
|
Improve this Doc
View Source
WithTypeBinding(TypeBindingSyntax)
Declaration
public FunctionDeclarationStatementSyntax WithTypeBinding(TypeBindingSyntax typeBinding)
Parameters
Returns
|
Improve this Doc
View Source
WithTypeParameterList(TypeParameterListSyntax)
Declaration
public FunctionDeclarationStatementSyntax WithTypeParameterList(TypeParameterListSyntax typeParameterList)
Parameters
Returns
Implements
IFormattable
Extension Methods