Class FunctionTypeParameterSyntax
Node that represents a function type argument with an optional preceding name and :
token.
Implements
IFormattable
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)
Namespace: Loretta.CodeAnalysis.Lua.Syntax
Assembly: Loretta.CodeAnalysis.Lua.dll
Syntax
public sealed class FunctionTypeParameterSyntax : LuaSyntaxNode
Remarks
This node is associated with the following syntax kinds:
Properties
| Improve this Doc View SourceColonToken
The (optional) :
token that separates the parameter name from the parameter type.
Declaration
public SyntaxToken ColonToken { get; }
Property Value
Type | Description |
---|---|
SyntaxToken |
Remarks
Either both this and Identifier are available or both are null.
Identifier
The (optional) identifier name token that contains the parameter name in the function's signature.
Declaration
public SyntaxToken Identifier { get; }
Property Value
Type | Description |
---|---|
SyntaxToken |
Remarks
Either both this and ColonToken are available or both are null.
Type
The type that the parameter in the position this node is located in the function signature should have.
Declaration
public TypeSyntax Type { get; }
Property Value
Type | Description |
---|---|
TypeSyntax |
Methods
| Improve this Doc View SourceAccept(LuaSyntaxVisitor)
Declaration
public override void Accept(LuaSyntaxVisitor visitor)
Parameters
Type | Name | Description |
---|---|---|
LuaSyntaxVisitor | visitor |
Overrides
| Improve this Doc View SourceAccept<TResult>(LuaSyntaxVisitor<TResult>)
Declaration
public override TResult Accept<TResult>(LuaSyntaxVisitor<TResult> visitor)
Parameters
Type | Name | Description |
---|---|---|
LuaSyntaxVisitor<TResult> | visitor |
Returns
Type | Description |
---|---|
TResult |
Type Parameters
Name | Description |
---|---|
TResult |
Overrides
Loretta.CodeAnalysis.Lua.LuaSyntaxNode.Accept<TResult>(Loretta.CodeAnalysis.Lua.LuaSyntaxVisitor<TResult>)
|
Improve this Doc
View Source
Update(SyntaxToken, SyntaxToken, TypeSyntax)
Declaration
public FunctionTypeParameterSyntax Update(SyntaxToken identifier, SyntaxToken colonToken, TypeSyntax type)
Parameters
Type | Name | Description |
---|---|---|
SyntaxToken | identifier | |
SyntaxToken | colonToken | |
TypeSyntax | type |
Returns
Type | Description |
---|---|
FunctionTypeParameterSyntax |
WithColonToken(SyntaxToken)
Declaration
public FunctionTypeParameterSyntax WithColonToken(SyntaxToken colonToken)
Parameters
Type | Name | Description |
---|---|---|
SyntaxToken | colonToken |
Returns
Type | Description |
---|---|
FunctionTypeParameterSyntax |
WithIdentifier(SyntaxToken)
Declaration
public FunctionTypeParameterSyntax WithIdentifier(SyntaxToken identifier)
Parameters
Type | Name | Description |
---|---|---|
SyntaxToken | identifier |
Returns
Type | Description |
---|---|
FunctionTypeParameterSyntax |
WithType(TypeSyntax)
Declaration
public FunctionTypeParameterSyntax WithType(TypeSyntax type)
Parameters
Type | Name | Description |
---|---|---|
TypeSyntax | type |
Returns
Type | Description |
---|---|
FunctionTypeParameterSyntax |
Implements
IFormattable