745 references to VariableDeclaration
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_Expressions.cs (1)
4592if (!variableDeclaration.IsKind(SyntaxKind.VariableDeclaration))
Binder\Binder_Statements.cs (1)
788declarationNode.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)
5176if (parent != null && (parent.Kind() == SyntaxKind.VariableDeclaration || parent.Kind() == SyntaxKind.LocalDeclarationStatement)) 5196&& (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 (10)
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)
464SyntaxKind.VariableDeclaration or
EditAndContinue\BreakpointSpans.cs (1)
266case 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); 1440N(SyntaxKind.VariableDeclaration); 1455N(SyntaxKind.VariableDeclaration); 1474N(SyntaxKind.VariableDeclaration); 1494N(SyntaxKind.VariableDeclaration); 1570N(SyntaxKind.VariableDeclaration); 1641N(SyntaxKind.VariableDeclaration); 1660N(SyntaxKind.VariableDeclaration); 1683N(SyntaxKind.VariableDeclaration); 1770N(SyntaxKind.VariableDeclaration); 1789N(SyntaxKind.VariableDeclaration); 1804N(SyntaxKind.VariableDeclaration); 1824N(SyntaxKind.VariableDeclaration); 1864N(SyntaxKind.VariableDeclaration); 1886N(SyntaxKind.VariableDeclaration); 1944N(SyntaxKind.VariableDeclaration); 1979N(SyntaxKind.VariableDeclaration); 2031N(SyntaxKind.VariableDeclaration); 2054N(SyntaxKind.VariableDeclaration); 2099N(SyntaxKind.VariableDeclaration); 2117N(SyntaxKind.VariableDeclaration); 2206N(SyntaxKind.VariableDeclaration); 2232N(SyntaxKind.VariableDeclaration); 2262N(SyntaxKind.VariableDeclaration); 2312N(SyntaxKind.VariableDeclaration); 2338N(SyntaxKind.VariableDeclaration); 2368N(SyntaxKind.VariableDeclaration); 2418N(SyntaxKind.VariableDeclaration); 2440N(SyntaxKind.VariableDeclaration); 2466N(SyntaxKind.VariableDeclaration); 2510N(SyntaxKind.VariableDeclaration); 2565N(SyntaxKind.VariableDeclaration); 2587N(SyntaxKind.VariableDeclaration); 2628N(SyntaxKind.VariableDeclaration); 2650N(SyntaxKind.VariableDeclaration); 2697N(SyntaxKind.VariableDeclaration); 2736N(SyntaxKind.VariableDeclaration); 2788N(SyntaxKind.VariableDeclaration); 2811N(SyntaxKind.VariableDeclaration); 2856N(SyntaxKind.VariableDeclaration); 2874N(SyntaxKind.VariableDeclaration); 2929N(SyntaxKind.VariableDeclaration); 2969N(SyntaxKind.VariableDeclaration); 2987N(SyntaxKind.VariableDeclaration); 3067N(SyntaxKind.VariableDeclaration); 3116N(SyntaxKind.VariableDeclaration); 3138N(SyntaxKind.VariableDeclaration); 3205N(SyntaxKind.VariableDeclaration); 3221N(SyntaxKind.VariableDeclaration); 3308N(SyntaxKind.VariableDeclaration); 3344N(SyntaxKind.VariableDeclaration); 3669N(SyntaxKind.VariableDeclaration); 3745N(SyntaxKind.VariableDeclaration); 3900N(SyntaxKind.VariableDeclaration); 3984N(SyntaxKind.VariableDeclaration); 4124N(SyntaxKind.VariableDeclaration); 4268N(SyntaxKind.VariableDeclaration); 4417N(SyntaxKind.VariableDeclaration); 5219N(SyntaxKind.VariableDeclaration); 5292N(SyntaxKind.VariableDeclaration); 6271N(SyntaxKind.VariableDeclaration); 6358N(SyntaxKind.VariableDeclaration); 6769N(SyntaxKind.VariableDeclaration); 8364N(SyntaxKind.VariableDeclaration); 8401N(SyntaxKind.VariableDeclaration); 8449N(SyntaxKind.VariableDeclaration); 8494N(SyntaxKind.VariableDeclaration); 8535N(SyntaxKind.VariableDeclaration); 8584N(SyntaxKind.VariableDeclaration); 8633N(SyntaxKind.VariableDeclaration); 8674N(SyntaxKind.VariableDeclaration); 8765N(SyntaxKind.VariableDeclaration); 8867N(SyntaxKind.VariableDeclaration); 8984N(SyntaxKind.VariableDeclaration); 9025N(SyntaxKind.VariableDeclaration); 9070N(SyntaxKind.VariableDeclaration); 9116N(SyntaxKind.VariableDeclaration); 9161N(SyntaxKind.VariableDeclaration); 9202N(SyntaxKind.VariableDeclaration); 9251N(SyntaxKind.VariableDeclaration); 9292N(SyntaxKind.VariableDeclaration); 9338N(SyntaxKind.VariableDeclaration); 9384N(SyntaxKind.VariableDeclaration); 9421N(SyntaxKind.VariableDeclaration); 9466N(SyntaxKind.VariableDeclaration); 9507N(SyntaxKind.VariableDeclaration); 9543N(SyntaxKind.VariableDeclaration); 9595N(SyntaxKind.VariableDeclaration); 9882N(SyntaxKind.VariableDeclaration); 9956N(SyntaxKind.VariableDeclaration); 10268N(SyntaxKind.VariableDeclaration); 11135N(SyntaxKind.VariableDeclaration); 11239N(SyntaxKind.VariableDeclaration); 11637N(SyntaxKind.VariableDeclaration); 11693N(SyntaxKind.VariableDeclaration); 11749N(SyntaxKind.VariableDeclaration); 11768N(SyntaxKind.VariableDeclaration); 11808N(SyntaxKind.VariableDeclaration); 11852N(SyntaxKind.VariableDeclaration); 11910N(SyntaxKind.VariableDeclaration); 11930N(SyntaxKind.VariableDeclaration); 11954N(SyntaxKind.VariableDeclaration); 11995N(SyntaxKind.VariableDeclaration); 12040N(SyntaxKind.VariableDeclaration); 12091N(SyntaxKind.VariableDeclaration); 12136N(SyntaxKind.VariableDeclaration); 12182N(SyntaxKind.VariableDeclaration); 12224N(SyntaxKind.VariableDeclaration); 12290N(SyntaxKind.VariableDeclaration); 12339N(SyntaxKind.VariableDeclaration); 12396N(SyntaxKind.VariableDeclaration); 12470N(SyntaxKind.VariableDeclaration); 12537N(SyntaxKind.VariableDeclaration); 12576N(SyntaxKind.VariableDeclaration); 12635N(SyntaxKind.VariableDeclaration); 12674N(SyntaxKind.VariableDeclaration); 12737N(SyntaxKind.VariableDeclaration); 12780N(SyntaxKind.VariableDeclaration); 12844N(SyntaxKind.VariableDeclaration); 12888N(SyntaxKind.VariableDeclaration); 12934N(SyntaxKind.VariableDeclaration); 12984N(SyntaxKind.VariableDeclaration); 13035N(SyntaxKind.VariableDeclaration); 13085N(SyntaxKind.VariableDeclaration); 13131N(SyntaxKind.VariableDeclaration); 13185N(SyntaxKind.VariableDeclaration); 13231N(SyntaxKind.VariableDeclaration); 13281N(SyntaxKind.VariableDeclaration); 13332N(SyntaxKind.VariableDeclaration); 13374N(SyntaxKind.VariableDeclaration); 13426N(SyntaxKind.VariableDeclaration); 13440N(SyntaxKind.VariableDeclaration); 13489N(SyntaxKind.VariableDeclaration); 13551N(SyntaxKind.VariableDeclaration); 13614N(SyntaxKind.VariableDeclaration); 13629N(SyntaxKind.VariableDeclaration); 13684N(SyntaxKind.VariableDeclaration); 13699N(SyntaxKind.VariableDeclaration); 13770N(SyntaxKind.VariableDeclaration); 13883N(SyntaxKind.VariableDeclaration); 13989N(SyntaxKind.VariableDeclaration); 14053N(SyntaxKind.VariableDeclaration); 14109N(SyntaxKind.VariableDeclaration); 14182N(SyntaxKind.VariableDeclaration); 14238N(SyntaxKind.VariableDeclaration); 14302N(SyntaxKind.VariableDeclaration); 14325N(SyntaxKind.VariableDeclaration); 14385N(SyntaxKind.VariableDeclaration); 14453N(SyntaxKind.VariableDeclaration); 14521N(SyntaxKind.VariableDeclaration); 14569N(SyntaxKind.VariableDeclaration); 14616N(SyntaxKind.VariableDeclaration); 14663N(SyntaxKind.VariableDeclaration); 14817N(SyntaxKind.VariableDeclaration); 14903N(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)
3815N(SyntaxKind.VariableDeclaration); 3946N(SyntaxKind.VariableDeclaration); 4059N(SyntaxKind.VariableDeclaration); 4176N(SyntaxKind.VariableDeclaration); 4213N(SyntaxKind.VariableDeclaration); 4325N(SyntaxKind.VariableDeclaration); 4459N(SyntaxKind.VariableDeclaration);
Parsing\LambdaParameterParsingTests.cs (47)
80N(SyntaxKind.VariableDeclaration); 191N(SyntaxKind.VariableDeclaration); 310N(SyntaxKind.VariableDeclaration); 360N(SyntaxKind.VariableDeclaration); 436N(SyntaxKind.VariableDeclaration); 486N(SyntaxKind.VariableDeclaration); 565N(SyntaxKind.VariableDeclaration); 615N(SyntaxKind.VariableDeclaration); 785N(SyntaxKind.VariableDeclaration); 841N(SyntaxKind.VariableDeclaration); 918N(SyntaxKind.VariableDeclaration); 979N(SyntaxKind.VariableDeclaration); 1053N(SyntaxKind.VariableDeclaration); 1118N(SyntaxKind.VariableDeclaration); 1193N(SyntaxKind.VariableDeclaration); 1259N(SyntaxKind.VariableDeclaration); 1315N(SyntaxKind.VariableDeclaration); 1376N(SyntaxKind.VariableDeclaration); 1440N(SyntaxKind.VariableDeclaration); 1504N(SyntaxKind.VariableDeclaration); 1567N(SyntaxKind.VariableDeclaration); 1617N(SyntaxKind.VariableDeclaration); 1668N(SyntaxKind.VariableDeclaration); 1736N(SyntaxKind.VariableDeclaration); 1804N(SyntaxKind.VariableDeclaration); 1860N(SyntaxKind.VariableDeclaration); 1928N(SyntaxKind.VariableDeclaration); 1986N(SyntaxKind.VariableDeclaration); 2060N(SyntaxKind.VariableDeclaration); 2154N(SyntaxKind.VariableDeclaration); 2218N(SyntaxKind.VariableDeclaration); 2278N(SyntaxKind.VariableDeclaration); 2308N(SyntaxKind.VariableDeclaration); 2423N(SyntaxKind.VariableDeclaration); 2494N(SyntaxKind.VariableDeclaration); 2564N(SyntaxKind.VariableDeclaration); 4337N(SyntaxKind.VariableDeclaration); 4401N(SyntaxKind.VariableDeclaration); 4470N(SyntaxKind.VariableDeclaration); 4556N(SyntaxKind.VariableDeclaration); 4615N(SyntaxKind.VariableDeclaration); 4764N(SyntaxKind.VariableDeclaration); 4820N(SyntaxKind.VariableDeclaration); 4881N(SyntaxKind.VariableDeclaration); 4959N(SyntaxKind.VariableDeclaration); 5018N(SyntaxKind.VariableDeclaration); 5490N(SyntaxKind.VariableDeclaration);
Parsing\LambdaReturnTypeParsingTests.cs (6)
2666N(SyntaxKind.VariableDeclaration); 2720N(SyntaxKind.VariableDeclaration); 2773N(SyntaxKind.VariableDeclaration); 2834N(SyntaxKind.VariableDeclaration); 5084N(SyntaxKind.VariableDeclaration); 5297N(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: