335 references to FieldDeclaration
Microsoft.CodeAnalysis.CSharp (18)
Compilation\SyntaxTreeSemanticModel.cs (4)
907case SyntaxKind.FieldDeclaration: 1265case SyntaxKind.FieldDeclaration: 1457case SyntaxKind.FieldDeclaration: 1693case SyntaxKind.FieldDeclaration:
Declarations\DeclarationTreeBuilder.cs (3)
1097case SyntaxKind.FieldDeclaration: 1133case SyntaxKind.FieldDeclaration: 1231case SyntaxKind.FieldDeclaration:
DocumentationComments\SourceDocumentationCommentUtils.cs (1)
48if (kind == SyntaxKind.FieldDeclaration || kind == SyntaxKind.EventFieldDeclaration)
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
98case SyntaxKind.FieldDeclaration:
Parser\LanguageParser.cs (3)
555or SyntaxKind.FieldDeclaration 2403case SyntaxKind.FieldDeclaration: 5076case SyntaxKind.FieldDeclaration:
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
185case SyntaxKind.FieldDeclaration:
Symbols\Source\SourceMemberContainerSymbol.cs (2)
2789case SyntaxKind.FieldDeclaration: 4914case SyntaxKind.FieldDeclaration:
Syntax\SyntaxEquivalence.cs (1)
166if ((SyntaxKind)before.RawKind == SyntaxKind.FieldDeclaration)
Syntax\SyntaxExtensions.cs (1)
240case SyntaxKind.FieldDeclaration:
Syntax\SyntaxKindFacts.cs (1)
365case SyntaxKind.FieldDeclaration:
Microsoft.CodeAnalysis.CSharp.CodeStyle (13)
src\Analyzers\CSharp\Analyzers\QualifyMemberAccess\CSharpQualifyMemberAccessDiagnosticAnalyzer.cs (1)
65=> declarationSyntax.GetAncestorsOrThis(n => n.IsKind(SyntaxKind.FieldDeclaration) && n.Contains(node)).Any();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (2)
43case SyntaxKind.FieldDeclaration: 158case SyntaxKind.FieldDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
226variableDeclaration.IsParentKind(SyntaxKind.FieldDeclaration)) 237variableDeclaration.IsParentKind(SyntaxKind.FieldDeclaration))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
216if (previousMember.Kind() is SyntaxKind.FieldDeclaration or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
577is SyntaxKind.FieldDeclaration
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (3)
39case SyntaxKind.FieldDeclaration: 203case SyntaxKind.FieldDeclaration: 323=> node?.Parent.IsKind(SyntaxKind.FieldDeclaration) ?? false;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
1271return node.Parent?.Parent?.Kind() is SyntaxKind.FieldDeclaration or SyntaxKind.EventFieldDeclaration; 1273case SyntaxKind.FieldDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
161public int FieldDeclaration => (int)SyntaxKind.FieldDeclaration;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
17{ SyntaxKind.FieldDeclaration, 0 }, 106case SyntaxKind.FieldDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
53if (eventDeclaration.Kind() == SyntaxKind.FieldDeclaration)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
CompleteStatement\CompleteStatementCommandHandler.cs (2)
258if (currentNode.Kind() is SyntaxKind.FieldDeclaration or SyntaxKind.DelegateDeclaration or SyntaxKind.ArrowExpressionClause) 367case SyntaxKind.FieldDeclaration:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
662context.RegisterSyntaxNodeAction(AnalyzeFieldDeclaration, SyntaxKind.FieldDeclaration);
Microsoft.CodeAnalysis.CSharp.Features (11)
CodeLens\CSharpCodeLensDisplayInfoService.cs (1)
46case SyntaxKind.FieldDeclaration:
CodeRefactorings\InlineMethod\CSharpInlineMethodRefactoringProvider.cs (1)
66=> node.IsKind(SyntaxKind.FieldDeclaration);
Debugging\LocationInfoGetter.cs (1)
40if (memberDeclaration.Kind() is SyntaxKind.FieldDeclaration or SyntaxKind.EventFieldDeclaration)
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
61case SyntaxKind.FieldDeclaration:
EditAndContinue\BreakpointSpans.cs (2)
270case SyntaxKind.FieldDeclaration: 776SyntaxKind.LocalDeclarationStatement or SyntaxKind.EventFieldDeclaration or SyntaxKind.FieldDeclaration => null,
EditAndContinue\SyntaxComparer.cs (2)
612case SyntaxKind.FieldDeclaration: 1438case SyntaxKind.FieldDeclaration:
Organizing\Organizers\MemberDeclarationsOrganizer.Comparer.cs (1)
148case SyntaxKind.FieldDeclaration:
src\Analyzers\CSharp\Analyzers\QualifyMemberAccess\CSharpQualifyMemberAccessDiagnosticAnalyzer.cs (1)
65=> declarationSyntax.GetAncestorsOrThis(n => n.IsKind(SyntaxKind.FieldDeclaration) && n.Contains(node)).Any();
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
185case SyntaxKind.FieldDeclaration:
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
Diagnostics\Suppression\SuppressionTests.cs (2)
1068=> context.RegisterSyntaxNodeAction(AnalyzeNode, SyntaxKind.ClassDeclaration, SyntaxKind.EnumDeclaration, SyntaxKind.NamespaceDeclaration, SyntaxKind.MethodDeclaration, SyntaxKind.PropertyDeclaration, SyntaxKind.FieldDeclaration, SyntaxKind.EventDeclaration); 1094case SyntaxKind.FieldDeclaration:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\UnsafeTests.cs (1)
7295Assert.Equal(SyntaxKind.FieldDeclaration, syntax.Kind());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Symbols\SymbolEqualityTests.cs (16)
411var member1Syntax = (FieldDeclarationSyntax)root.DescendantNodes().First(sn => sn.Kind() == SyntaxKind.FieldDeclaration); 412var member2Syntax = (FieldDeclarationSyntax)root.DescendantNodes().Last(sn => sn.Kind() == SyntaxKind.FieldDeclaration); 449var member1Syntax = (FieldDeclarationSyntax)root.DescendantNodes().First(sn => sn.Kind() == SyntaxKind.FieldDeclaration); 450var member2Syntax = (FieldDeclarationSyntax)root.DescendantNodes().Last(sn => sn.Kind() == SyntaxKind.FieldDeclaration); 480var member1Syntax = (FieldDeclarationSyntax)root.DescendantNodes().First(sn => sn.Kind() == SyntaxKind.FieldDeclaration); 481var member2Syntax = (FieldDeclarationSyntax)root.DescendantNodes().Last(sn => sn.Kind() == SyntaxKind.FieldDeclaration); 523var member1Syntax = (FieldDeclarationSyntax)root.DescendantNodes().First(sn => sn.Kind() == SyntaxKind.FieldDeclaration); 524var member2Syntax = (FieldDeclarationSyntax)root.DescendantNodes().Last(sn => sn.Kind() == SyntaxKind.FieldDeclaration); 554var member1Syntax = (FieldDeclarationSyntax)root.DescendantNodes().First(sn => sn.Kind() == SyntaxKind.FieldDeclaration); 555var member2Syntax = (FieldDeclarationSyntax)root.DescendantNodes().Last(sn => sn.Kind() == SyntaxKind.FieldDeclaration); 625var member1Syntax = (FieldDeclarationSyntax)root.DescendantNodes().First(sn => sn.Kind() == SyntaxKind.FieldDeclaration); 626var member2Syntax = (FieldDeclarationSyntax)root.DescendantNodes().Last(sn => sn.Kind() == SyntaxKind.FieldDeclaration); 674var member1Syntax = (FieldDeclarationSyntax)root.DescendantNodes().Last(sn => sn.Kind() == SyntaxKind.ClassDeclaration).DescendantNodes().First(sn => sn.Kind() == SyntaxKind.FieldDeclaration); 675var member2Syntax = (FieldDeclarationSyntax)root.DescendantNodes().Last(sn => sn.Kind() == SyntaxKind.ClassDeclaration).DescendantNodes().Last(sn => sn.Kind() == SyntaxKind.FieldDeclaration); 726var member1Syntax = (FieldDeclarationSyntax)root.DescendantNodes().First(sn => sn.Kind() == SyntaxKind.FieldDeclaration); 727var member2Syntax = (FieldDeclarationSyntax)root.DescendantNodes().Last(sn => sn.Kind() == SyntaxKind.FieldDeclaration);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (227)
Parsing\AnonymousFunctionParsingTests.cs (6)
3757N(SyntaxKind.FieldDeclaration); 3902N(SyntaxKind.FieldDeclaration); 4034N(SyntaxKind.FieldDeclaration); 4183N(SyntaxKind.FieldDeclaration); 4345N(SyntaxKind.FieldDeclaration); 4507N(SyntaxKind.FieldDeclaration);
Parsing\AsyncParsingTests.cs (6)
438N(SyntaxKind.FieldDeclaration); 478N(SyntaxKind.FieldDeclaration); 563N(SyntaxKind.FieldDeclaration); 642N(SyntaxKind.FieldDeclaration); 937N(SyntaxKind.FieldDeclaration); 1984N(SyntaxKind.FieldDeclaration);
Parsing\DeclarationParsingTests.cs (10)
3622Assert.Equal(SyntaxKind.FieldDeclaration, cs.Members[0].Kind()); 3682Assert.Equal(SyntaxKind.FieldDeclaration, cs.Members[0].Kind()); 3722Assert.Equal(SyntaxKind.FieldDeclaration, cs.Members[0].Kind()); 3832Assert.Equal(SyntaxKind.FieldDeclaration, cs.Members[0].Kind()); 3877Assert.Equal(SyntaxKind.FieldDeclaration, cs.Members[0].Kind()); 3921Assert.Equal(SyntaxKind.FieldDeclaration, cs.Members[0].Kind()); 3966Assert.Equal(SyntaxKind.FieldDeclaration, cs.Members[0].Kind()); 4020Assert.Equal(SyntaxKind.FieldDeclaration, cs.Members[0].Kind()); 4083Assert.Equal(SyntaxKind.FieldDeclaration, cs.Members[0].Kind()); 6325N(SyntaxKind.FieldDeclaration);
Parsing\DeclarationScopeParsingTests.cs (18)
282N(SyntaxKind.FieldDeclaration); 3342N(SyntaxKind.FieldDeclaration); 13549N(SyntaxKind.FieldDeclaration); 13611N(SyntaxKind.FieldDeclaration); 13627N(SyntaxKind.FieldDeclaration); 13681N(SyntaxKind.FieldDeclaration); 13697N(SyntaxKind.FieldDeclaration); 13767N(SyntaxKind.FieldDeclaration); 13880N(SyntaxKind.FieldDeclaration); 13986N(SyntaxKind.FieldDeclaration); 14050N(SyntaxKind.FieldDeclaration); 14106N(SyntaxKind.FieldDeclaration); 14179N(SyntaxKind.FieldDeclaration); 14236N(SyntaxKind.FieldDeclaration); 14299N(SyntaxKind.FieldDeclaration); 14322N(SyntaxKind.FieldDeclaration); 14451N(SyntaxKind.FieldDeclaration); 14519N(SyntaxKind.FieldDeclaration);
Parsing\ExpressionParsingTests.cs (1)
3078N(SyntaxKind.FieldDeclaration);
Parsing\FileModifierParsingTests.cs (18)
867N(SyntaxKind.FieldDeclaration); 1071N(SyntaxKind.FieldDeclaration); 1285N(SyntaxKind.FieldDeclaration); 1372N(SyntaxKind.FieldDeclaration); 1576N(SyntaxKind.FieldDeclaration); 1601N(SyntaxKind.FieldDeclaration); 1617N(SyntaxKind.FieldDeclaration); 1645N(SyntaxKind.FieldDeclaration); 1665N(SyntaxKind.FieldDeclaration); 1685N(SyntaxKind.FieldDeclaration); 1722N(SyntaxKind.FieldDeclaration); 1840N(SyntaxKind.FieldDeclaration); 1874N(SyntaxKind.FieldDeclaration); 1903N(SyntaxKind.FieldDeclaration); 1924N(SyntaxKind.FieldDeclaration); 1945N(SyntaxKind.FieldDeclaration); 1982N(SyntaxKind.FieldDeclaration); 2925N(SyntaxKind.FieldDeclaration);
Parsing\LambdaParameterParsingTests.cs (38)
783N(SyntaxKind.FieldDeclaration); 839N(SyntaxKind.FieldDeclaration); 916N(SyntaxKind.FieldDeclaration); 977N(SyntaxKind.FieldDeclaration); 1051N(SyntaxKind.FieldDeclaration); 1116N(SyntaxKind.FieldDeclaration); 1191N(SyntaxKind.FieldDeclaration); 1257N(SyntaxKind.FieldDeclaration); 1313N(SyntaxKind.FieldDeclaration); 1374N(SyntaxKind.FieldDeclaration); 1438N(SyntaxKind.FieldDeclaration); 1502N(SyntaxKind.FieldDeclaration); 1565N(SyntaxKind.FieldDeclaration); 1615N(SyntaxKind.FieldDeclaration); 1666N(SyntaxKind.FieldDeclaration); 1734N(SyntaxKind.FieldDeclaration); 1802N(SyntaxKind.FieldDeclaration); 1858N(SyntaxKind.FieldDeclaration); 1926N(SyntaxKind.FieldDeclaration); 1984N(SyntaxKind.FieldDeclaration); 2058N(SyntaxKind.FieldDeclaration); 2152N(SyntaxKind.FieldDeclaration); 2216N(SyntaxKind.FieldDeclaration); 2276N(SyntaxKind.FieldDeclaration); 2306N(SyntaxKind.FieldDeclaration); 2421N(SyntaxKind.FieldDeclaration); 2492N(SyntaxKind.FieldDeclaration); 2562N(SyntaxKind.FieldDeclaration); 4335N(SyntaxKind.FieldDeclaration); 4399N(SyntaxKind.FieldDeclaration); 4468N(SyntaxKind.FieldDeclaration); 4554N(SyntaxKind.FieldDeclaration); 4613N(SyntaxKind.FieldDeclaration); 4762N(SyntaxKind.FieldDeclaration); 4818N(SyntaxKind.FieldDeclaration); 4879N(SyntaxKind.FieldDeclaration); 4957N(SyntaxKind.FieldDeclaration); 5016N(SyntaxKind.FieldDeclaration);
Parsing\LambdaReturnTypeParsingTests.cs (4)
2664N(SyntaxKind.FieldDeclaration); 2718N(SyntaxKind.FieldDeclaration); 5082N(SyntaxKind.FieldDeclaration); 5295N(SyntaxKind.FieldDeclaration);
Parsing\LocalFunctionParsingTests.cs (1)
593N(SyntaxKind.FieldDeclaration);
Parsing\MemberDeclarationParsingTests.cs (26)
203N(SyntaxKind.FieldDeclaration); 734N(SyntaxKind.FieldDeclaration); 753N(SyntaxKind.FieldDeclaration); 1372N(SyntaxKind.FieldDeclaration); 1396N(SyntaxKind.FieldDeclaration); 1441N(SyntaxKind.FieldDeclaration); 1774N(SyntaxKind.FieldDeclaration); 1899N(SyntaxKind.FieldDeclaration); 1914N(SyntaxKind.FieldDeclaration); 1941N(SyntaxKind.FieldDeclaration); 1960N(SyntaxKind.FieldDeclaration); 1979N(SyntaxKind.FieldDeclaration); 2015N(SyntaxKind.FieldDeclaration); 2110N(SyntaxKind.FieldDeclaration); 2138N(SyntaxKind.FieldDeclaration); 2158N(SyntaxKind.FieldDeclaration); 2178N(SyntaxKind.FieldDeclaration); 2214N(SyntaxKind.FieldDeclaration); 2266N(SyntaxKind.FieldDeclaration); 10902N(SyntaxKind.FieldDeclaration); 11077N(SyntaxKind.FieldDeclaration); 11251N(SyntaxKind.FieldDeclaration); 11759N(SyntaxKind.FieldDeclaration); 17650N(SyntaxKind.FieldDeclaration); 17712N(SyntaxKind.FieldDeclaration); 17786N(SyntaxKind.FieldDeclaration);
Parsing\NullableParsingTests.cs (1)
53N(SyntaxKind.FieldDeclaration);
Parsing\ParsingErrorRecoveryTests.cs (23)
1535Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[1].Kind()); 1552Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 1553Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[1].Kind()); 1570Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 1571Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[1].Kind()); 1590Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[1].Kind()); 1609Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 1610Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[1].Kind()); 1628Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 1629Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[1].Kind()); 1665Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 1682Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 2873Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 2890Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 2906Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 2924Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 2940Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 2956Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[0].Kind()); 5652N(SyntaxKind.FieldDeclaration); 5779N(SyntaxKind.FieldDeclaration); 6769Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[1].Kind()); 6817Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[1].Kind()); 6864Assert.Equal(SyntaxKind.FieldDeclaration, agg.Members[1].Kind());
Parsing\PatternParsingTests.cs (1)
184N(SyntaxKind.FieldDeclaration);
Parsing\RecordParsing.cs (3)
45N(SyntaxKind.FieldDeclaration); 237N(SyntaxKind.FieldDeclaration); 4010N(SyntaxKind.FieldDeclaration);
Parsing\RefFieldParsingTests.cs (12)
31N(SyntaxKind.FieldDeclaration); 68N(SyntaxKind.FieldDeclaration); 109N(SyntaxKind.FieldDeclaration); 145N(SyntaxKind.FieldDeclaration); 179N(SyntaxKind.FieldDeclaration); 237N(SyntaxKind.FieldDeclaration); 362N(SyntaxKind.FieldDeclaration); 412N(SyntaxKind.FieldDeclaration); 474N(SyntaxKind.FieldDeclaration); 506N(SyntaxKind.FieldDeclaration); 574N(SyntaxKind.FieldDeclaration); 614N(SyntaxKind.FieldDeclaration);
Parsing\ScriptParsingTests.cs (26)
195N(SyntaxKind.FieldDeclaration); 237N(SyntaxKind.FieldDeclaration); 253N(SyntaxKind.FieldDeclaration); 977N(SyntaxKind.FieldDeclaration); 1232N(SyntaxKind.FieldDeclaration); 1374N(SyntaxKind.FieldDeclaration); 2027N(SyntaxKind.FieldDeclaration); 2042N(SyntaxKind.FieldDeclaration); 2354N(SyntaxKind.FieldDeclaration); 2486N(SyntaxKind.FieldDeclaration); 2501N(SyntaxKind.FieldDeclaration); 2517N(SyntaxKind.FieldDeclaration); 2533N(SyntaxKind.FieldDeclaration); 2549N(SyntaxKind.FieldDeclaration); 2815N(SyntaxKind.FieldDeclaration); 2845N(SyntaxKind.FieldDeclaration); 2888N(SyntaxKind.FieldDeclaration); 2934N(SyntaxKind.FieldDeclaration); 2991N(SyntaxKind.FieldDeclaration); 3032N(SyntaxKind.FieldDeclaration); 8047N(SyntaxKind.FieldDeclaration); 8389N(SyntaxKind.FieldDeclaration); 8421N(SyntaxKind.FieldDeclaration); 8453N(SyntaxKind.FieldDeclaration); 8485N(SyntaxKind.FieldDeclaration); 8529N(SyntaxKind.FieldDeclaration);
Parsing\SeparatedSyntaxListParsingTests.cs (20)
68N(SyntaxKind.FieldDeclaration); 92N(SyntaxKind.FieldDeclaration); 116N(SyntaxKind.FieldDeclaration); 145N(SyntaxKind.FieldDeclaration); 174N(SyntaxKind.FieldDeclaration); 208N(SyntaxKind.FieldDeclaration); 237N(SyntaxKind.FieldDeclaration); 266N(SyntaxKind.FieldDeclaration); 450N(SyntaxKind.FieldDeclaration); 483N(SyntaxKind.FieldDeclaration); 516N(SyntaxKind.FieldDeclaration); 573N(SyntaxKind.FieldDeclaration); 806N(SyntaxKind.FieldDeclaration); 845N(SyntaxKind.FieldDeclaration); 884N(SyntaxKind.FieldDeclaration); 928N(SyntaxKind.FieldDeclaration); 972N(SyntaxKind.FieldDeclaration); 1021N(SyntaxKind.FieldDeclaration); 1065N(SyntaxKind.FieldDeclaration); 1109N(SyntaxKind.FieldDeclaration);
Parsing\SingleLineDeclarationParsingTests.cs (1)
837N(SyntaxKind.FieldDeclaration);
Parsing\StatementAttributeParsingTests.cs (1)
6908N(SyntaxKind.FieldDeclaration);
Parsing\SuppressNullableWarningExpressionParsingTests.cs (1)
42N(SyntaxKind.FieldDeclaration);
Parsing\TopLevelStatementsParsingTests.cs (1)
375N(SyntaxKind.FieldDeclaration);
Parsing\UsingDirectiveParsingTests.cs (6)
1650N(SyntaxKind.FieldDeclaration); 1756N(SyntaxKind.FieldDeclaration); 3730N(SyntaxKind.FieldDeclaration); 3745N(SyntaxKind.FieldDeclaration); 3892N(SyntaxKind.FieldDeclaration); 3907N(SyntaxKind.FieldDeclaration);
Parsing\ValueTupleTests.cs (3)
238N(SyntaxKind.FieldDeclaration); 342N(SyntaxKind.FieldDeclaration); 629N(SyntaxKind.FieldDeclaration);
Microsoft.CodeAnalysis.CSharp.Workspaces (30)
CodeGeneration\CSharpSyntaxGenerator.cs (14)
181AsModifierList(accessibility, modifiers, SyntaxKind.FieldDeclaration), 862case SyntaxKind.FieldDeclaration: 913case SyntaxKind.FieldDeclaration: 1274case SyntaxKind.FieldDeclaration: 1327SyntaxKind.FieldDeclaration => ((FieldDeclarationSyntax)declaration).Declaration.Variables.Count, 1570case SyntaxKind.FieldDeclaration: 1970case SyntaxKind.FieldDeclaration: 2009SyntaxKind.FieldDeclaration => ((FieldDeclarationSyntax)declaration).WithDeclaration(((FieldDeclarationSyntax)declaration).Declaration.WithType((TypeSyntax)type)), 2073SyntaxKind.FieldDeclaration => ((FieldDeclarationSyntax)declaration).Declaration, 2082SyntaxKind.FieldDeclaration => ((FieldDeclarationSyntax)declaration).WithDeclaration(variables), 2402case SyntaxKind.FieldDeclaration: 2442case SyntaxKind.FieldDeclaration: 2816case SyntaxKind.FieldDeclaration: 2975SyntaxKind.FieldDeclaration => ((FieldDeclarationSyntax)declaration).Declaration.Variables,
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
381case SyntaxKind.FieldDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\MemberDeclarationSyntaxExtensions.cs (2)
43case SyntaxKind.FieldDeclaration: 158case SyntaxKind.FieldDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
226variableDeclaration.IsParentKind(SyntaxKind.FieldDeclaration)) 237variableDeclaration.IsParentKind(SyntaxKind.FieldDeclaration))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\ElasticTriviaFormattingRule.cs (1)
216if (previousMember.Kind() is SyntaxKind.FieldDeclaration or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
577is SyntaxKind.FieldDeclaration
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (3)
39case SyntaxKind.FieldDeclaration: 203case SyntaxKind.FieldDeclaration: 323=> node?.Parent.IsKind(SyntaxKind.FieldDeclaration) ?? false;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
1271return node.Parent?.Parent?.Kind() is SyntaxKind.FieldDeclaration or SyntaxKind.EventFieldDeclaration; 1273case SyntaxKind.FieldDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
161public int FieldDeclaration => (int)SyntaxKind.FieldDeclaration;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (2)
17{ SyntaxKind.FieldDeclaration, 0 }, 106case SyntaxKind.FieldDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
53if (eventDeclaration.Kind() == SyntaxKind.FieldDeclaration)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (6)
CodeGeneration\SyntaxGeneratorTests.cs (6)
3816Assert.Equal(SyntaxKind.FieldDeclaration, xTypedT.Kind()); 3821Assert.Equal(SyntaxKind.FieldDeclaration, xNamedQ.Kind()); 3826Assert.Equal(SyntaxKind.FieldDeclaration, xInitialized.Kind()); 3831Assert.Equal(SyntaxKind.FieldDeclaration, xPrivate.Kind()); 3836Assert.Equal(SyntaxKind.FieldDeclaration, xReadOnly.Kind()); 3841Assert.Equal(SyntaxKind.FieldDeclaration, xAttributed.Kind());
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\ConvertToLibraryImportFixer.cs (1)
345if (declaration.IsKind(SyntaxKind.FieldDeclaration) || declaration.IsKind(SyntaxKind.EventFieldDeclaration))
Microsoft.ML.InternalCodeAnalyzer (1)
NameAnalyzer.cs (1)
79context.RegisterSyntaxNodeAction(AnalyzeField, SyntaxKind.FieldDeclaration);
Microsoft.VisualStudio.LanguageServices.CSharp (3)
CodeModel\CSharpCodeModelService.cs (3)
181case SyntaxKind.FieldDeclaration: 574if (baseFieldDeclaration.Kind() == SyntaxKind.FieldDeclaration) 3503case SyntaxKind.FieldDeclaration: