978 references to Block
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder_Statements.cs (2)
51else if (node.Kind() != SyntaxKind.Block) 63case SyntaxKind.Block:
Binder\LocalBinderFactory.cs (2)
94else if (syntax.Kind() != SyntaxKind.Block && (statement = syntax as StatementSyntax) != null) 388if (body.Kind() == SyntaxKind.Block)
BoundTree\UnboundLambda.cs (1)
1515private bool IsExpressionLambda { get { return Body.Kind() != SyntaxKind.Block; } }
CodeGen\EmitStatement.cs (2)
847return _ilEmitStyle == ILEmitStyle.Debug && _method.GenerateDebugInfo && _methodBodySyntaxOpt?.IsKind(SyntaxKind.Block) == true || 858(boundReturnStatement.Syntax.IsKind(SyntaxKind.Block) || _method?.IsImplicitConstructor == true) &&
Compilation\SyntaxTreeSemanticModel.cs (1)
1114case SyntaxKind.Block:
Compiler\MethodBodySynthesizer.cs (2)
533Debug.Assert(syntax.Kind() == SyntaxKind.Block || syntax.Kind() == SyntaxKind.ArrowExpressionClause); 554if (syntax.Kind() == SyntaxKind.Block)
FlowAnalysis\FlowAnalysisPass.cs (1)
195syntax.IsKind(SyntaxKind.Block) ||
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
600else if (lambdaSyntax.Body.Kind() == SyntaxKind.Block) 618else if (lambdaSyntax.Body.Kind() == SyntaxKind.Block)
Lowering\Instrumentation\DebugInfoInjector.cs (2)
172if (original.WasCompilerGenerated && original.Syntax.Kind() == SyntaxKind.Block) 406if (original.WasCompilerGenerated && original.ExpressionOpt == null && original.Syntax.Kind() == SyntaxKind.Block)
Lowering\Instrumentation\Instrumenter.cs (1)
50Debug.Assert(!original.WasCompilerGenerated || original.Syntax.Kind() == SyntaxKind.Block);
Lowering\LocalRewriter\LocalRewriter_ReturnStatement.cs (1)
29(node.Syntax.Kind() == SyntaxKind.Block && _factory.CurrentFunction?.IsAsync == false))))
Lowering\LocalRewriter\LocalRewriter_Yield.cs (1)
21(!node.WasCompilerGenerated || (node.Syntax.Kind() == SyntaxKind.Block && _factory.CurrentFunction?.IsAsync == false)))
Parser\LanguageParser.cs (2)
8617this.CurrentNodeKind == SyntaxKind.Block && 8658if (this.IsIncrementalAndFactoryContextMatches && this.CurrentNodeKind == SyntaxKind.Block && attributes.Count == 0)
Syntax\CSharpSyntaxNode.cs (1)
522if (this.Kind() == SyntaxKind.Block)
Syntax\LambdaUtilities.cs (1)
391case SyntaxKind.Block:
Syntax\LookupPosition.cs (2)
315case SyntaxKind.Block: 377case SyntaxKind.Block:
Syntax\SyntaxEquivalence.cs (1)
157case SyntaxKind.Block:
Syntax\SyntaxExtensions.cs (1)
254case SyntaxKind.Block:
Microsoft.CodeAnalysis.CSharp.CodeStyle (22)
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (3)
63case SyntaxKind.Block: 293if (statement.Statement.IsKind(SyntaxKind.Block)) 297if (elseStatement.IsKind(SyntaxKind.Block))
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
351return current.IsParentKind(SyntaxKind.Block)
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
227if (!ifStatement.Parent.IsKind(SyntaxKind.Block))
src\Analyzers\CSharp\Analyzers\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
109if (parent.IsKind(SyntaxKind.Block))
src\Analyzers\CSharp\Analyzers\RemoveUnusedParametersAndValues\CSharpRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
79!blockOperation.Syntax.IsKind(SyntaxKind.Block);
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
40Debug.Assert(enclosingBlock.Kind() is SyntaxKind.Block or SyntaxKind.SwitchSection);
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
96var ifStatementScope = ifStatement.Parent.IsKind(SyntaxKind.Block)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (2)
129if (node.Kind() != SyntaxKind.Block) 139if (node.Kind() != SyntaxKind.Block)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (1)
100var firstStatementIsBlock = section.Statements is [(kind: SyntaxKind.Block), ..];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
265if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.Block)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\WrappingFormattingRule.cs (3)
74if (embeddedStatement.IsKind(SyntaxKind.Block)) 103if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.Block) 116if (!(node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.Block))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Indentation\CSharpSmartTokenFormatter.cs (1)
74endToken.Parent.IsKind(SyntaxKind.Block) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpBlockFacts.cs (2)
23=> node.IsKind(SyntaxKind.Block); 26=> node is (kind: SyntaxKind.Block or SyntaxKind.SwitchSection or SyntaxKind.CompilationUnit);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (2)
349(previousToken.Parent.IsKind(SyntaxKind.Block) || 440if (token.Parent.Kind() is SyntaxKind.Block or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
96=> node is StatementSyntax(kind: not SyntaxKind.Block) or TypeSyntax or CrefSyntax ||
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
83is not SyntaxKind.Block
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (3)
115case SyntaxKind.OpenBraceToken when token.Parent.IsKind(SyntaxKind.Block): 124if (token.Parent.IsKind(SyntaxKind.Block)) 590targetToken.Parent.IsKind(SyntaxKind.Block) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
207token.Parent.IsKind(SyntaxKind.Block) && 491token.Parent.IsKind(SyntaxKind.Block) &&
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (1)
90&& endToken.Parent.IsKind(SyntaxKind.Block)
Microsoft.CodeAnalysis.CSharp.Features (34)
ChangeSignature\CSharpChangeSignatureService.cs (1)
202current.Kind() == SyntaxKind.Block || current.Kind() == SyntaxKind.ArrowExpressionClause)
Completion\KeywordRecommenders\WhileKeywordRecommender.cs (1)
41token.Parent.IsKind(SyntaxKind.Block) &&
ConvertForEachToFor\CSharpConvertForEachToForCodeRefactoringProvider.cs (1)
50return foreachInfo.ForEachStatement.Parent.IsKind(SyntaxKind.Block);
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (1)
59case SyntaxKind.Block:
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
95if (!documentUpdateInfo.Source.IsParentKind(SyntaxKind.Block) &&
Debugging\CSharpProximityExpressionsService.Worker.cs (2)
220var statementAncestor = _parentStatement.Ancestors().OfType<StatementSyntax>().FirstOrDefault(node => !node.IsKind(SyntaxKind.Block)); 237case SyntaxKind.Block:
EditAndContinue\BreakpointSpans.cs (1)
586case SyntaxKind.Block:
EditAndContinue\SyntaxComparer.cs (6)
551case SyntaxKind.Block: 733ignoreChildFunction = childKind => childKind == SyntaxKind.Block || childKind == SyntaxKind.ArrowExpressionClause || HasLabel(childKind); 880case SyntaxKind.Block: 1093case SyntaxKind.Block: 1223if (leftStatement.Kind() == SyntaxKind.Block && rightStatement.Kind() == SyntaxKind.Block)
IntroduceVariable\CSharpIntroduceVariableService.cs (1)
69if (node.IsKind(SyntaxKind.Block))
InvertIf\CSharpInvertIfCodeRefactoringProvider.cs (3)
37=> ifNode?.Parent is (kind: SyntaxKind.Block or SyntaxKind.SwitchSection); 46=> node.Kind() is SyntaxKind.Block or SyntaxKind.SwitchSection; 49=> node.Kind() is SyntaxKind.Block or SyntaxKind.EmptyStatement;
QuickInfo\CSharpSyntacticQuickInfoProvider.cs (2)
97=> node.IsKind(SyntaxKind.Block) 98&& node.Parent?.Kind() is SyntaxKind.Block or SyntaxKind.SwitchSection or SyntaxKind.GlobalStatement;
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (3)
63case SyntaxKind.Block: 293if (statement.Statement.IsKind(SyntaxKind.Block)) 297if (elseStatement.IsKind(SyntaxKind.Block))
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
351return current.IsParentKind(SyntaxKind.Block)
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
227if (!ifStatement.Parent.IsKind(SyntaxKind.Block))
src\Analyzers\CSharp\Analyzers\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
109if (parent.IsKind(SyntaxKind.Block))
src\Analyzers\CSharp\Analyzers\RemoveUnusedParametersAndValues\CSharpRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
79!blockOperation.Syntax.IsKind(SyntaxKind.Block);
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
40Debug.Assert(enclosingBlock.Kind() is SyntaxKind.Block or SyntaxKind.SwitchSection);
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
96var ifStatementScope = ifStatement.Parent.IsKind(SyntaxKind.Block)
src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
83is not SyntaxKind.Block
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (1)
391case SyntaxKind.Block:
Structure\Providers\BlockSyntaxStructureProvider.cs (3)
133if (parentKind is SyntaxKind.Block or SyntaxKind.SwitchSection) 148=> node is StatementSyntax(kind: not SyntaxKind.Block); 217SyntaxKind.Block => BlockTypes.Statement,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (864)
IncrementalParsing\IncrementalParsingTests.cs (7)
302SyntaxKind.Block, 381SyntaxKind.Block, 425SyntaxKind.Block, 443SyntaxKind.Block, 693N(SyntaxKind.Block); 705N(SyntaxKind.Block); 708N(SyntaxKind.Block);
Parsing\AnonymousFunctionParsingTests.cs (36)
66N(SyntaxKind.Block); 93N(SyntaxKind.Block); 167N(SyntaxKind.Block); 193N(SyntaxKind.Block); 264N(SyntaxKind.Block); 291N(SyntaxKind.Block); 365N(SyntaxKind.Block); 392N(SyntaxKind.Block); 466N(SyntaxKind.Block); 493N(SyntaxKind.Block); 570N(SyntaxKind.Block); 701N(SyntaxKind.Block); 819N(SyntaxKind.Block); 1140N(SyntaxKind.Block); 1455M(SyntaxKind.Block); 1773M(SyntaxKind.Block); 1853N(SyntaxKind.Block); 2172N(SyntaxKind.Block); 2258N(SyntaxKind.Block); 2338N(SyntaxKind.Block); 2426N(SyntaxKind.Block); 2510N(SyntaxKind.Block); 2658N(SyntaxKind.Block); 2806N(SyntaxKind.Block); 2932N(SyntaxKind.Block); 3068N(SyntaxKind.Block); 3191N(SyntaxKind.Block); 3331N(SyntaxKind.Block); 3484N(SyntaxKind.Block); 3637N(SyntaxKind.Block); 3786N(SyntaxKind.Block); 3931N(SyntaxKind.Block); 4063N(SyntaxKind.Block); 4212N(SyntaxKind.Block); 4374N(SyntaxKind.Block); 4536N(SyntaxKind.Block);
Parsing\AsyncParsingTests.cs (9)
66N(SyntaxKind.Block); 106N(SyntaxKind.Block); 146N(SyntaxKind.Block); 186N(SyntaxKind.Block); 227N(SyntaxKind.Block); 269N(SyntaxKind.Block); 318N(SyntaxKind.Block); 1372N(SyntaxKind.Block); 1405N(SyntaxKind.Block);
Parsing\AsyncStreamsParsingTests.cs (12)
66N(SyntaxKind.Block); 94N(SyntaxKind.Block); 144N(SyntaxKind.Block); 157N(SyntaxKind.Block); 225N(SyntaxKind.Block); 256N(SyntaxKind.Block); 307N(SyntaxKind.Block); 326N(SyntaxKind.Block); 406N(SyntaxKind.Block); 449N(SyntaxKind.Block); 500N(SyntaxKind.Block); 535N(SyntaxKind.Block);
Parsing\AwaitParsingTests.cs (26)
60N(SyntaxKind.Block); 124N(SyntaxKind.Block); 189N(SyntaxKind.Block); 253N(SyntaxKind.Block); 267N(SyntaxKind.Block); 292N(SyntaxKind.Block); 362N(SyntaxKind.Block); 943N(SyntaxKind.Block); 968N(SyntaxKind.Block); 1028N(SyntaxKind.Block); 1057N(SyntaxKind.Block); 1116N(SyntaxKind.Block); 1140N(SyntaxKind.Block); 1364N(SyntaxKind.Block); 1444N(SyntaxKind.Block); 1523N(SyntaxKind.Block); 1614N(SyntaxKind.Block); 2048N(SyntaxKind.Block); 2354N(SyntaxKind.Block); 2378N(SyntaxKind.Block); 2410N(SyntaxKind.Block); 2450N(SyntaxKind.Block); 2495N(SyntaxKind.Block); 2542N(SyntaxKind.Block); 2588N(SyntaxKind.Block); 2634N(SyntaxKind.Block);
Parsing\CollectionExpressionParsingTests.cs (103)
360N(SyntaxKind.Block); 487N(SyntaxKind.Block); 612N(SyntaxKind.Block); 1408N(SyntaxKind.Block); 3057N(SyntaxKind.Block); 3150N(SyntaxKind.Block); 6269N(SyntaxKind.Block); 6333N(SyntaxKind.Block); 7829N(SyntaxKind.Block); 7867N(SyntaxKind.Block); 7885N(SyntaxKind.Block); 7923N(SyntaxKind.Block); 8008N(SyntaxKind.Block); 8027N(SyntaxKind.Block); 8064N(SyntaxKind.Block); 8153N(SyntaxKind.Block); 8172N(SyntaxKind.Block); 8217N(SyntaxKind.Block); 8306N(SyntaxKind.Block); 8325N(SyntaxKind.Block); 8370N(SyntaxKind.Block); 8462N(SyntaxKind.Block); 8481N(SyntaxKind.Block); 8514N(SyntaxKind.Block); 8606N(SyntaxKind.Block); 8625N(SyntaxKind.Block); 8666N(SyntaxKind.Block); 8761N(SyntaxKind.Block); 8780N(SyntaxKind.Block); 8821N(SyntaxKind.Block); 8879N(SyntaxKind.Block); 8957N(SyntaxKind.Block); 9035N(SyntaxKind.Block); 9117N(SyntaxKind.Block); 9404N(SyntaxKind.Block); 9563N(SyntaxKind.Block); 9722N(SyntaxKind.Block); 9881N(SyntaxKind.Block); 10039N(SyntaxKind.Block); 10152N(SyntaxKind.Block); 10273N(SyntaxKind.Block); 10416N(SyntaxKind.Block); 10537N(SyntaxKind.Block); 10678N(SyntaxKind.Block); 10835N(SyntaxKind.Block); 10986N(SyntaxKind.Block); 11167N(SyntaxKind.Block); 11324N(SyntaxKind.Block); 11519N(SyntaxKind.Block); 11686N(SyntaxKind.Block); 11829N(SyntaxKind.Block); 12002N(SyntaxKind.Block); 12162N(SyntaxKind.Block); 12251N(SyntaxKind.Block); 12340N(SyntaxKind.Block); 12467N(SyntaxKind.Block); 12534N(SyntaxKind.Block); 12617N(SyntaxKind.Block); 12714N(SyntaxKind.Block); 12855N(SyntaxKind.Block); 14009N(SyntaxKind.Block); 14031N(SyntaxKind.Block); 14117N(SyntaxKind.Block); 14201N(SyntaxKind.Block); 14223N(SyntaxKind.Block); 14316N(SyntaxKind.Block); 14407N(SyntaxKind.Block); 14431N(SyntaxKind.Block); 14539N(SyntaxKind.Block); 14643N(SyntaxKind.Block); 14667N(SyntaxKind.Block); 14775N(SyntaxKind.Block); 14879N(SyntaxKind.Block); 14905N(SyntaxKind.Block); 15014N(SyntaxKind.Block); 15117N(SyntaxKind.Block); 15141N(SyntaxKind.Block); 15238N(SyntaxKind.Block); 15331N(SyntaxKind.Block); 15357N(SyntaxKind.Block); 15473N(SyntaxKind.Block); 15583N(SyntaxKind.Block); 15626N(SyntaxKind.Block); 15693N(SyntaxKind.Block); 15737N(SyntaxKind.Block); 15792N(SyntaxKind.Block); 15871N(SyntaxKind.Block); 15915N(SyntaxKind.Block); 15974N(SyntaxKind.Block); 16057N(SyntaxKind.Block); 16101N(SyntaxKind.Block); 16168N(SyntaxKind.Block); 16259N(SyntaxKind.Block); 16303N(SyntaxKind.Block); 16375N(SyntaxKind.Block); 16471N(SyntaxKind.Block); 16515N(SyntaxKind.Block); 16574N(SyntaxKind.Block); 16657N(SyntaxKind.Block); 16701N(SyntaxKind.Block); 16758N(SyntaxKind.Block); 16839N(SyntaxKind.Block); 17017N(SyntaxKind.Block);
Parsing\DeclarationExpressionTests.cs (17)
86N(SyntaxKind.Block); 129N(SyntaxKind.Block); 171N(SyntaxKind.Block); 215N(SyntaxKind.Block); 265N(SyntaxKind.Block); 423N(SyntaxKind.Block); 451N(SyntaxKind.Block); 508N(SyntaxKind.Block); 565N(SyntaxKind.Block); 611N(SyntaxKind.Block); 655N(SyntaxKind.Block); 699N(SyntaxKind.Block); 766N(SyntaxKind.Block); 827N(SyntaxKind.Block); 858N(SyntaxKind.Block); 885N(SyntaxKind.Block); 924N(SyntaxKind.Block);
Parsing\DeclarationParsingTests.cs (29)
5451N(SyntaxKind.Block); 6299N(SyntaxKind.Block); 6571N(SyntaxKind.Block); 7276N(SyntaxKind.Block); 7312N(SyntaxKind.Block); 7350N(SyntaxKind.Block); 7387N(SyntaxKind.Block); 7424N(SyntaxKind.Block); 7456N(SyntaxKind.Block); 7488N(SyntaxKind.Block); 7520N(SyntaxKind.Block); 7552N(SyntaxKind.Block); 7618N(SyntaxKind.Block); 7680N(SyntaxKind.Block); 7712N(SyntaxKind.Block); 7749N(SyntaxKind.Block); 7786N(SyntaxKind.Block); 7823N(SyntaxKind.Block); 7860N(SyntaxKind.Block); 7897N(SyntaxKind.Block); 7934N(SyntaxKind.Block); 7971N(SyntaxKind.Block); 8008N(SyntaxKind.Block); 8045N(SyntaxKind.Block); 8082N(SyntaxKind.Block); 8130N(SyntaxKind.Block); 8177N(SyntaxKind.Block); 8242N(SyntaxKind.Block); 8336N(SyntaxKind.Block);
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (32)
120N(SyntaxKind.Block); 237N(SyntaxKind.Block); 302N(SyntaxKind.Block); 432N(SyntaxKind.Block); 512N(SyntaxKind.Block); 653N(SyntaxKind.Block); 733N(SyntaxKind.Block); 943N(SyntaxKind.Block); 1023N(SyntaxKind.Block); 1154N(SyntaxKind.Block); 1234N(SyntaxKind.Block); 1459N(SyntaxKind.Block); 1533N(SyntaxKind.Block); 1663N(SyntaxKind.Block); 1743N(SyntaxKind.Block); 2052N(SyntaxKind.Block); 2169N(SyntaxKind.Block); 2234N(SyntaxKind.Block); 2364N(SyntaxKind.Block); 2444N(SyntaxKind.Block); 2588N(SyntaxKind.Block); 2668N(SyntaxKind.Block); 2821N(SyntaxKind.Block); 2901N(SyntaxKind.Block); 3032N(SyntaxKind.Block); 3121N(SyntaxKind.Block); 3349N(SyntaxKind.Block); 3438N(SyntaxKind.Block); 3688N(SyntaxKind.Block); 3777N(SyntaxKind.Block); 3992N(SyntaxKind.Block); 4081N(SyntaxKind.Block);
Parsing\DeclarationScopeParsingTests.cs (29)
56N(SyntaxKind.Block); 127N(SyntaxKind.Block); 231N(SyntaxKind.Block); 386N(SyntaxKind.Block); 411N(SyntaxKind.Block); 482N(SyntaxKind.Block); 534N(SyntaxKind.Block); 583N(SyntaxKind.Block); 668N(SyntaxKind.Block); 731N(SyntaxKind.Block); 785N(SyntaxKind.Block); 825N(SyntaxKind.Block); 880N(SyntaxKind.Block); 1435N(SyntaxKind.Block); 1565N(SyntaxKind.Block); 1636N(SyntaxKind.Block); 1765N(SyntaxKind.Block); 3053N(SyntaxKind.Block); 3200N(SyntaxKind.Block); 11632N(SyntaxKind.Block); 14719N(SyntaxKind.Block); 14737N(SyntaxKind.Block); 14748N(SyntaxKind.Block); 14795N(SyntaxKind.Block); 14812N(SyntaxKind.Block); 14834N(SyntaxKind.Block); 14881N(SyntaxKind.Block); 14898N(SyntaxKind.Block); 14921N(SyntaxKind.Block);
Parsing\DeconstructionTests.cs (36)
68N(SyntaxKind.Block); 142N(SyntaxKind.Block); 220N(SyntaxKind.Block); 296N(SyntaxKind.Block); 384N(SyntaxKind.Block); 468N(SyntaxKind.Block); 543N(SyntaxKind.Block); 572N(SyntaxKind.Block); 619N(SyntaxKind.Block); 711N(SyntaxKind.Block); 801N(SyntaxKind.Block); 914N(SyntaxKind.Block); 991N(SyntaxKind.Block); 1078N(SyntaxKind.Block); 1152N(SyntaxKind.Block); 1251N(SyntaxKind.Block); 1303N(SyntaxKind.Block); 1349N(SyntaxKind.Block); 1388N(SyntaxKind.Block); 1434N(SyntaxKind.Block); 1481N(SyntaxKind.Block); 1527N(SyntaxKind.Block); 1561N(SyntaxKind.Block); 1733N(SyntaxKind.Block); 1782N(SyntaxKind.Block); 2424N(SyntaxKind.Block); 2489N(SyntaxKind.Block); 2567N(SyntaxKind.Block); 2630N(SyntaxKind.Block); 2693N(SyntaxKind.Block); 2720N(SyntaxKind.Block); 2755N(SyntaxKind.Block); 2779N(SyntaxKind.Block); 2814N(SyntaxKind.Block); 2882N(SyntaxKind.Block); 3405N(SyntaxKind.Block);
Parsing\ExpressionParsingTests.cs (22)
2078Assert.Equal(SyntaxKind.Block, lambda.Body.Kind()); 2140Assert.Equal(SyntaxKind.Block, lambda.Body.Kind()); 3182N(SyntaxKind.Block); 3282N(SyntaxKind.Block); 3372N(SyntaxKind.Block); 3446N(SyntaxKind.Block); 3528N(SyntaxKind.Block); 3607N(SyntaxKind.Block); 3680N(SyntaxKind.Block); 3765N(SyntaxKind.Block); 3856N(SyntaxKind.Block); 3946N(SyntaxKind.Block); 4037N(SyntaxKind.Block); 4124N(SyntaxKind.Block); 4218N(SyntaxKind.Block); 4315N(SyntaxKind.Block); 4420N(SyntaxKind.Block); 4521N(SyntaxKind.Block); 4612N(SyntaxKind.Block); 4705N(SyntaxKind.Block); 6320N(SyntaxKind.Block); 6387N(SyntaxKind.Block);
Parsing\FieldKeywordParsingTests.cs (16)
238N(SyntaxKind.Block); 295N(SyntaxKind.Block); 493N(SyntaxKind.Block); 565N(SyntaxKind.Block); 632N(SyntaxKind.Block); 716N(SyntaxKind.Block); 809N(SyntaxKind.Block); 1506N(SyntaxKind.Block); 1584N(SyntaxKind.Block); 1648N(SyntaxKind.Block); 1775N(SyntaxKind.Block); 1798N(SyntaxKind.Block); 1865N(SyntaxKind.Block); 1871N(SyntaxKind.Block); 1889N(SyntaxKind.Block); 2175N(SyntaxKind.Block);
Parsing\FileModifierParsingTests.cs (13)
829N(SyntaxKind.Block); 1036N(SyntaxKind.Block); 1218N(SyntaxKind.Block); 2643N(SyntaxKind.Block); 2690N(SyntaxKind.Block); 2840N(SyntaxKind.Block); 3048N(SyntaxKind.Block); 3109N(SyntaxKind.Block); 3317N(SyntaxKind.Block); 3400N(SyntaxKind.Block); 3449N(SyntaxKind.Block); 3534N(SyntaxKind.Block); 3589N(SyntaxKind.Block);
Parsing\FunctionPointerTests.cs (15)
1278M(SyntaxKind.Block); 1816N(SyntaxKind.Block); 2330N(SyntaxKind.Block); 2371N(SyntaxKind.Block); 2427N(SyntaxKind.Block); 2827N(SyntaxKind.Block); 2933N(SyntaxKind.Block); 2974N(SyntaxKind.Block); 3026N(SyntaxKind.Block); 3374N(SyntaxKind.Block); 3447N(SyntaxKind.Block); 3527N(SyntaxKind.Block); 3599N(SyntaxKind.Block); 3899N(SyntaxKind.Block); 3987N(SyntaxKind.Block);
Parsing\LambdaAttributeParsingTests.cs (47)
112N(SyntaxKind.Block); 386N(SyntaxKind.Block); 425N(SyntaxKind.Block); 468N(SyntaxKind.Block); 511N(SyntaxKind.Block); 550N(SyntaxKind.Block); 593N(SyntaxKind.Block); 749N(SyntaxKind.Block); 1178N(SyntaxKind.Block); 1332N(SyntaxKind.Block); 1416N(SyntaxKind.Block); 1504N(SyntaxKind.Block); 1539N(SyntaxKind.Block); 1591N(SyntaxKind.Block); 1637N(SyntaxKind.Block); 1684N(SyntaxKind.Block); 1740N(SyntaxKind.Block); 1816N(SyntaxKind.Block); 1874N(SyntaxKind.Block); 2775N(SyntaxKind.Block); 2871N(SyntaxKind.Block); 2945N(SyntaxKind.Block); 3072N(SyntaxKind.Block); 3143N(SyntaxKind.Block); 3216N(SyntaxKind.Block); 3256N(SyntaxKind.Block); 3302N(SyntaxKind.Block); 3381N(SyntaxKind.Block); 3420N(SyntaxKind.Block); 3498N(SyntaxKind.Block); 3747N(SyntaxKind.Block); 3810N(SyntaxKind.Block); 3865N(SyntaxKind.Block); 3889N(SyntaxKind.Block); 3941N(SyntaxKind.Block); 3994N(SyntaxKind.Block); 4054N(SyntaxKind.Block); 4095N(SyntaxKind.Block); 4113N(SyntaxKind.Block); 4171N(SyntaxKind.Block); 4208N(SyntaxKind.Block); 4245N(SyntaxKind.Block); 4320N(SyntaxKind.Block); 4380N(SyntaxKind.Block); 4389N(SyntaxKind.Block); 4454N(SyntaxKind.Block); 4509N(SyntaxKind.Block);
Parsing\LambdaParameterParsingTests.cs (33)
75N(SyntaxKind.Block); 186N(SyntaxKind.Block); 305N(SyntaxKind.Block); 431N(SyntaxKind.Block); 560N(SyntaxKind.Block); 766N(SyntaxKind.Block); 2398N(SyntaxKind.Block); 2811N(SyntaxKind.Block); 2926N(SyntaxKind.Block); 3010M(SyntaxKind.Block); 3082M(SyntaxKind.Block); 3170M(SyntaxKind.Block); 3252N(SyntaxKind.Block); 3373N(SyntaxKind.Block); 3546N(SyntaxKind.Block); 3613N(SyntaxKind.Block); 4006N(SyntaxKind.Block); 5195N(SyntaxKind.Block); 5229N(SyntaxKind.Block); 5256N(SyntaxKind.Block); 5282N(SyntaxKind.Block); 5355N(SyntaxKind.Block); 5377N(SyntaxKind.Block); 5411N(SyntaxKind.Block); 5457N(SyntaxKind.Block); 5527N(SyntaxKind.Block); 5558N(SyntaxKind.Block); 5585N(SyntaxKind.Block); 5617N(SyntaxKind.Block); 5648N(SyntaxKind.Block); 5680N(SyntaxKind.Block); 5711N(SyntaxKind.Block); 5736N(SyntaxKind.Block);
Parsing\LambdaReturnTypeParsingTests.cs (18)
103N(SyntaxKind.Block); 301M(SyntaxKind.Block); 331M(SyntaxKind.Block); 399N(SyntaxKind.Block); 2365N(SyntaxKind.Block); 2444N(SyntaxKind.Block); 4056N(SyntaxKind.Block); 4092N(SyntaxKind.Block); 4157N(SyntaxKind.Block); 4201N(SyntaxKind.Block); 4257N(SyntaxKind.Block); 4442N(SyntaxKind.Block); 4836N(SyntaxKind.Block); 4867N(SyntaxKind.Block); 4902N(SyntaxKind.Block); 4938N(SyntaxKind.Block); 5503N(SyntaxKind.Block); 5656N(SyntaxKind.Block);
Parsing\LocalFunctionParsingTests.cs (47)
127N(SyntaxKind.Block); 165N(SyntaxKind.Block); 206N(SyntaxKind.Block); 251N(SyntaxKind.Block); 289N(SyntaxKind.Block); 321N(SyntaxKind.Block); 393N(SyntaxKind.Block); 420N(SyntaxKind.Block); 455N(SyntaxKind.Block); 531N(SyntaxKind.Block); 587N(SyntaxKind.Block); 656N(SyntaxKind.Block); 747N(SyntaxKind.Block); 833N(SyntaxKind.Block); 849N(SyntaxKind.Block); 937N(SyntaxKind.Block); 1017N(SyntaxKind.Block); 1111N(SyntaxKind.Block); 1424N(SyntaxKind.Block); 1473N(SyntaxKind.Block); 1522N(SyntaxKind.Block); 1574N(SyntaxKind.Block); 1624N(SyntaxKind.Block); 1763N(SyntaxKind.Block); 1777N(SyntaxKind.Block); 1878N(SyntaxKind.Block); 1893N(SyntaxKind.Block); 1911N(SyntaxKind.Block); 2063N(SyntaxKind.Block); 2078N(SyntaxKind.Block); 2097N(SyntaxKind.Block); 2159N(SyntaxKind.Block); 2174N(SyntaxKind.Block); 2242N(SyntaxKind.Block); 2258N(SyntaxKind.Block); 2332N(SyntaxKind.Block); 2349N(SyntaxKind.Block); 2429N(SyntaxKind.Block); 2447N(SyntaxKind.Block); 2599N(SyntaxKind.Block); 2630N(SyntaxKind.Block); 2689N(SyntaxKind.Block); 2780N(SyntaxKind.Block); 2844N(SyntaxKind.Block); 2923N(SyntaxKind.Block); 2984N(SyntaxKind.Block); 3111N(SyntaxKind.Block);
Parsing\MemberDeclarationParsingTests.cs (52)
186N(SyntaxKind.Block); 285N(SyntaxKind.Block); 312N(SyntaxKind.Block); 1109N(SyntaxKind.Block); 1497N(SyntaxKind.Block); 1523N(SyntaxKind.Block); 1545N(SyntaxKind.Block); 1592N(SyntaxKind.Block); 1630N(SyntaxKind.Block); 1699N(SyntaxKind.Block); 8139N(SyntaxKind.Block); 9218N(SyntaxKind.Block); 9385N(SyntaxKind.Block); 9425N(SyntaxKind.Block); 10208N(SyntaxKind.Block); 10257N(SyntaxKind.Block); 10293N(SyntaxKind.Block); 10326N(SyntaxKind.Block); 10359N(SyntaxKind.Block); 10538N(SyntaxKind.Block); 10623N(SyntaxKind.Block); 10731N(SyntaxKind.Block); 10856N(SyntaxKind.Block); 10896N(SyntaxKind.Block); 11031N(SyntaxKind.Block); 11071N(SyntaxKind.Block); 11205N(SyntaxKind.Block); 11245N(SyntaxKind.Block); 11374N(SyntaxKind.Block); 11500N(SyntaxKind.Block); 11652N(SyntaxKind.Block); 11667N(SyntaxKind.Block); 11720N(SyntaxKind.Block); 11729N(SyntaxKind.Block); 11824N(SyntaxKind.Block); 11949N(SyntaxKind.Block); 12011N(SyntaxKind.Block); 12072N(SyntaxKind.Block); 12136N(SyntaxKind.Block); 12206N(SyntaxKind.Block); 12276N(SyntaxKind.Block); 12367N(SyntaxKind.Block); 12393N(SyntaxKind.Block); 12480N(SyntaxKind.Block); 15982N(SyntaxKind.Block); 16079N(SyntaxKind.Block); 16187N(SyntaxKind.Block); 16340N(SyntaxKind.Block); 16518N(SyntaxKind.Block); 16630N(SyntaxKind.Block); 16753N(SyntaxKind.Block); 16934N(SyntaxKind.Block);
Parsing\NameParsingTests.cs (5)
868N(SyntaxKind.Block); 966N(SyntaxKind.Block); 1088N(SyntaxKind.Block); 1213N(SyntaxKind.Block); 1363N(SyntaxKind.Block);
Parsing\NullableParsingTests.cs (1)
1202N(SyntaxKind.Block);
Parsing\ParserRegressionTests.cs (6)
284N(SyntaxKind.Block); 377N(SyntaxKind.Block); 511N(SyntaxKind.Block); 601N(SyntaxKind.Block); 691N(SyntaxKind.Block); 779N(SyntaxKind.Block);
Parsing\ParsingErrorRecoveryTests.cs (12)
108N(SyntaxKind.Block); 127N(SyntaxKind.Block); 149N(SyntaxKind.Block); 179N(SyntaxKind.Block); 200N(SyntaxKind.Block); 222N(SyntaxKind.Block); 5213N(SyntaxKind.Block); 5325N(SyntaxKind.Block); 5472N(SyntaxKind.Block); 5585N(SyntaxKind.Block); 5722N(SyntaxKind.Block); 7287Assert.Equal(SyntaxKind.Block, methodBody.Kind());
Parsing\PatternParsingTests.cs (15)
2869N(SyntaxKind.Block); 3105N(SyntaxKind.Block); 3165N(SyntaxKind.Block); 3230N(SyntaxKind.Block); 3297N(SyntaxKind.Block); 3355N(SyntaxKind.Block); 3415N(SyntaxKind.Block); 3480N(SyntaxKind.Block); 3547N(SyntaxKind.Block); 3621N(SyntaxKind.Block); 3697N(SyntaxKind.Block); 3778N(SyntaxKind.Block); 3861N(SyntaxKind.Block); 10291N(SyntaxKind.Block); 10319N(SyntaxKind.Block);
Parsing\RecordParsing.cs (1)
1394N(SyntaxKind.Block);
Parsing\RefFieldParsingTests.cs (1)
682N(SyntaxKind.Block);
Parsing\ScriptParsingTests.cs (21)
151N(SyntaxKind.Block); 497N(SyntaxKind.Block); 1184N(SyntaxKind.Block); 1213N(SyntaxKind.Block); 1273N(SyntaxKind.Block); 1367N(SyntaxKind.Block); 1428N(SyntaxKind.Block); 1470N(SyntaxKind.Block); 2173N(SyntaxKind.Block); 2192N(SyntaxKind.Block); 2223N(SyntaxKind.Block); 2251N(SyntaxKind.Block); 2348N(SyntaxKind.Block); 2913N(SyntaxKind.Block); 3285N(SyntaxKind.Block); 6193N(SyntaxKind.Block); 6207N(SyntaxKind.Block); 9274N(SyntaxKind.Block); 9331N(SyntaxKind.Block); 9388N(SyntaxKind.Block); 9446N(SyntaxKind.Block);
Parsing\StatementAttributeParsingTests.cs (125)
50N(SyntaxKind.Block); 53N(SyntaxKind.Block); 116N(SyntaxKind.Block); 183N(SyntaxKind.Block); 271N(SyntaxKind.Block); 366N(SyntaxKind.Block); 378N(SyntaxKind.Block); 451N(SyntaxKind.Block); 463N(SyntaxKind.Block); 532N(SyntaxKind.Block); 598N(SyntaxKind.Block); 667N(SyntaxKind.Block); 741N(SyntaxKind.Block); 818N(SyntaxKind.Block); 893N(SyntaxKind.Block); 968N(SyntaxKind.Block); 986N(SyntaxKind.Block); 1046N(SyntaxKind.Block); 1068N(SyntaxKind.Block); 1140N(SyntaxKind.Block); 1170N(SyntaxKind.Block); 1258N(SyntaxKind.Block); 1304N(SyntaxKind.Block); 1356N(SyntaxKind.Block); 1380N(SyntaxKind.Block); 1432N(SyntaxKind.Block); 1457N(SyntaxKind.Block); 1519N(SyntaxKind.Block); 1544N(SyntaxKind.Block); 1623N(SyntaxKind.Block); 1666N(SyntaxKind.Block); 1721N(SyntaxKind.Block); 1739N(SyntaxKind.Block); 1791N(SyntaxKind.Block); 1797N(SyntaxKind.Block); 1861N(SyntaxKind.Block); 1879N(SyntaxKind.Block); 1931N(SyntaxKind.Block); 1949N(SyntaxKind.Block); 2016N(SyntaxKind.Block); 2047N(SyntaxKind.Block); 2113N(SyntaxKind.Block); 2137N(SyntaxKind.Block); 2189N(SyntaxKind.Block); 2213N(SyntaxKind.Block); 2265N(SyntaxKind.Block); 2345N(SyntaxKind.Block); 2442N(SyntaxKind.Block); 2570N(SyntaxKind.Block); 2674N(SyntaxKind.Block); 2692N(SyntaxKind.Block); 2700N(SyntaxKind.Block); 2753N(SyntaxKind.Block); 2759N(SyntaxKind.Block); 2779N(SyntaxKind.Block); 2838N(SyntaxKind.Block); 2844N(SyntaxKind.Block); 2852M(SyntaxKind.Block); 2874M(SyntaxKind.Block); 2882N(SyntaxKind.Block); 2941N(SyntaxKind.Block); 2947N(SyntaxKind.Block); 2955N(SyntaxKind.Block); 3026N(SyntaxKind.Block); 3032N(SyntaxKind.Block); 3040M(SyntaxKind.Block); 3062M(SyntaxKind.Block); 3070N(SyntaxKind.Block); 3129N(SyntaxKind.Block); 3135N(SyntaxKind.Block); 3143N(SyntaxKind.Block); 3208N(SyntaxKind.Block); 3287N(SyntaxKind.Block); 3307N(SyntaxKind.Block); 3370N(SyntaxKind.Block); 3390M(SyntaxKind.Block); 3450N(SyntaxKind.Block); 3475N(SyntaxKind.Block); 3532N(SyntaxKind.Block); 3557N(SyntaxKind.Block); 3614N(SyntaxKind.Block); 3647N(SyntaxKind.Block); 3704N(SyntaxKind.Block); 3728N(SyntaxKind.Block); 3785N(SyntaxKind.Block); 3859N(SyntaxKind.Block); 3952N(SyntaxKind.Block); 4043N(SyntaxKind.Block); 4128N(SyntaxKind.Block); 4205N(SyntaxKind.Block); 4288N(SyntaxKind.Block); 4372N(SyntaxKind.Block); 4460N(SyntaxKind.Block); 4549N(SyntaxKind.Block); 4638N(SyntaxKind.Block); 4716N(SyntaxKind.Block); 4799N(SyntaxKind.Block); 4894N(SyntaxKind.Block); 4985N(SyntaxKind.Block); 5062N(SyntaxKind.Block); 5142N(SyntaxKind.Block); 5222N(SyntaxKind.Block); 5300N(SyntaxKind.Block); 5386N(SyntaxKind.Block); 5471N(SyntaxKind.Block); 5556N(SyntaxKind.Block); 5665N(SyntaxKind.Block); 5774N(SyntaxKind.Block); 5880N(SyntaxKind.Block); 5979N(SyntaxKind.Block); 6075N(SyntaxKind.Block); 6150N(SyntaxKind.Block); 6236N(SyntaxKind.Block); 6320N(SyntaxKind.Block); 6398N(SyntaxKind.Block); 6477N(SyntaxKind.Block); 6564N(SyntaxKind.Block); 6669N(SyntaxKind.Block); 6808N(SyntaxKind.Block); 6902N(SyntaxKind.Block); 6988N(SyntaxKind.Block); 7071N(SyntaxKind.Block); 7178N(SyntaxKind.Block); 7279N(SyntaxKind.Block); 7388N(SyntaxKind.Block);
Parsing\StatementParsingTests.cs (22)
887Assert.Equal(SyntaxKind.Block, fs.Statement.Kind()); 917Assert.Equal(SyntaxKind.Block, fs.Statement.Kind()); 945Assert.Equal(SyntaxKind.Block, fs.Statement.Kind()); 1486Assert.Equal(SyntaxKind.Block, ws.Statement.Kind()); 1506Assert.Equal(SyntaxKind.Block, ds.Statement.Kind()); 1719N(SyntaxKind.Block); 2717N(SyntaxKind.Block); 3573N(SyntaxKind.Block); 3634N(SyntaxKind.Block); 3686N(SyntaxKind.Block); 3709N(SyntaxKind.Block); 3736N(SyntaxKind.Block); 3772N(SyntaxKind.Block); 3784N(SyntaxKind.Block); 3792N(SyntaxKind.Block); 3819N(SyntaxKind.Block); 3884N(SyntaxKind.Block); 4321N(SyntaxKind.Block); 4458N(SyntaxKind.Block); 4622N(SyntaxKind.Block); 5844N(SyntaxKind.Block); 5938N(SyntaxKind.Block);
Parsing\SwitchExpressionParsingTests.cs (2)
321N(SyntaxKind.Block); 407N(SyntaxKind.Block);
Parsing\TopLevelStatementsParsingTests.cs (16)
37N(SyntaxKind.Block); 302N(SyntaxKind.Block); 509N(SyntaxKind.Block); 759N(SyntaxKind.Block); 1032N(SyntaxKind.Block); 1062N(SyntaxKind.Block); 1073N(SyntaxKind.Block); 1276N(SyntaxKind.Block); 1299N(SyntaxKind.Block); 1422N(SyntaxKind.Block); 1433N(SyntaxKind.Block); 1562N(SyntaxKind.Block); 2481M(SyntaxKind.Block); 2566N(SyntaxKind.Block); 2605N(SyntaxKind.Block); 2656N(SyntaxKind.Block);
Parsing\TypeArgumentListParsingTests.cs (21)
58N(SyntaxKind.Block); 174N(SyntaxKind.Block); 302N(SyntaxKind.Block); 435N(SyntaxKind.Block); 583N(SyntaxKind.Block); 730N(SyntaxKind.Block); 1043N(SyntaxKind.Block); 1182N(SyntaxKind.Block); 1324N(SyntaxKind.Block); 1457N(SyntaxKind.Block); 1577N(SyntaxKind.Block); 1681N(SyntaxKind.Block); 1782N(SyntaxKind.Block); 1904N(SyntaxKind.Block); 2037N(SyntaxKind.Block); 2171N(SyntaxKind.Block); 2302N(SyntaxKind.Block); 2403N(SyntaxKind.Block); 2512N(SyntaxKind.Block); 2614N(SyntaxKind.Block); 2732N(SyntaxKind.Block);
Parsing\UsingDirectiveParsingTests.cs (11)
2150N(SyntaxKind.Block); 2225N(SyntaxKind.Block); 2302N(SyntaxKind.Block); 2378N(SyntaxKind.Block); 2446N(SyntaxKind.Block); 2529N(SyntaxKind.Block); 2632N(SyntaxKind.Block); 2762N(SyntaxKind.Block); 2886N(SyntaxKind.Block); 3004N(SyntaxKind.Block); 3102N(SyntaxKind.Block);
Parsing\ValueTupleTests.cs (6)
71N(SyntaxKind.Block); 210N(SyntaxKind.Block); 309N(SyntaxKind.Block); 415N(SyntaxKind.Block); 486N(SyntaxKind.Block); 593N(SyntaxKind.Block);
Microsoft.CodeAnalysis.CSharp.Workspaces (18)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (2)
129if (node.Kind() != SyntaxKind.Block) 139if (node.Kind() != SyntaxKind.Block)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (1)
100var firstStatementIsBlock = section.Statements is [(kind: SyntaxKind.Block), ..];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
265if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.Block)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\WrappingFormattingRule.cs (3)
74if (embeddedStatement.IsKind(SyntaxKind.Block)) 103if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.Block) 116if (!(node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.Block))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Indentation\CSharpSmartTokenFormatter.cs (1)
74endToken.Parent.IsKind(SyntaxKind.Block) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpBlockFacts.cs (2)
23=> node.IsKind(SyntaxKind.Block); 26=> node is (kind: SyntaxKind.Block or SyntaxKind.SwitchSection or SyntaxKind.CompilationUnit);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (2)
349(previousToken.Parent.IsKind(SyntaxKind.Block) || 440if (token.Parent.Kind() is SyntaxKind.Block or
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
96=> node is StatementSyntax(kind: not SyntaxKind.Block) or TypeSyntax or CrefSyntax ||
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (3)
115case SyntaxKind.OpenBraceToken when token.Parent.IsKind(SyntaxKind.Block): 124if (token.Parent.IsKind(SyntaxKind.Block)) 590targetToken.Parent.IsKind(SyntaxKind.Block) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
207token.Parent.IsKind(SyntaxKind.Block) && 491token.Parent.IsKind(SyntaxKind.Block) &&
Microsoft.Interop.SourceGeneration (3)
SyntaxExtensions.cs (3)
24if (fixedStatement.Statement.IsKind(SyntaxKind.Block)) 37if (childStatement.IsKind(SyntaxKind.Block)) 66if (statement.IsKind(SyntaxKind.Block))
Microsoft.VisualStudio.LanguageServices.CSharp (4)
CodeModel\MethodXml\MethodXmlBuilder.cs (1)
69case SyntaxKind.Block:
LanguageService\CSharpDebuggerIntelliSenseContext.cs (2)
74token.Parent.IsKind(SyntaxKind.Block) && 81token.Parent.IsKind(SyntaxKind.Block))
Utilities\BlankLineInGeneratedMethodFormattingRule.cs (1)
27if (currentToken.Parent.Kind() == SyntaxKind.Block &&