Class NamedParameterSyntax
Represents a named function parameter.
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 NamedParameterSyntax : ParameterSyntax
Remarks
This node is associated with the following syntax kinds:
Properties
| Improve this Doc View SourceIdentifier
The name of the parameter.
Declaration
public SyntaxToken Identifier { get; }
Property Value
Type | Description |
---|---|
SyntaxToken |
Name
This parameter's name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
TypeBinding
The TypeBindingSyntax containing the (optional) type.
Declaration
public TypeBindingSyntax TypeBinding { get; }
Property Value
Type | Description |
---|---|
TypeBindingSyntax |
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, TypeBindingSyntax)
Declaration
public NamedParameterSyntax Update(SyntaxToken identifier, TypeBindingSyntax typeBinding)
Parameters
Type | Name | Description |
---|---|---|
SyntaxToken | identifier | |
TypeBindingSyntax | typeBinding |
Returns
Type | Description |
---|---|
NamedParameterSyntax |
WithIdentifier(SyntaxToken)
Declaration
public NamedParameterSyntax WithIdentifier(SyntaxToken identifier)
Parameters
Type | Name | Description |
---|---|---|
SyntaxToken | identifier |
Returns
Type | Description |
---|---|
NamedParameterSyntax |
WithTypeBinding(TypeBindingSyntax)
Declaration
public NamedParameterSyntax WithTypeBinding(TypeBindingSyntax typeBinding)
Parameters
Type | Name | Description |
---|---|---|
TypeBindingSyntax | typeBinding |
Returns
Type | Description |
---|---|
NamedParameterSyntax |
Implements
IFormattable