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