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
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
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
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.