共用方式為


SyntaxGenerator.ParameterDeclaration Method

Definition

Overloads

ParameterDeclaration(String, SyntaxNode, SyntaxNode, RefKind)

Creates a parameter declaration.

ParameterDeclaration(IParameterSymbol, SyntaxNode)

Creates a parameter declaration matching an existing parameter symbol.

ParameterDeclaration(String, SyntaxNode, SyntaxNode, RefKind)

Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs

Creates a parameter declaration.

public abstract Microsoft.CodeAnalysis.SyntaxNode ParameterDeclaration (string name, Microsoft.CodeAnalysis.SyntaxNode type = default, Microsoft.CodeAnalysis.SyntaxNode initializer = default, Microsoft.CodeAnalysis.RefKind refKind = Microsoft.CodeAnalysis.RefKind.None);
public abstract Microsoft.CodeAnalysis.SyntaxNode ParameterDeclaration (string name, Microsoft.CodeAnalysis.SyntaxNode? type = default, Microsoft.CodeAnalysis.SyntaxNode? initializer = default, Microsoft.CodeAnalysis.RefKind refKind = Microsoft.CodeAnalysis.RefKind.None);
public Microsoft.CodeAnalysis.SyntaxNode ParameterDeclaration (string name, Microsoft.CodeAnalysis.SyntaxNode? type = default, Microsoft.CodeAnalysis.SyntaxNode? initializer = default, Microsoft.CodeAnalysis.RefKind refKind = Microsoft.CodeAnalysis.RefKind.None);
abstract member ParameterDeclaration : string * Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.RefKind -> Microsoft.CodeAnalysis.SyntaxNode
member this.ParameterDeclaration : string * Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.RefKind -> Microsoft.CodeAnalysis.SyntaxNode
Public MustOverride Function ParameterDeclaration (name As String, Optional type As SyntaxNode = Nothing, Optional initializer As SyntaxNode = Nothing, Optional refKind As RefKind = Microsoft.CodeAnalysis.RefKind.None) As SyntaxNode
Public Function ParameterDeclaration (name As String, Optional type As SyntaxNode = Nothing, Optional initializer As SyntaxNode = Nothing, Optional refKind As RefKind = Microsoft.CodeAnalysis.RefKind.None) As SyntaxNode

Parameters

name
String
type
SyntaxNode
initializer
SyntaxNode
refKind
RefKind

Returns

Applies to

ParameterDeclaration(IParameterSymbol, SyntaxNode)

Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs

Creates a parameter declaration matching an existing parameter symbol.

public Microsoft.CodeAnalysis.SyntaxNode ParameterDeclaration (Microsoft.CodeAnalysis.IParameterSymbol symbol, Microsoft.CodeAnalysis.SyntaxNode initializer = default);
public Microsoft.CodeAnalysis.SyntaxNode ParameterDeclaration (Microsoft.CodeAnalysis.IParameterSymbol symbol, Microsoft.CodeAnalysis.SyntaxNode? initializer = default);
member this.ParameterDeclaration : Microsoft.CodeAnalysis.IParameterSymbol * Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.SyntaxNode
Public Function ParameterDeclaration (symbol As IParameterSymbol, Optional initializer As SyntaxNode = Nothing) As SyntaxNode

Parameters

initializer
SyntaxNode

Returns

Applies to