28 references to Field
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (3)
51
return declarationKind is DeclarationKind.
Field
or DeclarationKind.Event;
208
return DeclarationKind.
Field
;
262
return DeclarationKind.
Field
;
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (10)
CodeGeneration\SyntaxGeneratorTests.cs (10)
2884
Assert.Equal(DeclarationKind.
Field
, Generator.GetDeclarationKind(Generator.FieldDeclaration("f", Generator.IdentifierName("t"))));
3792
Assert.Equal(DeclarationKind.
Field
, Generator.GetDeclarationKind(declX));
3793
Assert.Equal(DeclarationKind.
Field
, Generator.GetDeclarationKind(declY));
3794
Assert.Equal(DeclarationKind.
Field
, Generator.GetDeclarationKind(declZ));
3815
Assert.Equal(DeclarationKind.
Field
, Generator.GetDeclarationKind(xTypedT));
3820
Assert.Equal(DeclarationKind.
Field
, Generator.GetDeclarationKind(xNamedQ));
3825
Assert.Equal(DeclarationKind.
Field
, Generator.GetDeclarationKind(xInitialized));
3830
Assert.Equal(DeclarationKind.
Field
, Generator.GetDeclarationKind(xPrivate));
3835
Assert.Equal(DeclarationKind.
Field
, Generator.GetDeclarationKind(xReadOnly));
3840
Assert.Equal(DeclarationKind.
Field
, Generator.GetDeclarationKind(xAttributed));
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
453
If (kind = DeclarationKind.
Field
AndAlso _list.Count = 0) Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
CodeGeneration\VisualBasicSyntaxGenerator.vb (3)
681
modifiers:=GetModifierList(accessibility, modifiers And VisualBasicSyntaxGeneratorInternal.s_fieldModifiers, declaration:=Nothing, DeclarationKind.
Field
),
1819
Return DeclarationKind.
Field
1827
Return DeclarationKind.
Field
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
453
If (kind = DeclarationKind.
Field
AndAlso _list.Count = 0) Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (10)
CodeGeneration\SyntaxGeneratorTests.vb (10)
2579
Assert.Equal(DeclarationKind.
Field
, Generator.GetDeclarationKind(Generator.FieldDeclaration("f", Generator.IdentifierName("t"))))
3483
Assert.Equal(DeclarationKind.
Field
, Generator.GetDeclarationKind(declX))
3484
Assert.Equal(DeclarationKind.
Field
, Generator.GetDeclarationKind(declY))
3485
Assert.Equal(DeclarationKind.
Field
, Generator.GetDeclarationKind(declZ))
3506
Assert.Equal(DeclarationKind.
Field
, Generator.GetDeclarationKind(xTypedT))
3511
Assert.Equal(DeclarationKind.
Field
, Generator.GetDeclarationKind(xNamedQ))
3516
Assert.Equal(DeclarationKind.
Field
, Generator.GetDeclarationKind(xInitialized))
3521
Assert.Equal(DeclarationKind.
Field
, Generator.GetDeclarationKind(xPrivate))
3526
Assert.Equal(DeclarationKind.
Field
, Generator.GetDeclarationKind(xReadOnly))
3531
Assert.Equal(DeclarationKind.
Field
, Generator.GetDeclarationKind(xAttributed))