SyntaxGenerator.FieldDeclaration 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
FieldDeclaration(IFieldSymbol, SyntaxNode) |
Creates a field declaration matching an existing field symbol. |
FieldDeclaration(String, SyntaxNode, Accessibility, DeclarationModifiers, SyntaxNode) |
Creates a field declaration. |
FieldDeclaration(IFieldSymbol) |
Creates a field declaration matching an existing field symbol. |
FieldDeclaration(IFieldSymbol, 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 field declaration matching an existing field symbol.
public:
Microsoft::CodeAnalysis::SyntaxNode ^ FieldDeclaration(Microsoft::CodeAnalysis::IFieldSymbol ^ field, Microsoft::CodeAnalysis::SyntaxNode ^ initializer);
public Microsoft.CodeAnalysis.SyntaxNode FieldDeclaration (Microsoft.CodeAnalysis.IFieldSymbol field, Microsoft.CodeAnalysis.SyntaxNode initializer);
public Microsoft.CodeAnalysis.SyntaxNode FieldDeclaration (Microsoft.CodeAnalysis.IFieldSymbol field, Microsoft.CodeAnalysis.SyntaxNode? initializer);
member this.FieldDeclaration : Microsoft.CodeAnalysis.IFieldSymbol * Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.SyntaxNode
Public Function FieldDeclaration (field As IFieldSymbol, initializer As SyntaxNode) As SyntaxNode
Parameters
- field
- IFieldSymbol
- initializer
- SyntaxNode
Returns
Applies to
FieldDeclaration(String, SyntaxNode, Accessibility, DeclarationModifiers, 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 field declaration.
public abstract Microsoft.CodeAnalysis.SyntaxNode FieldDeclaration (string name, Microsoft.CodeAnalysis.SyntaxNode type, Microsoft.CodeAnalysis.Accessibility accessibility = Microsoft.CodeAnalysis.Accessibility.NotApplicable, Microsoft.CodeAnalysis.Editing.DeclarationModifiers modifiers = default, Microsoft.CodeAnalysis.SyntaxNode initializer = default);
public abstract Microsoft.CodeAnalysis.SyntaxNode FieldDeclaration (string name, Microsoft.CodeAnalysis.SyntaxNode type, Microsoft.CodeAnalysis.Accessibility accessibility = Microsoft.CodeAnalysis.Accessibility.NotApplicable, Microsoft.CodeAnalysis.Editing.DeclarationModifiers modifiers = default, Microsoft.CodeAnalysis.SyntaxNode? initializer = default);
abstract member FieldDeclaration : string * Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.Accessibility * Microsoft.CodeAnalysis.Editing.DeclarationModifiers * Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.SyntaxNode
Public MustOverride Function FieldDeclaration (name As String, type As SyntaxNode, Optional accessibility As Accessibility = Microsoft.CodeAnalysis.Accessibility.NotApplicable, Optional modifiers As DeclarationModifiers = Nothing, Optional initializer As SyntaxNode = Nothing) As SyntaxNode
Parameters
- name
- String
- type
- SyntaxNode
- accessibility
- Accessibility
- modifiers
- DeclarationModifiers
- initializer
- SyntaxNode
Returns
Applies to
FieldDeclaration(IFieldSymbol)
- 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 field declaration matching an existing field symbol.
public:
Microsoft::CodeAnalysis::SyntaxNode ^ FieldDeclaration(Microsoft::CodeAnalysis::IFieldSymbol ^ field);
public Microsoft.CodeAnalysis.SyntaxNode FieldDeclaration (Microsoft.CodeAnalysis.IFieldSymbol field);
member this.FieldDeclaration : Microsoft.CodeAnalysis.IFieldSymbol -> Microsoft.CodeAnalysis.SyntaxNode
Public Function FieldDeclaration (field As IFieldSymbol) As SyntaxNode
Parameters
- field
- IFieldSymbol
Returns
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET