SyntaxGenerator.LocalDeclarationStatement Method

Definition

Overloads

LocalDeclarationStatement(SyntaxNode, String, SyntaxNode, Boolean)

Creates a statement that declares a single local variable.

LocalDeclarationStatement(ITypeSymbol, String, SyntaxNode, Boolean)

Creates a statement that declares a single local variable.

LocalDeclarationStatement(String, SyntaxNode)

Creates a statement that declares a single local variable.

LocalDeclarationStatement(SyntaxNode, String, SyntaxNode, Boolean)

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
Source:
SyntaxGenerator.cs

Creates a statement that declares a single local variable.

public abstract Microsoft.CodeAnalysis.SyntaxNode LocalDeclarationStatement (Microsoft.CodeAnalysis.SyntaxNode type, string identifier, Microsoft.CodeAnalysis.SyntaxNode initializer = default, bool isConst = false);
public abstract Microsoft.CodeAnalysis.SyntaxNode LocalDeclarationStatement (Microsoft.CodeAnalysis.SyntaxNode? type, string identifier, Microsoft.CodeAnalysis.SyntaxNode? initializer = default, bool isConst = false);
abstract member LocalDeclarationStatement : Microsoft.CodeAnalysis.SyntaxNode * string * Microsoft.CodeAnalysis.SyntaxNode * bool -> Microsoft.CodeAnalysis.SyntaxNode
Public MustOverride Function LocalDeclarationStatement (type As SyntaxNode, identifier As String, Optional initializer As SyntaxNode = Nothing, Optional isConst As Boolean = false) As SyntaxNode

Parameters

type
SyntaxNode
identifier
String
initializer
SyntaxNode
isConst
Boolean

Returns

Applies to

LocalDeclarationStatement(ITypeSymbol, String, SyntaxNode, Boolean)

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
Source:
SyntaxGenerator.cs

Creates a statement that declares a single local variable.

public Microsoft.CodeAnalysis.SyntaxNode LocalDeclarationStatement (Microsoft.CodeAnalysis.ITypeSymbol type, string name, Microsoft.CodeAnalysis.SyntaxNode initializer = default, bool isConst = false);
public Microsoft.CodeAnalysis.SyntaxNode LocalDeclarationStatement (Microsoft.CodeAnalysis.ITypeSymbol type, string name, Microsoft.CodeAnalysis.SyntaxNode? initializer = default, bool isConst = false);
member this.LocalDeclarationStatement : Microsoft.CodeAnalysis.ITypeSymbol * string * Microsoft.CodeAnalysis.SyntaxNode * bool -> Microsoft.CodeAnalysis.SyntaxNode
Public Function LocalDeclarationStatement (type As ITypeSymbol, name As String, Optional initializer As SyntaxNode = Nothing, Optional isConst As Boolean = false) As SyntaxNode

Parameters

name
String
initializer
SyntaxNode
isConst
Boolean

Returns

Applies to

LocalDeclarationStatement(String, 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
Source:
SyntaxGenerator.cs

Creates a statement that declares a single local variable.

public:
 Microsoft::CodeAnalysis::SyntaxNode ^ LocalDeclarationStatement(System::String ^ name, Microsoft::CodeAnalysis::SyntaxNode ^ initializer);
public Microsoft.CodeAnalysis.SyntaxNode LocalDeclarationStatement (string name, Microsoft.CodeAnalysis.SyntaxNode initializer);
member this.LocalDeclarationStatement : string * Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.SyntaxNode
Public Function LocalDeclarationStatement (name As String, initializer As SyntaxNode) As SyntaxNode

Parameters

name
String
initializer
SyntaxNode

Returns

Applies to