Class LocalFunctionDeclarationStatementSyntax
Represents a local function declaration statement.
Inheritance
System.Object
LocalFunctionDeclarationStatementSyntax
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 LocalFunctionDeclarationStatementSyntax : 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
LocalKeyword
Declaration
public SyntaxToken LocalKeyword { get; }
Property Value
|
Improve this Doc
View Source
Name
Declaration
public IdentifierNameSyntax Name { get; }
Property Value
|
Improve this Doc
View Source
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 LocalFunctionDeclarationStatementSyntax AddBodyStatements(params StatementSyntax[] items)
Parameters
Returns
|
Improve this Doc
View Source
AddParametersParameters(ParameterSyntax[])
Declaration
public LocalFunctionDeclarationStatementSyntax AddParametersParameters(params ParameterSyntax[] items)
Parameters
Returns
|
Improve this Doc
View Source
AddTypeParameterListNames(TypeParameterSyntax[])
Declaration
public LocalFunctionDeclarationStatementSyntax AddTypeParameterListNames(params TypeParameterSyntax[] items)
Parameters
Returns
|
Improve this Doc
View Source
Update(SyntaxToken, SyntaxToken, IdentifierNameSyntax, TypeParameterListSyntax, ParameterListSyntax, TypeBindingSyntax, StatementListSyntax, SyntaxToken, SyntaxToken)
Declaration
public LocalFunctionDeclarationStatementSyntax Update(SyntaxToken localKeyword, SyntaxToken functionKeyword, IdentifierNameSyntax name, TypeParameterListSyntax typeParameterList, ParameterListSyntax parameters, TypeBindingSyntax typeBinding, StatementListSyntax body, SyntaxToken endKeyword, SyntaxToken semicolonToken)
Parameters
Returns
|
Improve this Doc
View Source
WithBody(StatementListSyntax)
Declaration
public LocalFunctionDeclarationStatementSyntax WithBody(StatementListSyntax body)
Parameters
Returns
|
Improve this Doc
View Source
WithEndKeyword(SyntaxToken)
Declaration
public LocalFunctionDeclarationStatementSyntax WithEndKeyword(SyntaxToken endKeyword)
Parameters
Returns
|
Improve this Doc
View Source
WithFunctionKeyword(SyntaxToken)
Declaration
public LocalFunctionDeclarationStatementSyntax WithFunctionKeyword(SyntaxToken functionKeyword)
Parameters
Returns
|
Improve this Doc
View Source
WithLocalKeyword(SyntaxToken)
Declaration
public LocalFunctionDeclarationStatementSyntax WithLocalKeyword(SyntaxToken localKeyword)
Parameters
Returns
|
Improve this Doc
View Source
WithName(IdentifierNameSyntax)
Declaration
public LocalFunctionDeclarationStatementSyntax WithName(IdentifierNameSyntax name)
Parameters
Returns
|
Improve this Doc
View Source
WithParameters(ParameterListSyntax)
Declaration
public LocalFunctionDeclarationStatementSyntax WithParameters(ParameterListSyntax parameters)
Parameters
Returns
|
Improve this Doc
View Source
WithSemicolonToken(SyntaxToken)
Declaration
public LocalFunctionDeclarationStatementSyntax WithSemicolonToken(SyntaxToken semicolonToken)
Parameters
Returns
|
Improve this Doc
View Source
WithTypeBinding(TypeBindingSyntax)
Declaration
public LocalFunctionDeclarationStatementSyntax WithTypeBinding(TypeBindingSyntax typeBinding)
Parameters
Returns
|
Improve this Doc
View Source
WithTypeParameterList(TypeParameterListSyntax)
Declaration
public LocalFunctionDeclarationStatementSyntax WithTypeParameterList(TypeParameterListSyntax typeParameterList)
Parameters
Returns
Implements
IFormattable
Extension Methods