598 references to LocalDeclarationStatement
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder_Expressions.cs (1)
4598variableDeclaration.Parent.IsKind(SyntaxKind.LocalDeclarationStatement) ||
Binder\Binder_Statements.cs (3)
66case SyntaxKind.LocalDeclarationStatement: 325case SyntaxKind.LocalDeclarationStatement: 828if (declarationNode.Parent.Kind() == SyntaxKind.LocalDeclarationStatement &&
Binder\LocalBinderFactory.cs (1)
1041case SyntaxKind.LocalDeclarationStatement:
Binder\LocalScopeBinder.cs (1)
186case SyntaxKind.LocalDeclarationStatement:
Binder\UsingStatementBinder.cs (1)
92bool isUsingDeclaration = syntax.Kind() == SyntaxKind.LocalDeclarationStatement;
Compilation\MemberSemanticModel.cs (1)
2238if (grandparent != null && grandparent.Kind() == SyntaxKind.LocalDeclarationStatement &&
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
105case SyntaxKind.LocalDeclarationStatement:
Lowering\Instrumentation\Instrumenter.cs (1)
215(original.Syntax.Kind() == SyntaxKind.LocalDeclarationStatement &&
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.cs (1)
77(originalOpt.Syntax.Kind() == SyntaxKind.LocalDeclarationStatement &&
Operations\CSharpOperationFactory.cs (2)
2108case SyntaxKind.LocalDeclarationStatement: 2156SyntaxNode declarationSyntax = declarationGroupSyntax.IsKind(SyntaxKind.LocalDeclarationStatement) ?
Parser\LanguageParser.cs (3)
2871case SyntaxKind.LocalDeclarationStatement: 5158if (parent != null && (parent.Kind() == SyntaxKind.VariableDeclaration || parent.Kind() == SyntaxKind.LocalDeclarationStatement)) 5179&& oldKind != SyntaxKind.LocalDeclarationStatement;
Symbols\Source\SourceLocalSymbol.cs (1)
174new[] { SyntaxKind.LocalDeclarationStatement, SyntaxKind.ForStatement, SyntaxKind.UsingStatement, SyntaxKind.FixedStatement }.
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5201case SyntaxKind.LocalDeclarationStatement:
Syntax\LookupPosition.cs (2)
325case SyntaxKind.LocalDeclarationStatement: 386case SyntaxKind.LocalDeclarationStatement:
Microsoft.CodeAnalysis.CSharp.CodeStyle (12)
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (2)
326if (containingStatement.IsKind(SyntaxKind.LocalDeclarationStatement, out localDeclaration) && 363if (previousStatement.IsKind(SyntaxKind.LocalDeclarationStatement, out localDeclaration) &&
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
39Debug.Assert(localStatement.IsKind(SyntaxKind.LocalDeclarationStatement));
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
187if (!firstStatement.IsKind(SyntaxKind.LocalDeclarationStatement, out localDeclarationStatement))
src\Analyzers\CSharp\Analyzers\UseTupleSwap\CSharpUseTupleSwapDiagnosticAnalyzer.cs (1)
58SyntaxKind.LocalDeclarationStatement);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
580or SyntaxKind.LocalDeclarationStatement
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
227case SyntaxKind.LocalDeclarationStatement: 329=> node?.Parent.IsKind(SyntaxKind.LocalDeclarationStatement) ?? false;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
147public int LocalDeclarationStatement => (int)SyntaxKind.LocalDeclarationStatement;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.cs (1)
107SyntaxKind.LocalDeclarationStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseExplicitTypeHelper.cs (1)
86typeName.Parent.Parent is (kind: SyntaxKind.LocalDeclarationStatement or SyntaxKind.ForStatement or SyntaxKind.UsingStatement))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
108SyntaxKind.LocalDeclarationStatement or
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
1786token.Parent.IsKind(SyntaxKind.LocalDeclarationStatement)) 1798if (parent is (kind: SyntaxKind.RefType or SyntaxKind.RefExpression or SyntaxKind.LocalDeclarationStatement)) 1802SyntaxKind.LocalDeclarationStatement or
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
363case SyntaxKind.LocalDeclarationStatement:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (5)
Diagnostics\GetDiagnosticsTests.cs (2)
1636AssertEx.All(analyzer.AnalyzedSyntaxNodes, node => node.IsKind(SyntaxKind.LocalDeclarationStatement)); 1640AssertEx.All(analyzer.AnalyzedSyntaxNodesInsideCodeBlock, node => node.IsKind(SyntaxKind.LocalDeclarationStatement));
Semantics\OutVarTests.cs (2)
1191Assert.Equal(SyntaxKind.LocalDeclarationStatement, parent1.Kind()); 32756var inFieldDeclaratorArgumentlist = declarator != null && declarator.Parent.Parent.Kind() != SyntaxKind.LocalDeclarationStatement &&
Semantics\PatternMatchingTestBase.cs (1)
292var inFieldDeclaratorArgumentlist = declarator != null && declarator.Parent.Parent.Kind() != SyntaxKind.LocalDeclarationStatement &&
Microsoft.CodeAnalysis.CSharp.Features (14)
CodeLens\CSharpCodeLensDisplayInfoService.cs (1)
40case SyntaxKind.LocalDeclarationStatement:
ConvertLinq\ConvertForEachToLinqQuery\AbstractToMethodConverter.cs (2)
58case SyntaxKind.LocalDeclarationStatement: 148case SyntaxKind.LocalDeclarationStatement:
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (1)
127case SyntaxKind.LocalDeclarationStatement:
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
465SyntaxKind.LocalDeclarationStatement &&
Debugging\CSharpProximityExpressionsService.Worker.cs (1)
192case SyntaxKind.LocalDeclarationStatement:
EditAndContinue\BreakpointSpans.cs (2)
589case SyntaxKind.LocalDeclarationStatement: 776SyntaxKind.LocalDeclarationStatement or SyntaxKind.EventFieldDeclaration or SyntaxKind.FieldDeclaration => null,
EditAndContinue\SyntaxComparer.cs (1)
332case SyntaxKind.LocalDeclarationStatement:
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (2)
326if (containingStatement.IsKind(SyntaxKind.LocalDeclarationStatement, out localDeclaration) && 363if (previousStatement.IsKind(SyntaxKind.LocalDeclarationStatement, out localDeclaration) &&
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
39Debug.Assert(localStatement.IsKind(SyntaxKind.LocalDeclarationStatement));
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
187if (!firstStatement.IsKind(SyntaxKind.LocalDeclarationStatement, out localDeclarationStatement))
src\Analyzers\CSharp\Analyzers\UseTupleSwap\CSharpUseTupleSwapDiagnosticAnalyzer.cs (1)
58SyntaxKind.LocalDeclarationStatement);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
SymbolDisplay\SymbolDisplayTests.cs (2)
8399var declaration = (LocalDeclarationStatementSyntax)semanticModel.SyntaxTree.GetRoot().DescendantNodes().Single(n => n.Kind() == SyntaxKind.LocalDeclarationStatement); 8450var declaration = (LocalDeclarationStatementSyntax)semanticModel.SyntaxTree.GetRoot().DescendantNodes().Single(n => n.Kind() == SyntaxKind.LocalDeclarationStatement);
Symbols\TypeTests.cs (1)
1763var node1 = (LocalDeclarationStatementSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.LocalDeclarationStatement, 3);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (508)
IncrementalParsing\IncrementalParsingTests.cs (1)
446SyntaxKind.LocalDeclarationStatement,
Parsing\AnonymousFunctionParsingTests.cs (27)
69N(SyntaxKind.LocalDeclarationStatement); 170N(SyntaxKind.LocalDeclarationStatement); 267N(SyntaxKind.LocalDeclarationStatement); 368N(SyntaxKind.LocalDeclarationStatement); 469N(SyntaxKind.LocalDeclarationStatement); 573N(SyntaxKind.LocalDeclarationStatement); 704N(SyntaxKind.LocalDeclarationStatement); 822N(SyntaxKind.LocalDeclarationStatement); 1927N(SyntaxKind.LocalDeclarationStatement); 2056N(SyntaxKind.LocalDeclarationStatement); 2134N(SyntaxKind.LocalDeclarationStatement); 2220N(SyntaxKind.LocalDeclarationStatement); 2513N(SyntaxKind.LocalDeclarationStatement); 2661N(SyntaxKind.LocalDeclarationStatement); 2809N(SyntaxKind.LocalDeclarationStatement); 2935N(SyntaxKind.LocalDeclarationStatement); 3071N(SyntaxKind.LocalDeclarationStatement); 3194N(SyntaxKind.LocalDeclarationStatement); 3334N(SyntaxKind.LocalDeclarationStatement); 3487N(SyntaxKind.LocalDeclarationStatement); 3640N(SyntaxKind.LocalDeclarationStatement); 3789N(SyntaxKind.LocalDeclarationStatement); 3934N(SyntaxKind.LocalDeclarationStatement); 4066N(SyntaxKind.LocalDeclarationStatement); 4215N(SyntaxKind.LocalDeclarationStatement); 4377N(SyntaxKind.LocalDeclarationStatement); 4539N(SyntaxKind.LocalDeclarationStatement);
Parsing\AsyncStreamsParsingTests.cs (1)
228N(SyntaxKind.LocalDeclarationStatement);
Parsing\AwaitParsingTests.cs (13)
295N(SyntaxKind.LocalDeclarationStatement); 365N(SyntaxKind.LocalDeclarationStatement); 971N(SyntaxKind.LocalDeclarationStatement); 1031N(SyntaxKind.LocalDeclarationStatement); 1077N(SyntaxKind.LocalDeclarationStatement); 1367N(SyntaxKind.LocalDeclarationStatement); 1447N(SyntaxKind.LocalDeclarationStatement); 1526N(SyntaxKind.LocalDeclarationStatement); 1617N(SyntaxKind.LocalDeclarationStatement); 2413N(SyntaxKind.LocalDeclarationStatement); 2498N(SyntaxKind.LocalDeclarationStatement); 2545N(SyntaxKind.LocalDeclarationStatement); 2657N(SyntaxKind.LocalDeclarationStatement);
Parsing\CollectionExpressionParsingTests.cs (14)
288N(SyntaxKind.LocalDeclarationStatement); 553N(SyntaxKind.LocalDeclarationStatement); 3060N(SyntaxKind.LocalDeclarationStatement); 3153N(SyntaxKind.LocalDeclarationStatement); 5640N(SyntaxKind.LocalDeclarationStatement); 5701N(SyntaxKind.LocalDeclarationStatement); 7085N(SyntaxKind.LocalDeclarationStatement); 18110N(SyntaxKind.LocalDeclarationStatement); 18194N(SyntaxKind.LocalDeclarationStatement); 18255N(SyntaxKind.LocalDeclarationStatement); 18310N(SyntaxKind.LocalDeclarationStatement); 18370N(SyntaxKind.LocalDeclarationStatement); 18434N(SyntaxKind.LocalDeclarationStatement); 18511N(SyntaxKind.LocalDeclarationStatement);
Parsing\DeclarationExpressionTests.cs (2)
278N(SyntaxKind.LocalDeclarationStatement); 341N(SyntaxKind.LocalDeclarationStatement);
Parsing\DeclarationParsingTests.cs (2)
8306N(SyntaxKind.LocalDeclarationStatement); 8618N(SyntaxKind.LocalDeclarationStatement);
Parsing\DeclarationScopeParsingTests.cs (90)
1438N(SyntaxKind.LocalDeclarationStatement); 1453N(SyntaxKind.LocalDeclarationStatement); 1472N(SyntaxKind.LocalDeclarationStatement); 1492N(SyntaxKind.LocalDeclarationStatement); 1568N(SyntaxKind.LocalDeclarationStatement); 1639N(SyntaxKind.LocalDeclarationStatement); 1658N(SyntaxKind.LocalDeclarationStatement); 1681N(SyntaxKind.LocalDeclarationStatement); 1768N(SyntaxKind.LocalDeclarationStatement); 1787N(SyntaxKind.LocalDeclarationStatement); 1802N(SyntaxKind.LocalDeclarationStatement); 1822N(SyntaxKind.LocalDeclarationStatement); 1862N(SyntaxKind.LocalDeclarationStatement); 1884N(SyntaxKind.LocalDeclarationStatement); 1942N(SyntaxKind.LocalDeclarationStatement); 1977N(SyntaxKind.LocalDeclarationStatement); 2029N(SyntaxKind.LocalDeclarationStatement); 2052N(SyntaxKind.LocalDeclarationStatement); 2097N(SyntaxKind.LocalDeclarationStatement); 2115N(SyntaxKind.LocalDeclarationStatement); 2204N(SyntaxKind.LocalDeclarationStatement); 2230N(SyntaxKind.LocalDeclarationStatement); 2260N(SyntaxKind.LocalDeclarationStatement); 2310N(SyntaxKind.LocalDeclarationStatement); 2336N(SyntaxKind.LocalDeclarationStatement); 2366N(SyntaxKind.LocalDeclarationStatement); 2416N(SyntaxKind.LocalDeclarationStatement); 2438N(SyntaxKind.LocalDeclarationStatement); 2464N(SyntaxKind.LocalDeclarationStatement); 2508N(SyntaxKind.LocalDeclarationStatement); 2563N(SyntaxKind.LocalDeclarationStatement); 2585N(SyntaxKind.LocalDeclarationStatement); 2626N(SyntaxKind.LocalDeclarationStatement); 2648N(SyntaxKind.LocalDeclarationStatement); 2695N(SyntaxKind.LocalDeclarationStatement); 2734N(SyntaxKind.LocalDeclarationStatement); 2786N(SyntaxKind.LocalDeclarationStatement); 2809N(SyntaxKind.LocalDeclarationStatement); 2854N(SyntaxKind.LocalDeclarationStatement); 2872N(SyntaxKind.LocalDeclarationStatement); 2926N(SyntaxKind.LocalDeclarationStatement); 2967N(SyntaxKind.LocalDeclarationStatement); 2985N(SyntaxKind.LocalDeclarationStatement); 3064N(SyntaxKind.LocalDeclarationStatement); 3114N(SyntaxKind.LocalDeclarationStatement); 3136N(SyntaxKind.LocalDeclarationStatement); 3203N(SyntaxKind.LocalDeclarationStatement); 3218N(SyntaxKind.LocalDeclarationStatement); 3306N(SyntaxKind.LocalDeclarationStatement); 3667N(SyntaxKind.LocalDeclarationStatement); 3743N(SyntaxKind.LocalDeclarationStatement); 3897N(SyntaxKind.LocalDeclarationStatement); 3981N(SyntaxKind.LocalDeclarationStatement); 4122N(SyntaxKind.LocalDeclarationStatement); 4266N(SyntaxKind.LocalDeclarationStatement); 4415N(SyntaxKind.LocalDeclarationStatement); 5217N(SyntaxKind.LocalDeclarationStatement); 5290N(SyntaxKind.LocalDeclarationStatement); 6268N(SyntaxKind.LocalDeclarationStatement); 6355N(SyntaxKind.LocalDeclarationStatement); 6766N(SyntaxKind.LocalDeclarationStatement); 9541N(SyntaxKind.LocalDeclarationStatement); 9593N(SyntaxKind.LocalDeclarationStatement); 9879N(SyntaxKind.LocalDeclarationStatement); 9953N(SyntaxKind.LocalDeclarationStatement); 10265N(SyntaxKind.LocalDeclarationStatement); 11133N(SyntaxKind.LocalDeclarationStatement); 11236N(SyntaxKind.LocalDeclarationStatement); 11635N(SyntaxKind.LocalDeclarationStatement); 11691N(SyntaxKind.LocalDeclarationStatement); 11746N(SyntaxKind.LocalDeclarationStatement); 11765N(SyntaxKind.LocalDeclarationStatement); 11805N(SyntaxKind.LocalDeclarationStatement); 11849N(SyntaxKind.LocalDeclarationStatement); 11906N(SyntaxKind.LocalDeclarationStatement); 11926N(SyntaxKind.LocalDeclarationStatement); 11950N(SyntaxKind.LocalDeclarationStatement); 11991N(SyntaxKind.LocalDeclarationStatement); 12036N(SyntaxKind.LocalDeclarationStatement); 12088N(SyntaxKind.LocalDeclarationStatement); 12132N(SyntaxKind.LocalDeclarationStatement); 12288N(SyntaxKind.LocalDeclarationStatement); 12467N(SyntaxKind.LocalDeclarationStatement); 12534N(SyntaxKind.LocalDeclarationStatement); 12633N(SyntaxKind.LocalDeclarationStatement); 12735N(SyntaxKind.LocalDeclarationStatement); 12842N(SyntaxKind.LocalDeclarationStatement); 13438N(SyntaxKind.LocalDeclarationStatement); 14815N(SyntaxKind.LocalDeclarationStatement); 14901N(SyntaxKind.LocalDeclarationStatement);
Parsing\DeconstructionTests.cs (4)
145N(SyntaxKind.LocalDeclarationStatement); 223N(SyntaxKind.LocalDeclarationStatement); 299N(SyntaxKind.LocalDeclarationStatement); 1881Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind());
Parsing\ExpressionParsingTests.cs (10)
3285N(SyntaxKind.LocalDeclarationStatement); 3375N(SyntaxKind.LocalDeclarationStatement); 3449N(SyntaxKind.LocalDeclarationStatement); 3531N(SyntaxKind.LocalDeclarationStatement); 3859N(SyntaxKind.LocalDeclarationStatement); 4127N(SyntaxKind.LocalDeclarationStatement); 4221N(SyntaxKind.LocalDeclarationStatement); 4318N(SyntaxKind.LocalDeclarationStatement); 4423N(SyntaxKind.LocalDeclarationStatement); 4708N(SyntaxKind.LocalDeclarationStatement);
Parsing\FileModifierParsingTests.cs (16)
152N(SyntaxKind.LocalDeclarationStatement); 295N(SyntaxKind.LocalDeclarationStatement); 358N(SyntaxKind.LocalDeclarationStatement); 421N(SyntaxKind.LocalDeclarationStatement); 2054N(SyntaxKind.LocalDeclarationStatement); 2107N(SyntaxKind.LocalDeclarationStatement); 2233N(SyntaxKind.LocalDeclarationStatement); 2298N(SyntaxKind.LocalDeclarationStatement); 2361N(SyntaxKind.LocalDeclarationStatement); 2424N(SyntaxKind.LocalDeclarationStatement); 3051N(SyntaxKind.LocalDeclarationStatement); 3112N(SyntaxKind.LocalDeclarationStatement); 3159N(SyntaxKind.LocalDeclarationStatement); 3199N(SyntaxKind.LocalDeclarationStatement); 3241N(SyntaxKind.LocalDeclarationStatement); 3320N(SyntaxKind.LocalDeclarationStatement);
Parsing\FunctionPointerTests.cs (51)
21N(SyntaxKind.LocalDeclarationStatement); 77N(SyntaxKind.LocalDeclarationStatement); 149N(SyntaxKind.LocalDeclarationStatement); 199N(SyntaxKind.LocalDeclarationStatement); 242N(SyntaxKind.LocalDeclarationStatement); 294N(SyntaxKind.LocalDeclarationStatement); 345N(SyntaxKind.LocalDeclarationStatement); 388N(SyntaxKind.LocalDeclarationStatement); 436N(SyntaxKind.LocalDeclarationStatement); 534N(SyntaxKind.LocalDeclarationStatement); 599N(SyntaxKind.LocalDeclarationStatement); 650N(SyntaxKind.LocalDeclarationStatement); 756N(SyntaxKind.LocalDeclarationStatement); 803N(SyntaxKind.LocalDeclarationStatement); 880N(SyntaxKind.LocalDeclarationStatement); 924N(SyntaxKind.LocalDeclarationStatement); 966N(SyntaxKind.LocalDeclarationStatement); 1011N(SyntaxKind.LocalDeclarationStatement); 1061N(SyntaxKind.LocalDeclarationStatement); 1115N(SyntaxKind.LocalDeclarationStatement); 1166N(SyntaxKind.LocalDeclarationStatement); 1220N(SyntaxKind.LocalDeclarationStatement); 1346N(SyntaxKind.LocalDeclarationStatement); 1390N(SyntaxKind.LocalDeclarationStatement); 1438N(SyntaxKind.LocalDeclarationStatement); 1496N(SyntaxKind.LocalDeclarationStatement); 1560N(SyntaxKind.LocalDeclarationStatement); 1616N(SyntaxKind.LocalDeclarationStatement); 1663N(SyntaxKind.LocalDeclarationStatement); 2159N(SyntaxKind.LocalDeclarationStatement); 2374N(SyntaxKind.LocalDeclarationStatement); 2433N(SyntaxKind.LocalDeclarationStatement); 2840N(SyntaxKind.LocalDeclarationStatement); 3075N(SyntaxKind.LocalDeclarationStatement); 3135N(SyntaxKind.LocalDeclarationStatement); 3179N(SyntaxKind.LocalDeclarationStatement); 3230N(SyntaxKind.LocalDeclarationStatement); 3272N(SyntaxKind.LocalDeclarationStatement); 3311N(SyntaxKind.LocalDeclarationStatement); 3377N(SyntaxKind.LocalDeclarationStatement); 3450N(SyntaxKind.LocalDeclarationStatement); 3530N(SyntaxKind.LocalDeclarationStatement); 3602N(SyntaxKind.LocalDeclarationStatement); 3660N(SyntaxKind.LocalDeclarationStatement); 3704N(SyntaxKind.LocalDeclarationStatement); 3761N(SyntaxKind.LocalDeclarationStatement); 3821N(SyntaxKind.LocalDeclarationStatement); 3902N(SyntaxKind.LocalDeclarationStatement); 3990N(SyntaxKind.LocalDeclarationStatement); 4018N(SyntaxKind.LocalDeclarationStatement); 4074N(SyntaxKind.LocalDeclarationStatement);
Parsing\LambdaAttributeParsingTests.cs (7)
3813N(SyntaxKind.LocalDeclarationStatement); 3944N(SyntaxKind.LocalDeclarationStatement); 4057N(SyntaxKind.LocalDeclarationStatement); 4174N(SyntaxKind.LocalDeclarationStatement); 4211N(SyntaxKind.LocalDeclarationStatement); 4323N(SyntaxKind.LocalDeclarationStatement); 4457N(SyntaxKind.LocalDeclarationStatement);
Parsing\LambdaParameterParsingTests.cs (9)
78N(SyntaxKind.LocalDeclarationStatement); 189N(SyntaxKind.LocalDeclarationStatement); 308N(SyntaxKind.LocalDeclarationStatement); 358N(SyntaxKind.LocalDeclarationStatement); 434N(SyntaxKind.LocalDeclarationStatement); 484N(SyntaxKind.LocalDeclarationStatement); 563N(SyntaxKind.LocalDeclarationStatement); 613N(SyntaxKind.LocalDeclarationStatement); 5488N(SyntaxKind.LocalDeclarationStatement);
Parsing\LambdaReturnTypeParsingTests.cs (2)
2771N(SyntaxKind.LocalDeclarationStatement); 2832N(SyntaxKind.LocalDeclarationStatement);
Parsing\LocalFunctionParsingTests.cs (9)
885N(SyntaxKind.LocalDeclarationStatement); 940N(SyntaxKind.LocalDeclarationStatement); 1020N(SyntaxKind.LocalDeclarationStatement); 2602N(SyntaxKind.LocalDeclarationStatement); 2692N(SyntaxKind.LocalDeclarationStatement); 2926N(SyntaxKind.LocalDeclarationStatement); 3007N(SyntaxKind.LocalDeclarationStatement); 3053N(SyntaxKind.LocalDeclarationStatement); 3114N(SyntaxKind.LocalDeclarationStatement);
Parsing\MemberDeclarationParsingTests.cs (9)
2271N(SyntaxKind.LocalDeclarationStatement); 8648N(SyntaxKind.LocalDeclarationStatement); 15985N(SyntaxKind.LocalDeclarationStatement); 16082N(SyntaxKind.LocalDeclarationStatement); 16521N(SyntaxKind.LocalDeclarationStatement); 16633N(SyntaxKind.LocalDeclarationStatement); 17433N(SyntaxKind.LocalDeclarationStatement); 17495N(SyntaxKind.LocalDeclarationStatement); 17569N(SyntaxKind.LocalDeclarationStatement);
Parsing\NullableParsingTests.cs (1)
1092N(SyntaxKind.LocalDeclarationStatement);
Parsing\ParserRegressionTests.cs (5)
287N(SyntaxKind.LocalDeclarationStatement); 380N(SyntaxKind.LocalDeclarationStatement); 425N(SyntaxKind.LocalDeclarationStatement); 514N(SyntaxKind.LocalDeclarationStatement); 782N(SyntaxKind.LocalDeclarationStatement);
Parsing\ParsingErrorRecoveryTests.cs (70)
3045Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3068Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3092Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3116Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3138Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3161Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3184Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3207Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3230Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3253Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3274Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3295Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3316Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3337Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3358Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3379Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4585Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4611Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4638Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4665Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4693Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4720Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4747Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4776Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4805Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4835Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4864Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4893Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4920Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4947Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4974Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5002Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5029Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5057Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5083Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5113Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5142Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5172Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5216N(SyntaxKind.LocalDeclarationStatement); 5261N(SyntaxKind.LocalDeclarationStatement); 5328N(SyntaxKind.LocalDeclarationStatement); 5411N(SyntaxKind.LocalDeclarationStatement); 5475N(SyntaxKind.LocalDeclarationStatement); 5588N(SyntaxKind.LocalDeclarationStatement); 5725N(SyntaxKind.LocalDeclarationStatement); 5825Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5864Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5893Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5922Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5952Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5981Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6015Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6042Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6069Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6096Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6124Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6151Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6181Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6212Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6240Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6287Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6321Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6351Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 6639Assert.Equal(SyntaxKind.LocalDeclarationStatement, md.Body.Statements[0].Kind()); 6684Assert.Equal(SyntaxKind.LocalDeclarationStatement, md.Body.Statements[0].Kind()); 6728Assert.Equal(SyntaxKind.LocalDeclarationStatement, md.Body.Statements[0].Kind()); 6778Assert.Equal(SyntaxKind.LocalDeclarationStatement, md.Body.Statements[0].Kind()); 6826Assert.Equal(SyntaxKind.LocalDeclarationStatement, md.Body.Statements[0].Kind()); 6873Assert.Equal(SyntaxKind.LocalDeclarationStatement, md.Body.Statements[0].Kind()); 6926Assert.Equal(SyntaxKind.LocalDeclarationStatement, subitem1.Body.Statements[0].Kind());
Parsing\PatternParsingTests.cs (17)
332N(SyntaxKind.LocalDeclarationStatement); 449N(SyntaxKind.LocalDeclarationStatement); 506N(SyntaxKind.LocalDeclarationStatement); 2778N(SyntaxKind.LocalDeclarationStatement); 4338N(SyntaxKind.LocalDeclarationStatement); 4448N(SyntaxKind.LocalDeclarationStatement); 4554N(SyntaxKind.LocalDeclarationStatement); 4622N(SyntaxKind.LocalDeclarationStatement); 4686N(SyntaxKind.LocalDeclarationStatement); 4773N(SyntaxKind.LocalDeclarationStatement); 4856N(SyntaxKind.LocalDeclarationStatement); 4901N(SyntaxKind.LocalDeclarationStatement); 5007N(SyntaxKind.LocalDeclarationStatement); 5109N(SyntaxKind.LocalDeclarationStatement); 5173N(SyntaxKind.LocalDeclarationStatement); 5233N(SyntaxKind.LocalDeclarationStatement); 5316N(SyntaxKind.LocalDeclarationStatement);
Parsing\RecordParsing.cs (11)
284N(SyntaxKind.LocalDeclarationStatement); 1292N(SyntaxKind.LocalDeclarationStatement); 1325N(SyntaxKind.LocalDeclarationStatement); 1397N(SyntaxKind.LocalDeclarationStatement); 1718N(SyntaxKind.LocalDeclarationStatement); 1757N(SyntaxKind.LocalDeclarationStatement); 1933N(SyntaxKind.LocalDeclarationStatement); 2772N(SyntaxKind.LocalDeclarationStatement); 2967N(SyntaxKind.LocalDeclarationStatement); 3893N(SyntaxKind.LocalDeclarationStatement); 3958N(SyntaxKind.LocalDeclarationStatement);
Parsing\StatementAttributeParsingTests.cs (12)
2019N(SyntaxKind.LocalDeclarationStatement); 4208N(SyntaxKind.LocalDeclarationStatement); 6401N(SyntaxKind.LocalDeclarationStatement); 6480N(SyntaxKind.LocalDeclarationStatement); 6567N(SyntaxKind.LocalDeclarationStatement); 6672N(SyntaxKind.LocalDeclarationStatement); 6811N(SyntaxKind.LocalDeclarationStatement); 6991N(SyntaxKind.LocalDeclarationStatement); 7074N(SyntaxKind.LocalDeclarationStatement); 7181N(SyntaxKind.LocalDeclarationStatement); 7282N(SyntaxKind.LocalDeclarationStatement); 7391N(SyntaxKind.LocalDeclarationStatement);
Parsing\StatementParsingTests.cs (50)
188Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 216Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 246Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 280Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 321Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 349Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 375Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 401Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 427Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 453Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 479Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 505Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 540Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 570Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 615Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 646Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 677Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 709Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 741Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 773Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 799Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 830Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 2396Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 2422N(SyntaxKind.LocalDeclarationStatement); 2491Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 2526N(SyntaxKind.LocalDeclarationStatement); 2559N(SyntaxKind.LocalDeclarationStatement); 2589N(SyntaxKind.LocalDeclarationStatement); 2623Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 2652N(SyntaxKind.LocalDeclarationStatement); 2720N(SyntaxKind.LocalDeclarationStatement); 2839Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 2874N(SyntaxKind.LocalDeclarationStatement); 2942Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 2957N(SyntaxKind.LocalDeclarationStatement); 3025Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 3040N(SyntaxKind.LocalDeclarationStatement); 3097Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 3112N(SyntaxKind.LocalDeclarationStatement); 3143N(SyntaxKind.LocalDeclarationStatement); 3181N(SyntaxKind.LocalDeclarationStatement); 3220N(SyntaxKind.LocalDeclarationStatement); 3258N(SyntaxKind.LocalDeclarationStatement); 3295N(SyntaxKind.LocalDeclarationStatement); 3345Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 4183N(SyntaxKind.LocalDeclarationStatement); 4221N(SyntaxKind.LocalDeclarationStatement); 4473N(SyntaxKind.LocalDeclarationStatement); 5847N(SyntaxKind.LocalDeclarationStatement); 5941N(SyntaxKind.LocalDeclarationStatement);
Parsing\SwitchExpressionParsingTests.cs (3)
324N(SyntaxKind.LocalDeclarationStatement); 2575N(SyntaxKind.LocalDeclarationStatement); 2668N(SyntaxKind.LocalDeclarationStatement);
Parsing\TopLevelStatementsParsingTests.cs (31)
141N(SyntaxKind.LocalDeclarationStatement); 166N(SyntaxKind.LocalDeclarationStatement); 417N(SyntaxKind.LocalDeclarationStatement); 829N(SyntaxKind.LocalDeclarationStatement); 944N(SyntaxKind.LocalDeclarationStatement); 1113N(SyntaxKind.LocalDeclarationStatement); 1168N(SyntaxKind.LocalDeclarationStatement); 1500N(SyntaxKind.LocalDeclarationStatement); 1726N(SyntaxKind.LocalDeclarationStatement); 1832N(SyntaxKind.LocalDeclarationStatement); 1886N(SyntaxKind.LocalDeclarationStatement); 1930N(SyntaxKind.LocalDeclarationStatement); 1977N(SyntaxKind.LocalDeclarationStatement); 2018N(SyntaxKind.LocalDeclarationStatement); 2065N(SyntaxKind.LocalDeclarationStatement); 2250N(SyntaxKind.LocalDeclarationStatement); 2269N(SyntaxKind.LocalDeclarationStatement); 2325N(SyntaxKind.LocalDeclarationStatement); 2385N(SyntaxKind.LocalDeclarationStatement); 2456N(SyntaxKind.LocalDeclarationStatement); 2730N(SyntaxKind.LocalDeclarationStatement); 2798N(SyntaxKind.LocalDeclarationStatement); 2840N(SyntaxKind.LocalDeclarationStatement); 3078N(SyntaxKind.LocalDeclarationStatement); 3230N(SyntaxKind.LocalDeclarationStatement); 3392N(SyntaxKind.LocalDeclarationStatement); 3410N(SyntaxKind.LocalDeclarationStatement); 3461N(SyntaxKind.LocalDeclarationStatement); 3479N(SyntaxKind.LocalDeclarationStatement); 3523N(SyntaxKind.LocalDeclarationStatement); 3581M(SyntaxKind.LocalDeclarationStatement);
Parsing\TypeArgumentListParsingTests.cs (31)
59N(SyntaxKind.LocalDeclarationStatement); 175N(SyntaxKind.LocalDeclarationStatement); 303N(SyntaxKind.LocalDeclarationStatement); 436N(SyntaxKind.LocalDeclarationStatement); 584N(SyntaxKind.LocalDeclarationStatement); 731N(SyntaxKind.LocalDeclarationStatement); 763N(SyntaxKind.LocalDeclarationStatement); 799N(SyntaxKind.LocalDeclarationStatement); 1044N(SyntaxKind.LocalDeclarationStatement); 1183N(SyntaxKind.LocalDeclarationStatement); 1325N(SyntaxKind.LocalDeclarationStatement); 1458N(SyntaxKind.LocalDeclarationStatement); 1578N(SyntaxKind.LocalDeclarationStatement); 1682N(SyntaxKind.LocalDeclarationStatement); 1783N(SyntaxKind.LocalDeclarationStatement); 1905N(SyntaxKind.LocalDeclarationStatement); 2038N(SyntaxKind.LocalDeclarationStatement); 2172N(SyntaxKind.LocalDeclarationStatement); 2303N(SyntaxKind.LocalDeclarationStatement); 2404N(SyntaxKind.LocalDeclarationStatement); 2513N(SyntaxKind.LocalDeclarationStatement); 2615N(SyntaxKind.LocalDeclarationStatement); 2733N(SyntaxKind.LocalDeclarationStatement); 2869N(SyntaxKind.LocalDeclarationStatement); 2970N(SyntaxKind.LocalDeclarationStatement); 3071N(SyntaxKind.LocalDeclarationStatement); 3172N(SyntaxKind.LocalDeclarationStatement); 3273N(SyntaxKind.LocalDeclarationStatement); 3386N(SyntaxKind.LocalDeclarationStatement); 3505N(SyntaxKind.LocalDeclarationStatement); 3621N(SyntaxKind.LocalDeclarationStatement);
Parsing\UsingDirectiveParsingTests.cs (10)
77N(SyntaxKind.LocalDeclarationStatement); 116N(SyntaxKind.LocalDeclarationStatement); 172N(SyntaxKind.LocalDeclarationStatement); 207N(SyntaxKind.LocalDeclarationStatement); 279N(SyntaxKind.LocalDeclarationStatement); 409N(SyntaxKind.LocalDeclarationStatement); 469N(SyntaxKind.LocalDeclarationStatement); 508N(SyntaxKind.LocalDeclarationStatement); 3438N(SyntaxKind.LocalDeclarationStatement); 3495N(SyntaxKind.LocalDeclarationStatement);
Microsoft.CodeAnalysis.CSharp.Workspaces (21)
CodeGeneration\CSharpSyntaxGenerator.cs (11)
1281case SyntaxKind.LocalDeclarationStatement: 1328SyntaxKind.LocalDeclarationStatement => ((LocalDeclarationStatementSyntax)declaration).Declaration.Variables.Count, 1599case SyntaxKind.LocalDeclarationStatement: 1981case SyntaxKind.LocalDeclarationStatement: 2014SyntaxKind.LocalDeclarationStatement => ((LocalDeclarationStatementSyntax)declaration).WithDeclaration(((LocalDeclarationStatementSyntax)declaration).Declaration.WithType((TypeSyntax)type)), 2074SyntaxKind.LocalDeclarationStatement => ((LocalDeclarationStatementSyntax)declaration).Declaration, 2083SyntaxKind.LocalDeclarationStatement => ((LocalDeclarationStatementSyntax)declaration).WithDeclaration(variables), 2412case SyntaxKind.LocalDeclarationStatement: 2452case SyntaxKind.LocalDeclarationStatement: 2816case SyntaxKind.LocalDeclarationStatement: 2965SyntaxKind.LocalDeclarationStatement => ((LocalDeclarationStatementSyntax)declaration).Declaration.Variables,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
580or SyntaxKind.LocalDeclarationStatement
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (2)
227case SyntaxKind.LocalDeclarationStatement: 329=> node?.Parent.IsKind(SyntaxKind.LocalDeclarationStatement) ?? false;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
147public int LocalDeclarationStatement => (int)SyntaxKind.LocalDeclarationStatement;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.cs (1)
107SyntaxKind.LocalDeclarationStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseExplicitTypeHelper.cs (1)
86typeName.Parent.Parent is (kind: SyntaxKind.LocalDeclarationStatement or SyntaxKind.ForStatement or SyntaxKind.UsingStatement))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
108SyntaxKind.LocalDeclarationStatement or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (3)
1786token.Parent.IsKind(SyntaxKind.LocalDeclarationStatement)) 1798if (parent is (kind: SyntaxKind.RefType or SyntaxKind.RefExpression or SyntaxKind.LocalDeclarationStatement)) 1802SyntaxKind.LocalDeclarationStatement or
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (3)
Diagnostics\DiagnosticServiceTests.vb (3)
2478Assert.Equal(SyntaxKind.LocalDeclarationStatement, analyzedSyntaxNode.Kind) 2530context.RegisterSyntaxNodeAction(Sub(syntaxNodeContext) AnalyzedSyntaxNodes.Add(syntaxNodeContext.Node), SyntaxKind.LocalDeclarationStatement) 2534codeBlockStartContext.RegisterSyntaxNodeAction(Sub(syntaxNodeContext) AnalyzedSyntaxNodesInsideCodeBlock.Add(syntaxNodeContext.Node), SyntaxKind.LocalDeclarationStatement)
Microsoft.CodeAnalysis.Test.Utilities (6)
Diagnostics\CommonDiagnosticAnalyzers.cs (6)
2763SyntaxKind.LocalDeclarationStatement); 2796SyntaxKind.LocalDeclarationStatement); 2809SyntaxKind.LocalDeclarationStatement); 3018context.RegisterSyntaxNodeAction(syntaxNodeContext => AnalyzedSyntaxNodes.Add(syntaxNodeContext.Node), SyntaxKind.LocalDeclarationStatement); 3052codeBlockStartContext.RegisterSyntaxNodeAction(syntaxNodeContext => AnalyzedSyntaxNodesInsideCodeBlock.Add(syntaxNodeContext.Node), SyntaxKind.LocalDeclarationStatement); 3189}, SyntaxKind.LocalDeclarationStatement);
Microsoft.ML.InternalCodeAnalyzer (1)
ParameterVariableNameAnalyzer.cs (1)
38context.RegisterSyntaxNodeAction(AnalyzeLocal, SyntaxKind.LocalDeclarationStatement);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\MethodXml\MethodXmlBuilder.cs (1)
66case SyntaxKind.LocalDeclarationStatement: