SyntaxGenerator.LocalDeclarationStatement Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- type
- ITypeSymbol
- 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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET