750 references to VariableDeclaration
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Expressions.cs (1)
4624if (!variableDeclaration.IsKind(SyntaxKind.VariableDeclaration))
Binder\Binder_Statements.cs (1)
790declarationNode.Kind() == SyntaxKind.VariableDeclaration ||
Binder\UsingStatementBinder.cs (1)
93bool isExpression = !isUsingDeclaration && syntax.Kind() != SyntaxKind.VariableDeclaration;
Compilation\MemberSemanticModel.cs (1)
2236Debug.Assert(parent.Kind() == SyntaxKind.VariableDeclaration);
Parser\LanguageParser.cs (2)
5178if (parent != null && (parent.Kind() == SyntaxKind.VariableDeclaration || parent.Kind() == SyntaxKind.LocalDeclarationStatement)) 5198&& (oldKind = GetOldParent(old).Kind()) != SyntaxKind.VariableDeclaration // or in a method body
Syntax\SyntaxFacts.cs (2)
128case VariableDeclaration: 353if (current == null || !current.IsKind(VariableDeclaration)) return false;
Syntax\SyntaxNodeExtensions.cs (1)
175variableDeclarator.Parent.IsKind(SyntaxKind.VariableDeclaration);
Microsoft.CodeAnalysis.CSharp.CodeStyle (9)
src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (1)
39SyntaxKind.VariableDeclaration, SyntaxKind.ForEachStatement);
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpTypeStyleDiagnosticAnalyzerBase.cs (1)
30HandleVariableDeclaration, SyntaxKind.VariableDeclaration, SyntaxKind.ForEachStatement, SyntaxKind.DeclarationExpression);
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
137case SyntaxKind.VariableDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
236type.Parent.Parent.Parent.IsParentKind(SyntaxKind.VariableDeclaration, out variableDeclaration) && 297if (type.IsParentKind(SyntaxKind.VariableDeclaration, out variableDeclaration) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
48case SyntaxKind.VariableDeclaration: 239case SyntaxKind.VariableDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.cs (2)
62if (typeName?.FirstAncestorOrSelf<SyntaxNode>(a => a.Kind() is SyntaxKind.DeclarationExpression or SyntaxKind.VariableDeclaration or SyntaxKind.ForEachStatement) is not { } declaration) 84Debug.Assert(node.Kind() is SyntaxKind.VariableDeclaration or SyntaxKind.ForEachStatement or SyntaxKind.DeclarationExpression);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
886case SyntaxKind.VariableDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
1800if (parent.IsParentKind(SyntaxKind.VariableDeclaration) && 2078equalsValue.Parent.IsParentKind(SyntaxKind.VariableDeclaration)) 2347if (type.IsParentKind(SyntaxKind.VariableDeclaration) &&
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
2244var syntaxKinds = ImmutableArray.Create(SyntaxKind.VariableDeclaration);
Microsoft.CodeAnalysis.CSharp.Features (15)
CodeLens\CSharpCodeLensDisplayInfoService.cs (1)
53case SyntaxKind.VariableDeclaration:
CodeRefactorings\UseExplicitOrImplicitType\AbstractUseTypeCodeRefactoringProvider.cs (1)
41Debug.Assert(declaration.Kind() is SyntaxKind.VariableDeclaration or SyntaxKind.ForEachStatement or SyntaxKind.DeclarationExpression);
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
463SyntaxKind.VariableDeclaration or
EditAndContinue\BreakpointSpans.cs (1)
266case SyntaxKind.VariableDeclaration:
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (5)
136Debug.Assert(current.Parent.IsKind(SyntaxKind.VariableDeclaration)); 256case SyntaxKind.VariableDeclaration: 1667case SyntaxKind.VariableDeclaration: 2045case SyntaxKind.VariableDeclaration: 2791case SyntaxKind.VariableDeclaration:
EditAndContinue\SyntaxComparer.cs (3)
545case SyntaxKind.VariableDeclaration: 658case SyntaxKind.VariableDeclaration: 1440case SyntaxKind.VariableDeclaration:
src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (1)
39SyntaxKind.VariableDeclaration, SyntaxKind.ForEachStatement);
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpTypeStyleDiagnosticAnalyzerBase.cs (1)
30HandleVariableDeclaration, SyntaxKind.VariableDeclaration, SyntaxKind.ForEachStatement, SyntaxKind.DeclarationExpression);
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
137case SyntaxKind.VariableDeclaration:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\AccessibilityTests.cs (1)
35s_testPosition = t.FindNodeOrTokenByKind(SyntaxKind.VariableDeclaration).SpanStart;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (687)
IncrementalParsing\IncrementalParsingTests.cs (1)
447SyntaxKind.VariableDeclaration,
Parsing\AnonymousFunctionParsingTests.cs (33)
71N(SyntaxKind.VariableDeclaration); 172N(SyntaxKind.VariableDeclaration); 269N(SyntaxKind.VariableDeclaration); 370N(SyntaxKind.VariableDeclaration); 471N(SyntaxKind.VariableDeclaration); 575N(SyntaxKind.VariableDeclaration); 706N(SyntaxKind.VariableDeclaration); 824N(SyntaxKind.VariableDeclaration); 1929N(SyntaxKind.VariableDeclaration); 2058N(SyntaxKind.VariableDeclaration); 2136N(SyntaxKind.VariableDeclaration); 2222N(SyntaxKind.VariableDeclaration); 2515N(SyntaxKind.VariableDeclaration); 2663N(SyntaxKind.VariableDeclaration); 2811N(SyntaxKind.VariableDeclaration); 2937N(SyntaxKind.VariableDeclaration); 3073N(SyntaxKind.VariableDeclaration); 3196N(SyntaxKind.VariableDeclaration); 3336N(SyntaxKind.VariableDeclaration); 3489N(SyntaxKind.VariableDeclaration); 3642N(SyntaxKind.VariableDeclaration); 3761N(SyntaxKind.VariableDeclaration); 3791N(SyntaxKind.VariableDeclaration); 3906N(SyntaxKind.VariableDeclaration); 3936N(SyntaxKind.VariableDeclaration); 4038N(SyntaxKind.VariableDeclaration); 4068N(SyntaxKind.VariableDeclaration); 4187N(SyntaxKind.VariableDeclaration); 4217N(SyntaxKind.VariableDeclaration); 4349N(SyntaxKind.VariableDeclaration); 4379N(SyntaxKind.VariableDeclaration); 4511N(SyntaxKind.VariableDeclaration); 4541N(SyntaxKind.VariableDeclaration);
Parsing\AsyncParsingTests.cs (9)
440N(SyntaxKind.VariableDeclaration); 480N(SyntaxKind.VariableDeclaration); 566N(SyntaxKind.VariableDeclaration); 646N(SyntaxKind.VariableDeclaration); 940N(SyntaxKind.VariableDeclaration); 1078N(SyntaxKind.VariableDeclaration); 1125N(SyntaxKind.VariableDeclaration); 1171N(SyntaxKind.VariableDeclaration); 1987N(SyntaxKind.VariableDeclaration);
Parsing\AsyncStreamsParsingTests.cs (2)
74N(SyntaxKind.VariableDeclaration); 231N(SyntaxKind.VariableDeclaration);
Parsing\AwaitParsingTests.cs (13)
297N(SyntaxKind.VariableDeclaration); 367N(SyntaxKind.VariableDeclaration); 973N(SyntaxKind.VariableDeclaration); 1033N(SyntaxKind.VariableDeclaration); 1079N(SyntaxKind.VariableDeclaration); 1369N(SyntaxKind.VariableDeclaration); 1449N(SyntaxKind.VariableDeclaration); 1528N(SyntaxKind.VariableDeclaration); 1619N(SyntaxKind.VariableDeclaration); 2415N(SyntaxKind.VariableDeclaration); 2501N(SyntaxKind.VariableDeclaration); 2548N(SyntaxKind.VariableDeclaration); 2659N(SyntaxKind.VariableDeclaration);
Parsing\CollectionExpressionParsingTests.cs (14)
290N(SyntaxKind.VariableDeclaration); 555N(SyntaxKind.VariableDeclaration); 3062N(SyntaxKind.VariableDeclaration); 3155N(SyntaxKind.VariableDeclaration); 5642N(SyntaxKind.VariableDeclaration); 5703N(SyntaxKind.VariableDeclaration); 7087N(SyntaxKind.VariableDeclaration); 18112N(SyntaxKind.VariableDeclaration); 18196N(SyntaxKind.VariableDeclaration); 18257N(SyntaxKind.VariableDeclaration); 18312N(SyntaxKind.VariableDeclaration); 18372N(SyntaxKind.VariableDeclaration); 18436N(SyntaxKind.VariableDeclaration); 18513N(SyntaxKind.VariableDeclaration);
Parsing\DeclarationExpressionTests.cs (2)
280N(SyntaxKind.VariableDeclaration); 343N(SyntaxKind.VariableDeclaration);
Parsing\DeclarationParsingTests.cs (3)
6328N(SyntaxKind.VariableDeclaration); 8308N(SyntaxKind.VariableDeclaration); 8620N(SyntaxKind.VariableDeclaration);
Parsing\DeclarationScopeParsingTests.cs (155)
284N(SyntaxKind.VariableDeclaration); 1452N(SyntaxKind.VariableDeclaration); 1467N(SyntaxKind.VariableDeclaration); 1486N(SyntaxKind.VariableDeclaration); 1506N(SyntaxKind.VariableDeclaration); 1582N(SyntaxKind.VariableDeclaration); 1653N(SyntaxKind.VariableDeclaration); 1672N(SyntaxKind.VariableDeclaration); 1695N(SyntaxKind.VariableDeclaration); 1782N(SyntaxKind.VariableDeclaration); 1801N(SyntaxKind.VariableDeclaration); 1816N(SyntaxKind.VariableDeclaration); 1836N(SyntaxKind.VariableDeclaration); 1876N(SyntaxKind.VariableDeclaration); 1898N(SyntaxKind.VariableDeclaration); 1956N(SyntaxKind.VariableDeclaration); 1991N(SyntaxKind.VariableDeclaration); 2043N(SyntaxKind.VariableDeclaration); 2066N(SyntaxKind.VariableDeclaration); 2111N(SyntaxKind.VariableDeclaration); 2129N(SyntaxKind.VariableDeclaration); 2218N(SyntaxKind.VariableDeclaration); 2244N(SyntaxKind.VariableDeclaration); 2274N(SyntaxKind.VariableDeclaration); 2324N(SyntaxKind.VariableDeclaration); 2350N(SyntaxKind.VariableDeclaration); 2380N(SyntaxKind.VariableDeclaration); 2430N(SyntaxKind.VariableDeclaration); 2452N(SyntaxKind.VariableDeclaration); 2478N(SyntaxKind.VariableDeclaration); 2522N(SyntaxKind.VariableDeclaration); 2577N(SyntaxKind.VariableDeclaration); 2599N(SyntaxKind.VariableDeclaration); 2640N(SyntaxKind.VariableDeclaration); 2662N(SyntaxKind.VariableDeclaration); 2709N(SyntaxKind.VariableDeclaration); 2748N(SyntaxKind.VariableDeclaration); 2800N(SyntaxKind.VariableDeclaration); 2823N(SyntaxKind.VariableDeclaration); 2868N(SyntaxKind.VariableDeclaration); 2886N(SyntaxKind.VariableDeclaration); 2941N(SyntaxKind.VariableDeclaration); 2981N(SyntaxKind.VariableDeclaration); 2999N(SyntaxKind.VariableDeclaration); 3079N(SyntaxKind.VariableDeclaration); 3128N(SyntaxKind.VariableDeclaration); 3150N(SyntaxKind.VariableDeclaration); 3217N(SyntaxKind.VariableDeclaration); 3233N(SyntaxKind.VariableDeclaration); 3320N(SyntaxKind.VariableDeclaration); 3356N(SyntaxKind.VariableDeclaration); 3681N(SyntaxKind.VariableDeclaration); 3757N(SyntaxKind.VariableDeclaration); 3912N(SyntaxKind.VariableDeclaration); 3996N(SyntaxKind.VariableDeclaration); 4136N(SyntaxKind.VariableDeclaration); 4280N(SyntaxKind.VariableDeclaration); 4429N(SyntaxKind.VariableDeclaration); 5231N(SyntaxKind.VariableDeclaration); 5304N(SyntaxKind.VariableDeclaration); 6283N(SyntaxKind.VariableDeclaration); 6370N(SyntaxKind.VariableDeclaration); 6781N(SyntaxKind.VariableDeclaration); 8376N(SyntaxKind.VariableDeclaration); 8413N(SyntaxKind.VariableDeclaration); 8461N(SyntaxKind.VariableDeclaration); 8506N(SyntaxKind.VariableDeclaration); 8547N(SyntaxKind.VariableDeclaration); 8596N(SyntaxKind.VariableDeclaration); 8645N(SyntaxKind.VariableDeclaration); 8686N(SyntaxKind.VariableDeclaration); 8777N(SyntaxKind.VariableDeclaration); 8879N(SyntaxKind.VariableDeclaration); 8996N(SyntaxKind.VariableDeclaration); 9037N(SyntaxKind.VariableDeclaration); 9082N(SyntaxKind.VariableDeclaration); 9128N(SyntaxKind.VariableDeclaration); 9173N(SyntaxKind.VariableDeclaration); 9214N(SyntaxKind.VariableDeclaration); 9263N(SyntaxKind.VariableDeclaration); 9304N(SyntaxKind.VariableDeclaration); 9350N(SyntaxKind.VariableDeclaration); 9396N(SyntaxKind.VariableDeclaration); 9433N(SyntaxKind.VariableDeclaration); 9478N(SyntaxKind.VariableDeclaration); 9519N(SyntaxKind.VariableDeclaration); 9555N(SyntaxKind.VariableDeclaration); 9607N(SyntaxKind.VariableDeclaration); 9894N(SyntaxKind.VariableDeclaration); 9968N(SyntaxKind.VariableDeclaration); 10280N(SyntaxKind.VariableDeclaration); 11147N(SyntaxKind.VariableDeclaration); 11251N(SyntaxKind.VariableDeclaration); 11649N(SyntaxKind.VariableDeclaration); 11705N(SyntaxKind.VariableDeclaration); 11761N(SyntaxKind.VariableDeclaration); 11780N(SyntaxKind.VariableDeclaration); 11820N(SyntaxKind.VariableDeclaration); 11864N(SyntaxKind.VariableDeclaration); 11922N(SyntaxKind.VariableDeclaration); 11942N(SyntaxKind.VariableDeclaration); 11966N(SyntaxKind.VariableDeclaration); 12007N(SyntaxKind.VariableDeclaration); 12052N(SyntaxKind.VariableDeclaration); 12103N(SyntaxKind.VariableDeclaration); 12148N(SyntaxKind.VariableDeclaration); 12194N(SyntaxKind.VariableDeclaration); 12236N(SyntaxKind.VariableDeclaration); 12302N(SyntaxKind.VariableDeclaration); 12351N(SyntaxKind.VariableDeclaration); 12408N(SyntaxKind.VariableDeclaration); 12482N(SyntaxKind.VariableDeclaration); 12549N(SyntaxKind.VariableDeclaration); 12588N(SyntaxKind.VariableDeclaration); 12647N(SyntaxKind.VariableDeclaration); 12686N(SyntaxKind.VariableDeclaration); 12749N(SyntaxKind.VariableDeclaration); 12792N(SyntaxKind.VariableDeclaration); 12856N(SyntaxKind.VariableDeclaration); 12900N(SyntaxKind.VariableDeclaration); 12946N(SyntaxKind.VariableDeclaration); 12996N(SyntaxKind.VariableDeclaration); 13047N(SyntaxKind.VariableDeclaration); 13097N(SyntaxKind.VariableDeclaration); 13143N(SyntaxKind.VariableDeclaration); 13197N(SyntaxKind.VariableDeclaration); 13243N(SyntaxKind.VariableDeclaration); 13293N(SyntaxKind.VariableDeclaration); 13344N(SyntaxKind.VariableDeclaration); 13386N(SyntaxKind.VariableDeclaration); 13438N(SyntaxKind.VariableDeclaration); 13452N(SyntaxKind.VariableDeclaration); 13501N(SyntaxKind.VariableDeclaration); 13563N(SyntaxKind.VariableDeclaration); 13626N(SyntaxKind.VariableDeclaration); 13641N(SyntaxKind.VariableDeclaration); 13696N(SyntaxKind.VariableDeclaration); 13711N(SyntaxKind.VariableDeclaration); 13782N(SyntaxKind.VariableDeclaration); 13895N(SyntaxKind.VariableDeclaration); 14001N(SyntaxKind.VariableDeclaration); 14065N(SyntaxKind.VariableDeclaration); 14121N(SyntaxKind.VariableDeclaration); 14194N(SyntaxKind.VariableDeclaration); 14250N(SyntaxKind.VariableDeclaration); 14314N(SyntaxKind.VariableDeclaration); 14337N(SyntaxKind.VariableDeclaration); 14397N(SyntaxKind.VariableDeclaration); 14465N(SyntaxKind.VariableDeclaration); 14533N(SyntaxKind.VariableDeclaration); 14581N(SyntaxKind.VariableDeclaration); 14628N(SyntaxKind.VariableDeclaration); 14675N(SyntaxKind.VariableDeclaration); 14829N(SyntaxKind.VariableDeclaration); 14915N(SyntaxKind.VariableDeclaration);
Parsing\DeconstructionTests.cs (4)
147N(SyntaxKind.VariableDeclaration); 225N(SyntaxKind.VariableDeclaration); 301N(SyntaxKind.VariableDeclaration); 550N(SyntaxKind.VariableDeclaration);
Parsing\ExpressionParsingTests.cs (12)
3080N(SyntaxKind.VariableDeclaration); 3287N(SyntaxKind.VariableDeclaration); 3377N(SyntaxKind.VariableDeclaration); 3451N(SyntaxKind.VariableDeclaration); 3533N(SyntaxKind.VariableDeclaration); 3861N(SyntaxKind.VariableDeclaration); 4129N(SyntaxKind.VariableDeclaration); 4223N(SyntaxKind.VariableDeclaration); 4320N(SyntaxKind.VariableDeclaration); 4425N(SyntaxKind.VariableDeclaration); 4710N(SyntaxKind.VariableDeclaration); 6349N(SyntaxKind.VariableDeclaration);
Parsing\FileModifierParsingTests.cs (36)
155N(SyntaxKind.VariableDeclaration); 298N(SyntaxKind.VariableDeclaration); 361N(SyntaxKind.VariableDeclaration); 424N(SyntaxKind.VariableDeclaration); 871N(SyntaxKind.VariableDeclaration); 923N(SyntaxKind.VariableDeclaration); 1074N(SyntaxKind.VariableDeclaration); 1170N(SyntaxKind.VariableDeclaration); 1288N(SyntaxKind.VariableDeclaration); 1375N(SyntaxKind.VariableDeclaration); 1580N(SyntaxKind.VariableDeclaration); 1605N(SyntaxKind.VariableDeclaration); 1621N(SyntaxKind.VariableDeclaration); 1649N(SyntaxKind.VariableDeclaration); 1669N(SyntaxKind.VariableDeclaration); 1689N(SyntaxKind.VariableDeclaration); 1726N(SyntaxKind.VariableDeclaration); 1844N(SyntaxKind.VariableDeclaration); 1879N(SyntaxKind.VariableDeclaration); 1908N(SyntaxKind.VariableDeclaration); 1929N(SyntaxKind.VariableDeclaration); 1949N(SyntaxKind.VariableDeclaration); 1986N(SyntaxKind.VariableDeclaration); 2057N(SyntaxKind.VariableDeclaration); 2110N(SyntaxKind.VariableDeclaration); 2236N(SyntaxKind.VariableDeclaration); 2301N(SyntaxKind.VariableDeclaration); 2364N(SyntaxKind.VariableDeclaration); 2427N(SyntaxKind.VariableDeclaration); 2929N(SyntaxKind.VariableDeclaration); 3054N(SyntaxKind.VariableDeclaration); 3115N(SyntaxKind.VariableDeclaration); 3162N(SyntaxKind.VariableDeclaration); 3202N(SyntaxKind.VariableDeclaration); 3244N(SyntaxKind.VariableDeclaration); 3323N(SyntaxKind.VariableDeclaration);
Parsing\ForStatementParsingTest.cs (7)
22N(SyntaxKind.VariableDeclaration); 97N(SyntaxKind.VariableDeclaration); 162N(SyntaxKind.VariableDeclaration); 230N(SyntaxKind.VariableDeclaration); 284N(SyntaxKind.VariableDeclaration); 323N(SyntaxKind.VariableDeclaration); 393N(SyntaxKind.VariableDeclaration);
Parsing\FunctionPointerTests.cs (54)
23N(SyntaxKind.VariableDeclaration); 79N(SyntaxKind.VariableDeclaration); 151N(SyntaxKind.VariableDeclaration); 201N(SyntaxKind.VariableDeclaration); 244N(SyntaxKind.VariableDeclaration); 296N(SyntaxKind.VariableDeclaration); 347N(SyntaxKind.VariableDeclaration); 390N(SyntaxKind.VariableDeclaration); 438N(SyntaxKind.VariableDeclaration); 536N(SyntaxKind.VariableDeclaration); 601N(SyntaxKind.VariableDeclaration); 652N(SyntaxKind.VariableDeclaration); 758N(SyntaxKind.VariableDeclaration); 805N(SyntaxKind.VariableDeclaration); 882N(SyntaxKind.VariableDeclaration); 926N(SyntaxKind.VariableDeclaration); 968N(SyntaxKind.VariableDeclaration); 1013N(SyntaxKind.VariableDeclaration); 1063N(SyntaxKind.VariableDeclaration); 1117N(SyntaxKind.VariableDeclaration); 1168N(SyntaxKind.VariableDeclaration); 1222N(SyntaxKind.VariableDeclaration); 1348N(SyntaxKind.VariableDeclaration); 1392N(SyntaxKind.VariableDeclaration); 1440N(SyntaxKind.VariableDeclaration); 1498N(SyntaxKind.VariableDeclaration); 1562N(SyntaxKind.VariableDeclaration); 1618N(SyntaxKind.VariableDeclaration); 1665N(SyntaxKind.VariableDeclaration); 2161N(SyntaxKind.VariableDeclaration); 2376N(SyntaxKind.VariableDeclaration); 2435N(SyntaxKind.VariableDeclaration); 2786N(SyntaxKind.VariableDeclaration); 2843N(SyntaxKind.VariableDeclaration); 2896N(SyntaxKind.VariableDeclaration); 2991N(SyntaxKind.VariableDeclaration); 3077N(SyntaxKind.VariableDeclaration); 3137N(SyntaxKind.VariableDeclaration); 3181N(SyntaxKind.VariableDeclaration); 3232N(SyntaxKind.VariableDeclaration); 3274N(SyntaxKind.VariableDeclaration); 3313N(SyntaxKind.VariableDeclaration); 3379N(SyntaxKind.VariableDeclaration); 3452N(SyntaxKind.VariableDeclaration); 3532N(SyntaxKind.VariableDeclaration); 3604N(SyntaxKind.VariableDeclaration); 3662N(SyntaxKind.VariableDeclaration); 3706N(SyntaxKind.VariableDeclaration); 3763N(SyntaxKind.VariableDeclaration); 3823N(SyntaxKind.VariableDeclaration); 3904N(SyntaxKind.VariableDeclaration); 3992N(SyntaxKind.VariableDeclaration); 4020N(SyntaxKind.VariableDeclaration); 4076N(SyntaxKind.VariableDeclaration);
Parsing\LambdaAttributeParsingTests.cs (7)
3808N(SyntaxKind.VariableDeclaration); 3939N(SyntaxKind.VariableDeclaration); 4052N(SyntaxKind.VariableDeclaration); 4169N(SyntaxKind.VariableDeclaration); 4206N(SyntaxKind.VariableDeclaration); 4318N(SyntaxKind.VariableDeclaration); 4452N(SyntaxKind.VariableDeclaration);
Parsing\LambdaParameterParsingTests.cs (47)
75N(SyntaxKind.VariableDeclaration); 186N(SyntaxKind.VariableDeclaration); 305N(SyntaxKind.VariableDeclaration); 355N(SyntaxKind.VariableDeclaration); 431N(SyntaxKind.VariableDeclaration); 481N(SyntaxKind.VariableDeclaration); 560N(SyntaxKind.VariableDeclaration); 610N(SyntaxKind.VariableDeclaration); 780N(SyntaxKind.VariableDeclaration); 836N(SyntaxKind.VariableDeclaration); 913N(SyntaxKind.VariableDeclaration); 974N(SyntaxKind.VariableDeclaration); 1048N(SyntaxKind.VariableDeclaration); 1113N(SyntaxKind.VariableDeclaration); 1188N(SyntaxKind.VariableDeclaration); 1254N(SyntaxKind.VariableDeclaration); 1310N(SyntaxKind.VariableDeclaration); 1371N(SyntaxKind.VariableDeclaration); 1435N(SyntaxKind.VariableDeclaration); 1499N(SyntaxKind.VariableDeclaration); 1562N(SyntaxKind.VariableDeclaration); 1612N(SyntaxKind.VariableDeclaration); 1663N(SyntaxKind.VariableDeclaration); 1731N(SyntaxKind.VariableDeclaration); 1799N(SyntaxKind.VariableDeclaration); 1855N(SyntaxKind.VariableDeclaration); 1923N(SyntaxKind.VariableDeclaration); 1981N(SyntaxKind.VariableDeclaration); 2055N(SyntaxKind.VariableDeclaration); 2149N(SyntaxKind.VariableDeclaration); 2213N(SyntaxKind.VariableDeclaration); 2273N(SyntaxKind.VariableDeclaration); 2303N(SyntaxKind.VariableDeclaration); 2418N(SyntaxKind.VariableDeclaration); 2489N(SyntaxKind.VariableDeclaration); 2559N(SyntaxKind.VariableDeclaration); 4332N(SyntaxKind.VariableDeclaration); 4396N(SyntaxKind.VariableDeclaration); 4465N(SyntaxKind.VariableDeclaration); 4551N(SyntaxKind.VariableDeclaration); 4610N(SyntaxKind.VariableDeclaration); 4759N(SyntaxKind.VariableDeclaration); 4815N(SyntaxKind.VariableDeclaration); 4876N(SyntaxKind.VariableDeclaration); 4954N(SyntaxKind.VariableDeclaration); 5013N(SyntaxKind.VariableDeclaration); 5485N(SyntaxKind.VariableDeclaration);
Parsing\LambdaReturnTypeParsingTests.cs (6)
2666N(SyntaxKind.VariableDeclaration); 2720N(SyntaxKind.VariableDeclaration); 2773N(SyntaxKind.VariableDeclaration); 2834N(SyntaxKind.VariableDeclaration); 5063N(SyntaxKind.VariableDeclaration); 5276N(SyntaxKind.VariableDeclaration);
Parsing\LocalFunctionParsingTests.cs (10)
596N(SyntaxKind.VariableDeclaration); 888N(SyntaxKind.VariableDeclaration); 954N(SyntaxKind.VariableDeclaration); 1034N(SyntaxKind.VariableDeclaration); 2604N(SyntaxKind.VariableDeclaration); 2694N(SyntaxKind.VariableDeclaration); 2928N(SyntaxKind.VariableDeclaration); 3009N(SyntaxKind.VariableDeclaration); 3055N(SyntaxKind.VariableDeclaration); 3116N(SyntaxKind.VariableDeclaration);
Parsing\MemberDeclarationParsingTests.cs (37)
206N(SyntaxKind.VariableDeclaration); 737N(SyntaxKind.VariableDeclaration); 756N(SyntaxKind.VariableDeclaration); 1375N(SyntaxKind.VariableDeclaration); 1398N(SyntaxKind.VariableDeclaration); 1443N(SyntaxKind.VariableDeclaration); 1777N(SyntaxKind.VariableDeclaration); 1901N(SyntaxKind.VariableDeclaration); 1916N(SyntaxKind.VariableDeclaration); 1943N(SyntaxKind.VariableDeclaration); 1962N(SyntaxKind.VariableDeclaration); 1981N(SyntaxKind.VariableDeclaration); 2017N(SyntaxKind.VariableDeclaration); 2113N(SyntaxKind.VariableDeclaration); 2141N(SyntaxKind.VariableDeclaration); 2161N(SyntaxKind.VariableDeclaration); 2180N(SyntaxKind.VariableDeclaration); 2216N(SyntaxKind.VariableDeclaration); 2275N(SyntaxKind.VariableDeclaration); 8650N(SyntaxKind.VariableDeclaration); 10905N(SyntaxKind.VariableDeclaration); 10990N(SyntaxKind.VariableDeclaration); 11080N(SyntaxKind.VariableDeclaration); 11164N(SyntaxKind.VariableDeclaration); 11254N(SyntaxKind.VariableDeclaration); 11741N(SyntaxKind.VariableDeclaration); 11762N(SyntaxKind.VariableDeclaration); 15987N(SyntaxKind.VariableDeclaration); 16084N(SyntaxKind.VariableDeclaration); 16523N(SyntaxKind.VariableDeclaration); 16635N(SyntaxKind.VariableDeclaration); 17435N(SyntaxKind.VariableDeclaration); 17497N(SyntaxKind.VariableDeclaration); 17571N(SyntaxKind.VariableDeclaration); 17652N(SyntaxKind.VariableDeclaration); 17714N(SyntaxKind.VariableDeclaration); 17788N(SyntaxKind.VariableDeclaration);
Parsing\NullableParsingTests.cs (3)
55N(SyntaxKind.VariableDeclaration); 1094N(SyntaxKind.VariableDeclaration); 1166N(SyntaxKind.VariableDeclaration);
Parsing\ParserRegressionTests.cs (5)
289N(SyntaxKind.VariableDeclaration); 382N(SyntaxKind.VariableDeclaration); 427N(SyntaxKind.VariableDeclaration); 516N(SyntaxKind.VariableDeclaration); 784N(SyntaxKind.VariableDeclaration);
Parsing\ParsingErrorRecoveryTests.cs (9)
5218N(SyntaxKind.VariableDeclaration); 5263N(SyntaxKind.VariableDeclaration); 5330N(SyntaxKind.VariableDeclaration); 5413N(SyntaxKind.VariableDeclaration); 5477N(SyntaxKind.VariableDeclaration); 5590N(SyntaxKind.VariableDeclaration); 5654N(SyntaxKind.VariableDeclaration); 5727N(SyntaxKind.VariableDeclaration); 5781N(SyntaxKind.VariableDeclaration);
Parsing\PatternParsingTests.cs (18)
186N(SyntaxKind.VariableDeclaration); 334N(SyntaxKind.VariableDeclaration); 451N(SyntaxKind.VariableDeclaration); 508N(SyntaxKind.VariableDeclaration); 2780N(SyntaxKind.VariableDeclaration); 4340N(SyntaxKind.VariableDeclaration); 4450N(SyntaxKind.VariableDeclaration); 4556N(SyntaxKind.VariableDeclaration); 4624N(SyntaxKind.VariableDeclaration); 4688N(SyntaxKind.VariableDeclaration); 4775N(SyntaxKind.VariableDeclaration); 4858N(SyntaxKind.VariableDeclaration); 4903N(SyntaxKind.VariableDeclaration); 5009N(SyntaxKind.VariableDeclaration); 5111N(SyntaxKind.VariableDeclaration); 5175N(SyntaxKind.VariableDeclaration); 5235N(SyntaxKind.VariableDeclaration); 5318N(SyntaxKind.VariableDeclaration);
Parsing\RecordParsing.cs (14)
47N(SyntaxKind.VariableDeclaration); 240N(SyntaxKind.VariableDeclaration); 286N(SyntaxKind.VariableDeclaration); 1294N(SyntaxKind.VariableDeclaration); 1327N(SyntaxKind.VariableDeclaration); 1399N(SyntaxKind.VariableDeclaration); 1720N(SyntaxKind.VariableDeclaration); 1759N(SyntaxKind.VariableDeclaration); 1935N(SyntaxKind.VariableDeclaration); 2774N(SyntaxKind.VariableDeclaration); 2969N(SyntaxKind.VariableDeclaration); 3895N(SyntaxKind.VariableDeclaration); 3961N(SyntaxKind.VariableDeclaration); 4013N(SyntaxKind.VariableDeclaration);
Parsing\RefFieldParsingTests.cs (12)
33N(SyntaxKind.VariableDeclaration); 70N(SyntaxKind.VariableDeclaration); 111N(SyntaxKind.VariableDeclaration); 147N(SyntaxKind.VariableDeclaration); 181N(SyntaxKind.VariableDeclaration); 239N(SyntaxKind.VariableDeclaration); 365N(SyntaxKind.VariableDeclaration); 414N(SyntaxKind.VariableDeclaration); 477N(SyntaxKind.VariableDeclaration); 509N(SyntaxKind.VariableDeclaration); 577N(SyntaxKind.VariableDeclaration); 617N(SyntaxKind.VariableDeclaration);
Parsing\ScriptParsingTests.cs (28)
197N(SyntaxKind.VariableDeclaration); 239N(SyntaxKind.VariableDeclaration); 255N(SyntaxKind.VariableDeclaration); 981N(SyntaxKind.VariableDeclaration); 1164N(SyntaxKind.VariableDeclaration); 1235N(SyntaxKind.VariableDeclaration); 1343N(SyntaxKind.VariableDeclaration); 1377N(SyntaxKind.VariableDeclaration); 2029N(SyntaxKind.VariableDeclaration); 2044N(SyntaxKind.VariableDeclaration); 2368N(SyntaxKind.VariableDeclaration); 2488N(SyntaxKind.VariableDeclaration); 2504N(SyntaxKind.VariableDeclaration); 2520N(SyntaxKind.VariableDeclaration); 2536N(SyntaxKind.VariableDeclaration); 2552N(SyntaxKind.VariableDeclaration); 2817N(SyntaxKind.VariableDeclaration); 2847N(SyntaxKind.VariableDeclaration); 2890N(SyntaxKind.VariableDeclaration); 2936N(SyntaxKind.VariableDeclaration); 2993N(SyntaxKind.VariableDeclaration); 3034N(SyntaxKind.VariableDeclaration); 8049N(SyntaxKind.VariableDeclaration); 8391N(SyntaxKind.VariableDeclaration); 8423N(SyntaxKind.VariableDeclaration); 8455N(SyntaxKind.VariableDeclaration); 8487N(SyntaxKind.VariableDeclaration); 8531N(SyntaxKind.VariableDeclaration);
Parsing\SeparatedSyntaxListParsingTests.cs (20)
70N(SyntaxKind.VariableDeclaration); 94N(SyntaxKind.VariableDeclaration); 118N(SyntaxKind.VariableDeclaration); 147N(SyntaxKind.VariableDeclaration); 176N(SyntaxKind.VariableDeclaration); 210N(SyntaxKind.VariableDeclaration); 239N(SyntaxKind.VariableDeclaration); 268N(SyntaxKind.VariableDeclaration); 452N(SyntaxKind.VariableDeclaration); 485N(SyntaxKind.VariableDeclaration); 518N(SyntaxKind.VariableDeclaration); 575N(SyntaxKind.VariableDeclaration); 808N(SyntaxKind.VariableDeclaration); 847N(SyntaxKind.VariableDeclaration); 886N(SyntaxKind.VariableDeclaration); 930N(SyntaxKind.VariableDeclaration); 974N(SyntaxKind.VariableDeclaration); 1023N(SyntaxKind.VariableDeclaration); 1067N(SyntaxKind.VariableDeclaration); 1111N(SyntaxKind.VariableDeclaration);
Parsing\SingleLineDeclarationParsingTests.cs (1)
839N(SyntaxKind.VariableDeclaration);
Parsing\StatementAttributeParsingTests.cs (14)
1642N(SyntaxKind.VariableDeclaration); 2022N(SyntaxKind.VariableDeclaration); 4222N(SyntaxKind.VariableDeclaration); 6415N(SyntaxKind.VariableDeclaration); 6494N(SyntaxKind.VariableDeclaration); 6581N(SyntaxKind.VariableDeclaration); 6686N(SyntaxKind.VariableDeclaration); 6826N(SyntaxKind.VariableDeclaration); 6912N(SyntaxKind.VariableDeclaration); 6995N(SyntaxKind.VariableDeclaration); 7089N(SyntaxKind.VariableDeclaration); 7196N(SyntaxKind.VariableDeclaration); 7298N(SyntaxKind.VariableDeclaration); 7407N(SyntaxKind.VariableDeclaration);
Parsing\StatementParsingTests.cs (24)
881Assert.Equal(SyntaxKind.VariableDeclaration, fs.Declaration.Kind()); 908Assert.Equal(SyntaxKind.VariableDeclaration, fs.Declaration.Kind()); 938Assert.Equal(SyntaxKind.VariableDeclaration, fs.Declaration.Kind()); 1672N(SyntaxKind.VariableDeclaration); 2425N(SyntaxKind.VariableDeclaration); 2531N(SyntaxKind.VariableDeclaration); 2562N(SyntaxKind.VariableDeclaration); 2593N(SyntaxKind.VariableDeclaration); 2656N(SyntaxKind.VariableDeclaration); 2723N(SyntaxKind.VariableDeclaration); 2877N(SyntaxKind.VariableDeclaration); 2960N(SyntaxKind.VariableDeclaration); 3043N(SyntaxKind.VariableDeclaration); 3115N(SyntaxKind.VariableDeclaration); 3146N(SyntaxKind.VariableDeclaration); 3184N(SyntaxKind.VariableDeclaration); 3223N(SyntaxKind.VariableDeclaration); 3261N(SyntaxKind.VariableDeclaration); 3299N(SyntaxKind.VariableDeclaration); 4185N(SyntaxKind.VariableDeclaration); 4223N(SyntaxKind.VariableDeclaration); 4475N(SyntaxKind.VariableDeclaration); 5849N(SyntaxKind.VariableDeclaration); 5943N(SyntaxKind.VariableDeclaration);
Parsing\SuppressNullableWarningExpressionParsingTests.cs (1)
44N(SyntaxKind.VariableDeclaration);
Parsing\SwitchExpressionParsingTests.cs (3)
326N(SyntaxKind.VariableDeclaration); 2577N(SyntaxKind.VariableDeclaration); 2670N(SyntaxKind.VariableDeclaration);
Parsing\TopLevelStatementsParsingTests.cs (32)
143N(SyntaxKind.VariableDeclaration); 168N(SyntaxKind.VariableDeclaration); 377N(SyntaxKind.VariableDeclaration); 420N(SyntaxKind.VariableDeclaration); 831N(SyntaxKind.VariableDeclaration); 946N(SyntaxKind.VariableDeclaration); 1115N(SyntaxKind.VariableDeclaration); 1170N(SyntaxKind.VariableDeclaration); 1502N(SyntaxKind.VariableDeclaration); 1728N(SyntaxKind.VariableDeclaration); 1835N(SyntaxKind.VariableDeclaration); 1890N(SyntaxKind.VariableDeclaration); 1934M(SyntaxKind.VariableDeclaration); 1981M(SyntaxKind.VariableDeclaration); 2021N(SyntaxKind.VariableDeclaration); 2069M(SyntaxKind.VariableDeclaration); 2253N(SyntaxKind.VariableDeclaration); 2271N(SyntaxKind.VariableDeclaration); 2328N(SyntaxKind.VariableDeclaration); 2388N(SyntaxKind.VariableDeclaration); 2502M(SyntaxKind.VariableDeclaration); 2732N(SyntaxKind.VariableDeclaration); 2800N(SyntaxKind.VariableDeclaration); 2842N(SyntaxKind.VariableDeclaration); 3080N(SyntaxKind.VariableDeclaration); 3232N(SyntaxKind.VariableDeclaration); 3394N(SyntaxKind.VariableDeclaration); 3413N(SyntaxKind.VariableDeclaration); 3463N(SyntaxKind.VariableDeclaration); 3482N(SyntaxKind.VariableDeclaration); 3525N(SyntaxKind.VariableDeclaration); 3583M(SyntaxKind.VariableDeclaration);
Parsing\TypeArgumentListParsingTests.cs (31)
61N(SyntaxKind.VariableDeclaration); 177N(SyntaxKind.VariableDeclaration); 305N(SyntaxKind.VariableDeclaration); 438N(SyntaxKind.VariableDeclaration); 586N(SyntaxKind.VariableDeclaration); 733N(SyntaxKind.VariableDeclaration); 765N(SyntaxKind.VariableDeclaration); 801N(SyntaxKind.VariableDeclaration); 1046N(SyntaxKind.VariableDeclaration); 1185N(SyntaxKind.VariableDeclaration); 1327N(SyntaxKind.VariableDeclaration); 1460N(SyntaxKind.VariableDeclaration); 1580N(SyntaxKind.VariableDeclaration); 1684N(SyntaxKind.VariableDeclaration); 1785N(SyntaxKind.VariableDeclaration); 1907N(SyntaxKind.VariableDeclaration); 2040N(SyntaxKind.VariableDeclaration); 2174N(SyntaxKind.VariableDeclaration); 2305N(SyntaxKind.VariableDeclaration); 2406N(SyntaxKind.VariableDeclaration); 2515N(SyntaxKind.VariableDeclaration); 2617N(SyntaxKind.VariableDeclaration); 2735N(SyntaxKind.VariableDeclaration); 2871N(SyntaxKind.VariableDeclaration); 2972N(SyntaxKind.VariableDeclaration); 3073N(SyntaxKind.VariableDeclaration); 3174N(SyntaxKind.VariableDeclaration); 3275N(SyntaxKind.VariableDeclaration); 3388N(SyntaxKind.VariableDeclaration); 3507N(SyntaxKind.VariableDeclaration); 3623N(SyntaxKind.VariableDeclaration);
Parsing\UsingDirectiveParsingTests.cs (17)
80N(SyntaxKind.VariableDeclaration); 119N(SyntaxKind.VariableDeclaration); 175N(SyntaxKind.VariableDeclaration); 210N(SyntaxKind.VariableDeclaration); 262N(SyntaxKind.VariableDeclaration); 281N(SyntaxKind.VariableDeclaration); 413N(SyntaxKind.VariableDeclaration); 473N(SyntaxKind.VariableDeclaration); 512N(SyntaxKind.VariableDeclaration); 1652N(SyntaxKind.VariableDeclaration); 1758N(SyntaxKind.VariableDeclaration); 3440N(SyntaxKind.VariableDeclaration); 3497N(SyntaxKind.VariableDeclaration); 3732N(SyntaxKind.VariableDeclaration); 3747N(SyntaxKind.VariableDeclaration); 3894N(SyntaxKind.VariableDeclaration); 3909N(SyntaxKind.VariableDeclaration);
Parsing\ValueTupleTests.cs (3)
240N(SyntaxKind.VariableDeclaration); 344N(SyntaxKind.VariableDeclaration); 631N(SyntaxKind.VariableDeclaration);
Microsoft.CodeAnalysis.CSharp.Workspaces (21)
CodeGeneration\CSharpSyntaxGenerator.cs (11)
739case SyntaxKind.VariableDeclaration: 1284case SyntaxKind.VariableDeclaration: 1328SyntaxKind.VariableDeclaration => ((VariableDeclarationSyntax)declaration).Variables.Count, 1961case SyntaxKind.VariableDeclaration: 1993SyntaxKind.VariableDeclaration => ((VariableDeclarationSyntax)declaration).WithType((TypeSyntax)type), 2004case SyntaxKind.VariableDeclaration: 2069case SyntaxKind.VariableDeclaration: 2398case SyntaxKind.VariableDeclaration: 2438case SyntaxKind.VariableDeclaration: 2803case SyntaxKind.VariableDeclaration: 2944SyntaxKind.VariableDeclaration => ((VariableDeclarationSyntax)declaration).Variables,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SemanticModelExtensions.cs (2)
236type.Parent.Parent.Parent.IsParentKind(SyntaxKind.VariableDeclaration, out variableDeclaration) && 297if (type.IsParentKind(SyntaxKind.VariableDeclaration, out variableDeclaration) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
48case SyntaxKind.VariableDeclaration: 239case SyntaxKind.VariableDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.cs (2)
62if (typeName?.FirstAncestorOrSelf<SyntaxNode>(a => a.Kind() is SyntaxKind.DeclarationExpression or SyntaxKind.VariableDeclaration or SyntaxKind.ForEachStatement) is not { } declaration) 84Debug.Assert(node.Kind() is SyntaxKind.VariableDeclaration or SyntaxKind.ForEachStatement or SyntaxKind.DeclarationExpression);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
886case SyntaxKind.VariableDeclaration:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
1800if (parent.IsParentKind(SyntaxKind.VariableDeclaration) && 2078equalsValue.Parent.IsParentKind(SyntaxKind.VariableDeclaration)) 2347if (type.IsParentKind(SyntaxKind.VariableDeclaration) &&
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
2883SyntaxKind.VariableDeclaration);
Microsoft.ML.InternalCodeAnalyzer (1)
SingleVariableDeclarationAnalyzer.cs (1)
37context.RegisterSyntaxNodeAction(Analyze, SyntaxKind.VariableDeclaration);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
256case SyntaxKind.VariableDeclaration: