540 references to LocalDeclarationStatement
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder_Expressions.cs (1)
3941variableDeclaration.Parent.IsKind(SyntaxKind.LocalDeclarationStatement) ||
Binder\Binder_Statements.cs (3)
65case SyntaxKind.LocalDeclarationStatement: 322case SyntaxKind.LocalDeclarationStatement: 831if (declarationNode.Parent.Kind() == SyntaxKind.LocalDeclarationStatement &&
Binder\LocalBinderFactory.cs (1)
945case SyntaxKind.LocalDeclarationStatement:
Binder\LocalScopeBinder.cs (1)
183case SyntaxKind.LocalDeclarationStatement:
Binder\UsingStatementBinder.cs (1)
92bool isUsingDeclaration = syntax.Kind() == SyntaxKind.LocalDeclarationStatement;
Compilation\MemberSemanticModel.cs (1)
2211if (grandparent != null && grandparent.Kind() == SyntaxKind.LocalDeclarationStatement &&
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
124case SyntaxKind.LocalDeclarationStatement:
Lowering\Instrumentation\Instrumenter.cs (1)
214(original.Syntax.Kind() == SyntaxKind.LocalDeclarationStatement &&
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.cs (1)
78(originalOpt.Syntax.Kind() == SyntaxKind.LocalDeclarationStatement &&
Operations\CSharpOperationFactory.cs (2)
1997case SyntaxKind.LocalDeclarationStatement: 2045SyntaxNode declarationSyntax = declarationGroupSyntax.IsKind(SyntaxKind.LocalDeclarationStatement) ?
Parser\LanguageParser.cs (3)
2555case SyntaxKind.LocalDeclarationStatement: 4855if (parent != null && (parent.Kind() == SyntaxKind.VariableDeclaration || parent.Kind() == SyntaxKind.LocalDeclarationStatement)) 4876&& oldKind != SyntaxKind.LocalDeclarationStatement;
Symbols\Source\SourceLocalSymbol.cs (1)
175new[] { SyntaxKind.LocalDeclarationStatement, SyntaxKind.ForStatement, SyntaxKind.UsingStatement, SyntaxKind.FixedStatement }.
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4932case SyntaxKind.LocalDeclarationStatement:
Syntax\LookupPosition.cs (2)
325case SyntaxKind.LocalDeclarationStatement: 386case SyntaxKind.LocalDeclarationStatement:
Microsoft.CodeAnalysis.CSharp.CodeStyle (13)
CSharpAccessibilityFacts.cs (2)
227case SyntaxKind.LocalDeclarationStatement: 329=> node?.Parent.IsKind(SyntaxKind.LocalDeclarationStatement) ?? false;
CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
39Debug.Assert(localStatement.IsKind(SyntaxKind.LocalDeclarationStatement));
CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
176if (!firstStatement.IsKind(SyntaxKind.LocalDeclarationStatement, out localDeclarationStatement))
CSharpSyntaxKinds.cs (1)
132public int LocalDeclarationStatement => (int)SyntaxKind.LocalDeclarationStatement;
CSharpTypeStyleHelper.cs (1)
106SyntaxKind.LocalDeclarationStatement or
CSharpUseExplicitTypeHelper.cs (1)
86typeName.Parent.Parent is (kind: SyntaxKind.LocalDeclarationStatement or SyntaxKind.ForStatement or SyntaxKind.UsingStatement))
CSharpUseImplicitTypeHelper.cs (1)
108SyntaxKind.LocalDeclarationStatement or
CSharpUseLocalFunctionDiagnosticAnalyzer.cs (3)
189anonymousFunction.Parent.Parent.Parent.IsParentKind(SyntaxKind.LocalDeclarationStatement, out localDeclaration)) 291if (containingStatement.IsKind(SyntaxKind.LocalDeclarationStatement, out localDeclaration) && 328if (previousStatement.IsKind(SyntaxKind.LocalDeclarationStatement, out localDeclaration) &&
CSharpUseTupleSwapDiagnosticAnalyzer.cs (1)
58SyntaxKind.LocalDeclarationStatement);
SpacingFormattingRule.cs (1)
577node.IsKind(SyntaxKind.EventFieldDeclaration) || node.IsKind(SyntaxKind.LocalDeclarationStatement) ||
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (3)
1770token.Parent.IsKind(SyntaxKind.LocalDeclarationStatement)) 1782if (parent is (kind: SyntaxKind.RefType or SyntaxKind.RefExpression or SyntaxKind.LocalDeclarationStatement)) 1786SyntaxKind.LocalDeclarationStatement or
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
339case SyntaxKind.LocalDeclarationStatement:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
Diagnostics\GetDiagnosticsTests.cs (2)
1248AssertEx.All(analyzer.AnalyzedSyntaxNodes, node => node.IsKind(SyntaxKind.LocalDeclarationStatement)); 1252AssertEx.All(analyzer.AnalyzedSyntaxNodesInsideCodeBlock, node => node.IsKind(SyntaxKind.LocalDeclarationStatement));
Semantics\PatternMatchingTestBase.cs (1)
292var inFieldDeclaratorArgumentlist = declarator != null && declarator.Parent.Parent.Kind() != SyntaxKind.LocalDeclarationStatement &&
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
EvaluationContext.cs (1)
335if (statementSyntax.IsKind(SyntaxKind.LocalDeclarationStatement))
Microsoft.CodeAnalysis.CSharp.Features (18)
CodeLens\CSharpCodeLensDisplayInfoService.cs (1)
40case SyntaxKind.LocalDeclarationStatement:
ConvertLinq\ConvertForEachToLinqQuery\AbstractToMethodConverter.cs (2)
65case SyntaxKind.LocalDeclarationStatement: 156case SyntaxKind.LocalDeclarationStatement:
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (1)
127case SyntaxKind.LocalDeclarationStatement:
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
471SyntaxKind.LocalDeclarationStatement &&
CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
39Debug.Assert(localStatement.IsKind(SyntaxKind.LocalDeclarationStatement));
CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
176if (!firstStatement.IsKind(SyntaxKind.LocalDeclarationStatement, out localDeclarationStatement))
CSharpUseLocalFunctionDiagnosticAnalyzer.cs (3)
189anonymousFunction.Parent.Parent.Parent.IsParentKind(SyntaxKind.LocalDeclarationStatement, out localDeclaration)) 291if (containingStatement.IsKind(SyntaxKind.LocalDeclarationStatement, out localDeclaration) && 328if (previousStatement.IsKind(SyntaxKind.LocalDeclarationStatement, out localDeclaration) &&
CSharpUseTupleSwapDiagnosticAnalyzer.cs (1)
58SyntaxKind.LocalDeclarationStatement);
Debugging\CSharpProximityExpressionsService.Worker.cs (1)
198case SyntaxKind.LocalDeclarationStatement:
EditAndContinue\BreakpointSpans.cs (2)
408case SyntaxKind.LocalDeclarationStatement: 595SyntaxKind.LocalDeclarationStatement or SyntaxKind.EventFieldDeclaration or SyntaxKind.FieldDeclaration => null,
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (3)
1823case SyntaxKind.LocalDeclarationStatement: 2207case SyntaxKind.LocalDeclarationStatement: 2856case SyntaxKind.LocalDeclarationStatement:
EditAndContinue\SyntaxComparer.cs (1)
331case SyntaxKind.LocalDeclarationStatement:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\OutVarTests.cs (2)
1191Assert.Equal(SyntaxKind.LocalDeclarationStatement, parent1.Kind()); 32697var inFieldDeclaratorArgumentlist = declarator != null && declarator.Parent.Parent.Kind() != SyntaxKind.LocalDeclarationStatement &&
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
SymbolDisplay\SymbolDisplayTests.cs (2)
8091var declaration = (LocalDeclarationStatementSyntax)semanticModel.SyntaxTree.GetRoot().DescendantNodes().Single(n => n.Kind() == SyntaxKind.LocalDeclarationStatement); 8142var declaration = (LocalDeclarationStatementSyntax)semanticModel.SyntaxTree.GetRoot().DescendantNodes().Single(n => n.Kind() == SyntaxKind.LocalDeclarationStatement);
Symbols\TypeTests.cs (1)
1760var node1 = (LocalDeclarationStatementSyntax)tree.FindNodeOrTokenByKind(SyntaxKind.LocalDeclarationStatement, 3);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (452)
IncrementalParsing\IncrementalParsingTests.cs (1)
444SyntaxKind.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); 2068N(SyntaxKind.LocalDeclarationStatement); 2146N(SyntaxKind.LocalDeclarationStatement); 2232N(SyntaxKind.LocalDeclarationStatement); 2525N(SyntaxKind.LocalDeclarationStatement); 2673N(SyntaxKind.LocalDeclarationStatement); 2821N(SyntaxKind.LocalDeclarationStatement); 2947N(SyntaxKind.LocalDeclarationStatement); 3083N(SyntaxKind.LocalDeclarationStatement); 3206N(SyntaxKind.LocalDeclarationStatement); 3346N(SyntaxKind.LocalDeclarationStatement); 3499N(SyntaxKind.LocalDeclarationStatement); 3652N(SyntaxKind.LocalDeclarationStatement); 3801N(SyntaxKind.LocalDeclarationStatement); 3946N(SyntaxKind.LocalDeclarationStatement); 4078N(SyntaxKind.LocalDeclarationStatement); 4227N(SyntaxKind.LocalDeclarationStatement); 4389N(SyntaxKind.LocalDeclarationStatement); 4551N(SyntaxKind.LocalDeclarationStatement);
Parsing\AsyncStreamsParsingTests.cs (1)
228N(SyntaxKind.LocalDeclarationStatement);
Parsing\AwaitParsingTests.cs (9)
294N(SyntaxKind.LocalDeclarationStatement); 364N(SyntaxKind.LocalDeclarationStatement); 970N(SyntaxKind.LocalDeclarationStatement); 1030N(SyntaxKind.LocalDeclarationStatement); 1076N(SyntaxKind.LocalDeclarationStatement); 1720N(SyntaxKind.LocalDeclarationStatement); 1805N(SyntaxKind.LocalDeclarationStatement); 1852N(SyntaxKind.LocalDeclarationStatement); 1964N(SyntaxKind.LocalDeclarationStatement);
Parsing\DeclarationExpressionTests.cs (2)
241N(SyntaxKind.LocalDeclarationStatement); 304N(SyntaxKind.LocalDeclarationStatement);
Parsing\DeclarationParsingTests.cs (2)
8401N(SyntaxKind.LocalDeclarationStatement); 8713N(SyntaxKind.LocalDeclarationStatement);
Parsing\DeclarationScopeParsingTests.cs (90)
1457N(SyntaxKind.LocalDeclarationStatement); 1472N(SyntaxKind.LocalDeclarationStatement); 1491N(SyntaxKind.LocalDeclarationStatement); 1511N(SyntaxKind.LocalDeclarationStatement); 1587N(SyntaxKind.LocalDeclarationStatement); 1658N(SyntaxKind.LocalDeclarationStatement); 1677N(SyntaxKind.LocalDeclarationStatement); 1700N(SyntaxKind.LocalDeclarationStatement); 1787N(SyntaxKind.LocalDeclarationStatement); 1806N(SyntaxKind.LocalDeclarationStatement); 1821N(SyntaxKind.LocalDeclarationStatement); 1841N(SyntaxKind.LocalDeclarationStatement); 1881N(SyntaxKind.LocalDeclarationStatement); 1903N(SyntaxKind.LocalDeclarationStatement); 1961N(SyntaxKind.LocalDeclarationStatement); 1996N(SyntaxKind.LocalDeclarationStatement); 2048N(SyntaxKind.LocalDeclarationStatement); 2071N(SyntaxKind.LocalDeclarationStatement); 2116N(SyntaxKind.LocalDeclarationStatement); 2134N(SyntaxKind.LocalDeclarationStatement); 2223N(SyntaxKind.LocalDeclarationStatement); 2249N(SyntaxKind.LocalDeclarationStatement); 2279N(SyntaxKind.LocalDeclarationStatement); 2329N(SyntaxKind.LocalDeclarationStatement); 2355N(SyntaxKind.LocalDeclarationStatement); 2385N(SyntaxKind.LocalDeclarationStatement); 2435N(SyntaxKind.LocalDeclarationStatement); 2457N(SyntaxKind.LocalDeclarationStatement); 2483N(SyntaxKind.LocalDeclarationStatement); 2527N(SyntaxKind.LocalDeclarationStatement); 2582N(SyntaxKind.LocalDeclarationStatement); 2604N(SyntaxKind.LocalDeclarationStatement); 2645N(SyntaxKind.LocalDeclarationStatement); 2667N(SyntaxKind.LocalDeclarationStatement); 2714N(SyntaxKind.LocalDeclarationStatement); 2753N(SyntaxKind.LocalDeclarationStatement); 2805N(SyntaxKind.LocalDeclarationStatement); 2828N(SyntaxKind.LocalDeclarationStatement); 2873N(SyntaxKind.LocalDeclarationStatement); 2891N(SyntaxKind.LocalDeclarationStatement); 2945N(SyntaxKind.LocalDeclarationStatement); 2986N(SyntaxKind.LocalDeclarationStatement); 3004N(SyntaxKind.LocalDeclarationStatement); 3083N(SyntaxKind.LocalDeclarationStatement); 3133N(SyntaxKind.LocalDeclarationStatement); 3155N(SyntaxKind.LocalDeclarationStatement); 3222N(SyntaxKind.LocalDeclarationStatement); 3237N(SyntaxKind.LocalDeclarationStatement); 3325N(SyntaxKind.LocalDeclarationStatement); 3696N(SyntaxKind.LocalDeclarationStatement); 3801N(SyntaxKind.LocalDeclarationStatement); 3984N(SyntaxKind.LocalDeclarationStatement); 4097N(SyntaxKind.LocalDeclarationStatement); 4267N(SyntaxKind.LocalDeclarationStatement); 4440N(SyntaxKind.LocalDeclarationStatement); 4618N(SyntaxKind.LocalDeclarationStatement); 5449N(SyntaxKind.LocalDeclarationStatement); 5551N(SyntaxKind.LocalDeclarationStatement); 6552N(SyntaxKind.LocalDeclarationStatement); 6650N(SyntaxKind.LocalDeclarationStatement); 7072N(SyntaxKind.LocalDeclarationStatement); 9854N(SyntaxKind.LocalDeclarationStatement); 9906N(SyntaxKind.LocalDeclarationStatement); 10199N(SyntaxKind.LocalDeclarationStatement); 10280N(SyntaxKind.LocalDeclarationStatement); 10599N(SyntaxKind.LocalDeclarationStatement); 11467N(SyntaxKind.LocalDeclarationStatement); 11570N(SyntaxKind.LocalDeclarationStatement); 11969N(SyntaxKind.LocalDeclarationStatement); 12025N(SyntaxKind.LocalDeclarationStatement); 12080N(SyntaxKind.LocalDeclarationStatement); 12099N(SyntaxKind.LocalDeclarationStatement); 12139N(SyntaxKind.LocalDeclarationStatement); 12183N(SyntaxKind.LocalDeclarationStatement); 12240N(SyntaxKind.LocalDeclarationStatement); 12260N(SyntaxKind.LocalDeclarationStatement); 12284N(SyntaxKind.LocalDeclarationStatement); 12325N(SyntaxKind.LocalDeclarationStatement); 12370N(SyntaxKind.LocalDeclarationStatement); 12422N(SyntaxKind.LocalDeclarationStatement); 12466N(SyntaxKind.LocalDeclarationStatement); 12626N(SyntaxKind.LocalDeclarationStatement); 12816N(SyntaxKind.LocalDeclarationStatement); 12894N(SyntaxKind.LocalDeclarationStatement); 13004N(SyntaxKind.LocalDeclarationStatement); 13117N(SyntaxKind.LocalDeclarationStatement); 13235N(SyntaxKind.LocalDeclarationStatement); 13842N(SyntaxKind.LocalDeclarationStatement); 15227N(SyntaxKind.LocalDeclarationStatement); 15314N(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\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); 5415N(SyntaxKind.LocalDeclarationStatement);
Parsing\LambdaReturnTypeParsingTests.cs (2)
2698N(SyntaxKind.LocalDeclarationStatement); 2759N(SyntaxKind.LocalDeclarationStatement);
Parsing\LocalFunctionParsingTests.cs (4)
885N(SyntaxKind.LocalDeclarationStatement); 940N(SyntaxKind.LocalDeclarationStatement); 1020N(SyntaxKind.LocalDeclarationStatement); 2602N(SyntaxKind.LocalDeclarationStatement);
Parsing\MemberDeclarationParsingTests.cs (2)
2277N(SyntaxKind.LocalDeclarationStatement); 8659N(SyntaxKind.LocalDeclarationStatement);
Parsing\NullableParsingTests.cs (1)
1090N(SyntaxKind.LocalDeclarationStatement);
Parsing\ParserRegressionTests.cs (5)
287N(SyntaxKind.LocalDeclarationStatement); 380N(SyntaxKind.LocalDeclarationStatement); 425N(SyntaxKind.LocalDeclarationStatement); 514N(SyntaxKind.LocalDeclarationStatement); 782N(SyntaxKind.LocalDeclarationStatement);
Parsing\ParsingErrorRecoveryTests.cs (63)
2883Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 2906Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 2930Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 2954Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 2976Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 2999Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3022Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3045Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3068Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3091Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3112Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3133Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3154Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3175Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3196Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 3217Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4423Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4449Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4476Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4503Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4531Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4558Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4585Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4614Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4643Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4673Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4702Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4731Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4758Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4785Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4812Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4840Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4867Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4895Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4921Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4948Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 4975Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5003Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5030Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5060Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5089Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5118Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5148Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5177Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5211Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5238Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5265Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5292Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5320Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5347Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5377Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5408Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5436Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5483Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5517Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5547Assert.Equal(SyntaxKind.LocalDeclarationStatement, ms.Body.Statements[0].Kind()); 5835Assert.Equal(SyntaxKind.LocalDeclarationStatement, md.Body.Statements[0].Kind()); 5880Assert.Equal(SyntaxKind.LocalDeclarationStatement, md.Body.Statements[0].Kind()); 5924Assert.Equal(SyntaxKind.LocalDeclarationStatement, md.Body.Statements[0].Kind()); 5974Assert.Equal(SyntaxKind.LocalDeclarationStatement, md.Body.Statements[0].Kind()); 6022Assert.Equal(SyntaxKind.LocalDeclarationStatement, md.Body.Statements[0].Kind()); 6069Assert.Equal(SyntaxKind.LocalDeclarationStatement, md.Body.Statements[0].Kind()); 6122Assert.Equal(SyntaxKind.LocalDeclarationStatement, subitem1.Body.Statements[0].Kind());
Parsing\PatternParsingTests.cs (16)
332N(SyntaxKind.LocalDeclarationStatement); 449N(SyntaxKind.LocalDeclarationStatement); 506N(SyntaxKind.LocalDeclarationStatement); 4377N(SyntaxKind.LocalDeclarationStatement); 4487N(SyntaxKind.LocalDeclarationStatement); 4593N(SyntaxKind.LocalDeclarationStatement); 4661N(SyntaxKind.LocalDeclarationStatement); 4725N(SyntaxKind.LocalDeclarationStatement); 4812N(SyntaxKind.LocalDeclarationStatement); 4895N(SyntaxKind.LocalDeclarationStatement); 4940N(SyntaxKind.LocalDeclarationStatement); 5046N(SyntaxKind.LocalDeclarationStatement); 5148N(SyntaxKind.LocalDeclarationStatement); 5212N(SyntaxKind.LocalDeclarationStatement); 5272N(SyntaxKind.LocalDeclarationStatement); 5355N(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); 2622N(SyntaxKind.LocalDeclarationStatement); 2817N(SyntaxKind.LocalDeclarationStatement); 3743N(SyntaxKind.LocalDeclarationStatement); 3808N(SyntaxKind.LocalDeclarationStatement);
Parsing\StatementAttributeParsingTests.cs (12)
2018N(SyntaxKind.LocalDeclarationStatement); 4207N(SyntaxKind.LocalDeclarationStatement); 6389N(SyntaxKind.LocalDeclarationStatement); 6468N(SyntaxKind.LocalDeclarationStatement); 6555N(SyntaxKind.LocalDeclarationStatement); 6660N(SyntaxKind.LocalDeclarationStatement); 6799N(SyntaxKind.LocalDeclarationStatement); 6979N(SyntaxKind.LocalDeclarationStatement); 7062N(SyntaxKind.LocalDeclarationStatement); 7169N(SyntaxKind.LocalDeclarationStatement); 7270N(SyntaxKind.LocalDeclarationStatement); 7379N(SyntaxKind.LocalDeclarationStatement);
Parsing\StatementParsingTests.cs (47)
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()); 2522Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 2556N(SyntaxKind.LocalDeclarationStatement); 2586N(SyntaxKind.LocalDeclarationStatement); 2620Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 2649N(SyntaxKind.LocalDeclarationStatement); 2717N(SyntaxKind.LocalDeclarationStatement); 2836Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 2871N(SyntaxKind.LocalDeclarationStatement); 2939Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 2954N(SyntaxKind.LocalDeclarationStatement); 3022Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 3037N(SyntaxKind.LocalDeclarationStatement); 3094Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 3109N(SyntaxKind.LocalDeclarationStatement); 3140N(SyntaxKind.LocalDeclarationStatement); 3178N(SyntaxKind.LocalDeclarationStatement); 3217N(SyntaxKind.LocalDeclarationStatement); 3255N(SyntaxKind.LocalDeclarationStatement); 3292N(SyntaxKind.LocalDeclarationStatement); 3342Assert.Equal(SyntaxKind.LocalDeclarationStatement, statement.Kind()); 4189N(SyntaxKind.LocalDeclarationStatement); 4445N(SyntaxKind.LocalDeclarationStatement);
Parsing\SwitchExpressionParsingTests.cs (3)
323N(SyntaxKind.LocalDeclarationStatement); 858N(SyntaxKind.LocalDeclarationStatement); 951N(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); 1974N(SyntaxKind.LocalDeclarationStatement); 2015N(SyntaxKind.LocalDeclarationStatement); 2062N(SyntaxKind.LocalDeclarationStatement); 2247N(SyntaxKind.LocalDeclarationStatement); 2266N(SyntaxKind.LocalDeclarationStatement); 2322N(SyntaxKind.LocalDeclarationStatement); 2382N(SyntaxKind.LocalDeclarationStatement); 2453N(SyntaxKind.LocalDeclarationStatement); 2727N(SyntaxKind.LocalDeclarationStatement); 2795N(SyntaxKind.LocalDeclarationStatement); 2837N(SyntaxKind.LocalDeclarationStatement); 3075N(SyntaxKind.LocalDeclarationStatement); 3227N(SyntaxKind.LocalDeclarationStatement); 3389N(SyntaxKind.LocalDeclarationStatement); 3407N(SyntaxKind.LocalDeclarationStatement); 3458N(SyntaxKind.LocalDeclarationStatement); 3476N(SyntaxKind.LocalDeclarationStatement); 3527N(SyntaxKind.LocalDeclarationStatement); 3545N(SyntaxKind.LocalDeclarationStatement);
Parsing\TypeArgumentListParsingTests.cs (23)
61N(SyntaxKind.LocalDeclarationStatement); 177N(SyntaxKind.LocalDeclarationStatement); 305N(SyntaxKind.LocalDeclarationStatement); 438N(SyntaxKind.LocalDeclarationStatement); 586N(SyntaxKind.LocalDeclarationStatement); 733N(SyntaxKind.LocalDeclarationStatement); 765N(SyntaxKind.LocalDeclarationStatement); 801N(SyntaxKind.LocalDeclarationStatement); 1046N(SyntaxKind.LocalDeclarationStatement); 1185N(SyntaxKind.LocalDeclarationStatement); 1327N(SyntaxKind.LocalDeclarationStatement); 1460N(SyntaxKind.LocalDeclarationStatement); 1580N(SyntaxKind.LocalDeclarationStatement); 1684N(SyntaxKind.LocalDeclarationStatement); 1785N(SyntaxKind.LocalDeclarationStatement); 1907N(SyntaxKind.LocalDeclarationStatement); 2040N(SyntaxKind.LocalDeclarationStatement); 2174N(SyntaxKind.LocalDeclarationStatement); 2305N(SyntaxKind.LocalDeclarationStatement); 2406N(SyntaxKind.LocalDeclarationStatement); 2515N(SyntaxKind.LocalDeclarationStatement); 2617N(SyntaxKind.LocalDeclarationStatement); 2735N(SyntaxKind.LocalDeclarationStatement);
Parsing\UsingDirectiveParsingTests.cs (10)
77N(SyntaxKind.LocalDeclarationStatement); 116N(SyntaxKind.LocalDeclarationStatement); 172N(SyntaxKind.LocalDeclarationStatement); 207N(SyntaxKind.LocalDeclarationStatement); 282N(SyntaxKind.LocalDeclarationStatement); 419N(SyntaxKind.LocalDeclarationStatement); 479N(SyntaxKind.LocalDeclarationStatement); 518N(SyntaxKind.LocalDeclarationStatement); 3488N(SyntaxKind.LocalDeclarationStatement); 3545N(SyntaxKind.LocalDeclarationStatement);
Microsoft.CodeAnalysis.CSharp.Workspaces (21)
CodeGeneration\CSharpSyntaxGenerator.cs (11)
1269case SyntaxKind.LocalDeclarationStatement: 1316SyntaxKind.LocalDeclarationStatement => ((LocalDeclarationStatementSyntax)declaration).Declaration.Variables.Count, 1594case SyntaxKind.LocalDeclarationStatement: 1967case SyntaxKind.LocalDeclarationStatement: 2000SyntaxKind.LocalDeclarationStatement => ((LocalDeclarationStatementSyntax)declaration).WithDeclaration(((LocalDeclarationStatementSyntax)declaration).Declaration.WithType((TypeSyntax)type)), 2060SyntaxKind.LocalDeclarationStatement => ((LocalDeclarationStatementSyntax)declaration).Declaration, 2069SyntaxKind.LocalDeclarationStatement => ((LocalDeclarationStatementSyntax)declaration).WithDeclaration(variables), 2398case SyntaxKind.LocalDeclarationStatement: 2438case SyntaxKind.LocalDeclarationStatement: 2828case SyntaxKind.LocalDeclarationStatement: 2975SyntaxKind.LocalDeclarationStatement => ((LocalDeclarationStatementSyntax)declaration).Declaration.Variables,
CSharpAccessibilityFacts.cs (2)
227case SyntaxKind.LocalDeclarationStatement: 329=> node?.Parent.IsKind(SyntaxKind.LocalDeclarationStatement) ?? false;
CSharpSyntaxKinds.cs (1)
132public int LocalDeclarationStatement => (int)SyntaxKind.LocalDeclarationStatement;
CSharpTypeStyleHelper.cs (1)
106SyntaxKind.LocalDeclarationStatement or
CSharpUseExplicitTypeHelper.cs (1)
86typeName.Parent.Parent is (kind: SyntaxKind.LocalDeclarationStatement or SyntaxKind.ForStatement or SyntaxKind.UsingStatement))
CSharpUseImplicitTypeHelper.cs (1)
108SyntaxKind.LocalDeclarationStatement or
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (3)
1770token.Parent.IsKind(SyntaxKind.LocalDeclarationStatement)) 1782if (parent is (kind: SyntaxKind.RefType or SyntaxKind.RefExpression or SyntaxKind.LocalDeclarationStatement)) 1786SyntaxKind.LocalDeclarationStatement or
SpacingFormattingRule.cs (1)
577node.IsKind(SyntaxKind.EventFieldDeclaration) || node.IsKind(SyntaxKind.LocalDeclarationStatement) ||
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\CommonDiagnosticAnalyzers.cs (2)
2692context.RegisterSyntaxNodeAction(syntaxNodeContext => AnalyzedSyntaxNodes.Add(syntaxNodeContext.Node), SyntaxKind.LocalDeclarationStatement); 2726codeBlockStartContext.RegisterSyntaxNodeAction(syntaxNodeContext => AnalyzedSyntaxNodesInsideCodeBlock.Add(syntaxNodeContext.Node), SyntaxKind.LocalDeclarationStatement);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\MethodXml\MethodXmlBuilder.cs (1)
66case SyntaxKind.LocalDeclarationStatement: