757 references to Block
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder_Statements.cs (2)
50else if (node.Kind() != SyntaxKind.Block) 62case SyntaxKind.Block:
Binder\LocalBinderFactory.cs (2)
93else if (syntax.Kind() != SyntaxKind.Block && (statement = syntax as StatementSyntax) != null) 347if (body.Kind() == SyntaxKind.Block)
BoundTree\UnboundLambda.cs (1)
1480private bool IsExpressionLambda { get { return Body.Kind() != SyntaxKind.Block; } }
CodeGen\EmitStatement.cs (2)
822return _ilEmitStyle == ILEmitStyle.Debug && _method.GenerateDebugInfo && _methodBodySyntaxOpt?.IsKind(SyntaxKind.Block) == true || 833(boundReturnStatement.Syntax.IsKind(SyntaxKind.Block) || _method?.IsImplicitConstructor == true) &&
Compilation\SyntaxTreeSemanticModel.cs (1)
1110case SyntaxKind.Block:
Compiler\MethodBodySynthesizer.cs (2)
527Debug.Assert(syntax.Kind() == SyntaxKind.Block || syntax.Kind() == SyntaxKind.ArrowExpressionClause); 547if (syntax.Kind() == SyntaxKind.Block)
FlowAnalysis\FlowAnalysisPass.cs (1)
175syntax.IsKind(SyntaxKind.Block) ||
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
557else if (lambdaSyntax.Body.Kind() == SyntaxKind.Block) 575else if (lambdaSyntax.Body.Kind() == SyntaxKind.Block)
Lowering\Instrumentation\DebugInfoInjector.cs (2)
131if (original.WasCompilerGenerated && original.Syntax.Kind() == SyntaxKind.Block) 361if (original.WasCompilerGenerated && original.ExpressionOpt == null && original.Syntax.Kind() == SyntaxKind.Block)
Lowering\Instrumentation\Instrumenter.cs (1)
49Debug.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)
8063this.CurrentNodeKind == SyntaxKind.Block && 8104if (this.IsIncrementalAndFactoryContextMatches && this.CurrentNodeKind == SyntaxKind.Block && attributes.Count == 0)
Syntax\CSharpSyntaxNode.cs (1)
540if (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)
130case SyntaxKind.Block:
Syntax\SyntaxExtensions.cs (1)
254case SyntaxKind.Block:
Microsoft.CodeAnalysis.CSharp.CodeStyle (22)
CSharpAddBracesDiagnosticAnalyzer.cs (3)
62case SyntaxKind.Block: 291if (statement.Statement.IsKind(SyntaxKind.Block)) 295if (elseStatement.IsKind(SyntaxKind.Block))
CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
40Debug.Assert(enclosingBlock.Kind() is SyntaxKind.Block or SyntaxKind.SwitchSection);
CSharpBlockFacts.cs (2)
23=> node.IsKind(SyntaxKind.Block); 26=> node is (kind: SyntaxKind.Block or SyntaxKind.SwitchSection or SyntaxKind.CompilationUnit);
CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
312return current.IsParentKind(SyntaxKind.Block)
CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
86var ifStatementScope = ifStatement.Parent.IsKind(SyntaxKind.Block)
CSharpRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
84!blockOperation.Syntax.IsKind(SyntaxKind.Block);
CSharpSmartTokenFormatter.cs (1)
74endToken.Parent.IsKind(SyntaxKind.Block) &&
EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
104if (parent.IsKind(SyntaxKind.Block))
FormattingHelpers.cs (2)
129if (node.Kind() != SyntaxKind.Block) 139if (node.Kind() != SyntaxKind.Block)
FormattingRangeHelper.cs (2)
349(previousToken.Parent.IsKind(SyntaxKind.Block) || 440if (token.Parent.Kind() is SyntaxKind.Block or
IndentBlockFormattingRule.cs (1)
100var firstStatementIsBlock = section.Statements is [(kind: SyntaxKind.Block), ..];
InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
225if (!ifStatement.Parent.IsKind(SyntaxKind.Block))
SpeculationAnalyzer.cs (1)
84return (node is StatementSyntax && node.Kind() != SyntaxKind.Block) ||
SuppressFormattingRule.cs (1)
265if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.Block)
WrappingFormattingRule.cs (3)
73if (embeddedStatement.IsKind(SyntaxKind.Block)) 102if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.Block) 115if (!(node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.Block))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
84if (!statement.IsParentKind(SyntaxKind.Block)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (3)
112case SyntaxKind.OpenBraceToken when token.Parent.IsKind(SyntaxKind.Block): 121if (token.Parent.IsKind(SyntaxKind.Block)) 586targetToken.Parent.IsKind(SyntaxKind.Block) &&
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
207token.Parent.IsKind(SyntaxKind.Block) && 491token.Parent.IsKind(SyntaxKind.Block) &&
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (1)
94&& endToken.Parent.IsKind(SyntaxKind.Block)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (1)
7873SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapByKind(f1, SyntaxKind.Block), preserveLocalVariables: true)));
Microsoft.CodeAnalysis.CSharp.Features (44)
ChangeSignature\CSharpChangeSignatureService.cs (1)
192current.Kind() == SyntaxKind.Block || current.Kind() == SyntaxKind.ArrowExpressionClause)
Completion\KeywordRecommenders\WhileKeywordRecommender.cs (1)
41token.Parent.IsKind(SyntaxKind.Block) &&
ConvertForEachToFor\CSharpConvertForEachToForCodeRefactoringProvider.cs (1)
49return foreachInfo.ForEachStatement.Parent.IsKind(SyntaxKind.Block);
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (1)
59case SyntaxKind.Block:
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
100if (!documentUpdateInfo.Source.IsParentKind(SyntaxKind.Block) &&
CSharpAddBracesDiagnosticAnalyzer.cs (3)
62case SyntaxKind.Block: 291if (statement.Statement.IsKind(SyntaxKind.Block)) 295if (elseStatement.IsKind(SyntaxKind.Block))
CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
40Debug.Assert(enclosingBlock.Kind() is SyntaxKind.Block or SyntaxKind.SwitchSection);
CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
312return current.IsParentKind(SyntaxKind.Block)
CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
86var ifStatementScope = ifStatement.Parent.IsKind(SyntaxKind.Block)
CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
84if (!statement.IsParentKind(SyntaxKind.Block)
CSharpRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
84!blockOperation.Syntax.IsKind(SyntaxKind.Block);
Debugging\CSharpProximityExpressionsService.Worker.cs (2)
226var statementAncestor = _parentStatement.Ancestors().OfType<StatementSyntax>().FirstOrDefault(node => !node.IsKind(SyntaxKind.Block)); 243case SyntaxKind.Block:
EditAndContinue\BreakpointSpans.cs (1)
405case SyntaxKind.Block:
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (10)
185Debug.Assert(memberBody.IsKind(SyntaxKind.Block) || memberBody is ExpressionSyntax); 384case SyntaxKind.Block: 616RoslynDebug.Assert(oldBody.IsKind(SyntaxKind.Block)); 617RoslynDebug.Assert(newBody.IsKind(SyntaxKind.Block)); 762if (oldStatement == oldBody && !newBody.IsKind(SyntaxKind.Block)) 852case SyntaxKind.Block: 933case SyntaxKind.Block: 989case SyntaxKind.Block: 1013case SyntaxKind.Block: 1729case SyntaxKind.Block:
EditAndContinue\SyntaxComparer.cs (6)
550case SyntaxKind.Block: 724ignoreChildFunction = childKind => childKind == SyntaxKind.Block || childKind == SyntaxKind.ArrowExpressionClause || HasLabel(childKind); 871case SyntaxKind.Block: 1084case SyntaxKind.Block: 1214if (leftStatement.Kind() == SyntaxKind.Block && rightStatement.Kind() == SyntaxKind.Block)
EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
104if (parent.IsKind(SyntaxKind.Block))
IntroduceVariable\CSharpIntroduceVariableService.cs (1)
69if (node.IsKind(SyntaxKind.Block))
InvertIf\CSharpInvertIfCodeRefactoringProvider.cs (3)
38=> ifNode?.Parent is (kind: SyntaxKind.Block or SyntaxKind.SwitchSection); 47=> node.Kind() is SyntaxKind.Block or SyntaxKind.SwitchSection; 50=> node.Kind() is SyntaxKind.Block or SyntaxKind.EmptyStatement;
InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
225if (!ifStatement.Parent.IsKind(SyntaxKind.Block))
LambdaUtilities.cs (1)
391case SyntaxKind.Block:
QuickInfo\CSharpSyntacticQuickInfoProvider.cs (2)
100return node.IsKind(SyntaxKind.Block) 101&& (parent.IsKind(SyntaxKind.Block)
Structure\Providers\BlockSyntaxStructureProvider.cs (3)
67if (parentKind is SyntaxKind.Block or SyntaxKind.SwitchSection) 80=> node is StatementSyntax && !node.IsKind(SyntaxKind.Block); 154case SyntaxKind.Block: return BlockTypes.Statement;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (635)
IncrementalParsing\IncrementalParsingTests.cs (4)
300SyntaxKind.Block, 379SyntaxKind.Block, 423SyntaxKind.Block, 441SyntaxKind.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); 2184N(SyntaxKind.Block); 2270N(SyntaxKind.Block); 2350N(SyntaxKind.Block); 2438N(SyntaxKind.Block); 2522N(SyntaxKind.Block); 2670N(SyntaxKind.Block); 2818N(SyntaxKind.Block); 2944N(SyntaxKind.Block); 3080N(SyntaxKind.Block); 3203N(SyntaxKind.Block); 3343N(SyntaxKind.Block); 3496N(SyntaxKind.Block); 3649N(SyntaxKind.Block); 3798N(SyntaxKind.Block); 3943N(SyntaxKind.Block); 4075N(SyntaxKind.Block); 4224N(SyntaxKind.Block); 4386N(SyntaxKind.Block); 4548N(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 (22)
59N(SyntaxKind.Block); 123N(SyntaxKind.Block); 188N(SyntaxKind.Block); 252N(SyntaxKind.Block); 266N(SyntaxKind.Block); 291N(SyntaxKind.Block); 361N(SyntaxKind.Block); 942N(SyntaxKind.Block); 967N(SyntaxKind.Block); 1027N(SyntaxKind.Block); 1056N(SyntaxKind.Block); 1115N(SyntaxKind.Block); 1139N(SyntaxKind.Block); 1355N(SyntaxKind.Block); 1661N(SyntaxKind.Block); 1685N(SyntaxKind.Block); 1717N(SyntaxKind.Block); 1757N(SyntaxKind.Block); 1802N(SyntaxKind.Block); 1849N(SyntaxKind.Block); 1895N(SyntaxKind.Block); 1941N(SyntaxKind.Block);
Parsing\DeclarationExpressionTests.cs (16)
85N(SyntaxKind.Block); 128N(SyntaxKind.Block); 178N(SyntaxKind.Block); 228N(SyntaxKind.Block); 386N(SyntaxKind.Block); 414N(SyntaxKind.Block); 471N(SyntaxKind.Block); 528N(SyntaxKind.Block); 574N(SyntaxKind.Block); 618N(SyntaxKind.Block); 662N(SyntaxKind.Block); 729N(SyntaxKind.Block); 790N(SyntaxKind.Block); 821N(SyntaxKind.Block); 848N(SyntaxKind.Block); 887N(SyntaxKind.Block);
Parsing\DeclarationParsingTests.cs (29)
5451N(SyntaxKind.Block); 6299N(SyntaxKind.Block); 6571N(SyntaxKind.Block); 7276N(SyntaxKind.Block); 7312N(SyntaxKind.Block); 7350N(SyntaxKind.Block); 7394N(SyntaxKind.Block); 7437N(SyntaxKind.Block); 7468N(SyntaxKind.Block); 7500N(SyntaxKind.Block); 7532N(SyntaxKind.Block); 7564N(SyntaxKind.Block); 7637N(SyntaxKind.Block); 7699N(SyntaxKind.Block); 7731N(SyntaxKind.Block); 7775N(SyntaxKind.Block); 7818N(SyntaxKind.Block); 7861N(SyntaxKind.Block); 7904N(SyntaxKind.Block); 7947N(SyntaxKind.Block); 7991N(SyntaxKind.Block); 8034N(SyntaxKind.Block); 8078N(SyntaxKind.Block); 8122N(SyntaxKind.Block); 8177N(SyntaxKind.Block); 8225N(SyntaxKind.Block); 8272N(SyntaxKind.Block); 8337N(SyntaxKind.Block); 8431N(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); 844N(SyntaxKind.Block); 899N(SyntaxKind.Block); 1454N(SyntaxKind.Block); 1584N(SyntaxKind.Block); 1655N(SyntaxKind.Block); 1784N(SyntaxKind.Block); 3072N(SyntaxKind.Block); 3219N(SyntaxKind.Block); 11966N(SyntaxKind.Block); 15130N(SyntaxKind.Block); 15148N(SyntaxKind.Block); 15159N(SyntaxKind.Block); 15207N(SyntaxKind.Block); 15224N(SyntaxKind.Block); 15246N(SyntaxKind.Block); 15294N(SyntaxKind.Block); 15311N(SyntaxKind.Block); 15334N(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); 6341N(SyntaxKind.Block); 6408N(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 (29)
107N(SyntaxKind.Block); 401N(SyntaxKind.Block); 440N(SyntaxKind.Block); 483N(SyntaxKind.Block); 526N(SyntaxKind.Block); 565N(SyntaxKind.Block); 608N(SyntaxKind.Block); 764N(SyntaxKind.Block); 1193N(SyntaxKind.Block); 1367N(SyntaxKind.Block); 1461N(SyntaxKind.Block); 1596N(SyntaxKind.Block); 1642N(SyntaxKind.Block); 1689N(SyntaxKind.Block); 1745N(SyntaxKind.Block); 1821N(SyntaxKind.Block); 1879N(SyntaxKind.Block); 1989N(SyntaxKind.Block); 2763N(SyntaxKind.Block); 2859N(SyntaxKind.Block); 2933N(SyntaxKind.Block); 3060N(SyntaxKind.Block); 3131N(SyntaxKind.Block); 3204N(SyntaxKind.Block); 3244N(SyntaxKind.Block); 3290N(SyntaxKind.Block); 3369N(SyntaxKind.Block); 3408N(SyntaxKind.Block); 3486N(SyntaxKind.Block);
Parsing\LambdaParameterParsingTests.cs (33)
75N(SyntaxKind.Block); 186N(SyntaxKind.Block); 305N(SyntaxKind.Block); 431N(SyntaxKind.Block); 560N(SyntaxKind.Block); 766N(SyntaxKind.Block); 2310N(SyntaxKind.Block); 2723N(SyntaxKind.Block); 2838N(SyntaxKind.Block); 2922M(SyntaxKind.Block); 2994M(SyntaxKind.Block); 3082M(SyntaxKind.Block); 3164N(SyntaxKind.Block); 3285N(SyntaxKind.Block); 3458N(SyntaxKind.Block); 3525N(SyntaxKind.Block); 3918N(SyntaxKind.Block); 5112N(SyntaxKind.Block); 5146N(SyntaxKind.Block); 5173N(SyntaxKind.Block); 5199N(SyntaxKind.Block); 5282N(SyntaxKind.Block); 5304N(SyntaxKind.Block); 5338N(SyntaxKind.Block); 5384N(SyntaxKind.Block); 5454N(SyntaxKind.Block); 5485N(SyntaxKind.Block); 5512N(SyntaxKind.Block); 5544N(SyntaxKind.Block); 5575N(SyntaxKind.Block); 5607N(SyntaxKind.Block); 5638N(SyntaxKind.Block); 5663N(SyntaxKind.Block);
Parsing\LambdaReturnTypeParsingTests.cs (18)
103N(SyntaxKind.Block); 301M(SyntaxKind.Block); 331M(SyntaxKind.Block); 399N(SyntaxKind.Block); 2292N(SyntaxKind.Block); 2371N(SyntaxKind.Block); 3983N(SyntaxKind.Block); 4019N(SyntaxKind.Block); 4084N(SyntaxKind.Block); 4128N(SyntaxKind.Block); 4184N(SyntaxKind.Block); 4369N(SyntaxKind.Block); 4763N(SyntaxKind.Block); 4794N(SyntaxKind.Block); 4829N(SyntaxKind.Block); 4865N(SyntaxKind.Block); 5430N(SyntaxKind.Block); 5583N(SyntaxKind.Block);
Parsing\LocalFunctionParsingTests.cs (41)
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);
Parsing\MemberDeclarationParsingTests.cs (19)
186N(SyntaxKind.Block); 285N(SyntaxKind.Block); 312N(SyntaxKind.Block); 1115N(SyntaxKind.Block); 1503N(SyntaxKind.Block); 1529N(SyntaxKind.Block); 1551N(SyntaxKind.Block); 1598N(SyntaxKind.Block); 1636N(SyntaxKind.Block); 1705N(SyntaxKind.Block); 8149N(SyntaxKind.Block); 9229N(SyntaxKind.Block); 9396N(SyntaxKind.Block); 9436N(SyntaxKind.Block); 10219N(SyntaxKind.Block); 10268N(SyntaxKind.Block); 10304N(SyntaxKind.Block); 10337N(SyntaxKind.Block); 10370N(SyntaxKind.Block);
Parsing\NameParsingTests.cs (5)
870N(SyntaxKind.Block); 968N(SyntaxKind.Block); 1090N(SyntaxKind.Block); 1215N(SyntaxKind.Block); 1365N(SyntaxKind.Block);
Parsing\NullableParsingTests.cs (1)
1200N(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 (1)
6483Assert.Equal(SyntaxKind.Block, methodBody.Kind());
Parsing\PatternParsingTests.cs (15)
2908N(SyntaxKind.Block); 3144N(SyntaxKind.Block); 3204N(SyntaxKind.Block); 3269N(SyntaxKind.Block); 3336N(SyntaxKind.Block); 3394N(SyntaxKind.Block); 3454N(SyntaxKind.Block); 3519N(SyntaxKind.Block); 3586N(SyntaxKind.Block); 3660N(SyntaxKind.Block); 3736N(SyntaxKind.Block); 3817N(SyntaxKind.Block); 3900N(SyntaxKind.Block); 10330N(SyntaxKind.Block); 10358N(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); 9278N(SyntaxKind.Block); 9335N(SyntaxKind.Block); 9392N(SyntaxKind.Block); 9450N(SyntaxKind.Block);
Parsing\StatementAttributeParsingTests.cs (125)
49N(SyntaxKind.Block); 52N(SyntaxKind.Block); 115N(SyntaxKind.Block); 182N(SyntaxKind.Block); 270N(SyntaxKind.Block); 365N(SyntaxKind.Block); 377N(SyntaxKind.Block); 450N(SyntaxKind.Block); 462N(SyntaxKind.Block); 531N(SyntaxKind.Block); 597N(SyntaxKind.Block); 666N(SyntaxKind.Block); 740N(SyntaxKind.Block); 817N(SyntaxKind.Block); 892N(SyntaxKind.Block); 967N(SyntaxKind.Block); 985N(SyntaxKind.Block); 1045N(SyntaxKind.Block); 1067N(SyntaxKind.Block); 1139N(SyntaxKind.Block); 1169N(SyntaxKind.Block); 1257N(SyntaxKind.Block); 1303N(SyntaxKind.Block); 1355N(SyntaxKind.Block); 1379N(SyntaxKind.Block); 1431N(SyntaxKind.Block); 1456N(SyntaxKind.Block); 1518N(SyntaxKind.Block); 1543N(SyntaxKind.Block); 1622N(SyntaxKind.Block); 1665N(SyntaxKind.Block); 1720N(SyntaxKind.Block); 1738N(SyntaxKind.Block); 1790N(SyntaxKind.Block); 1796N(SyntaxKind.Block); 1860N(SyntaxKind.Block); 1878N(SyntaxKind.Block); 1930N(SyntaxKind.Block); 1948N(SyntaxKind.Block); 2015N(SyntaxKind.Block); 2046N(SyntaxKind.Block); 2112N(SyntaxKind.Block); 2136N(SyntaxKind.Block); 2188N(SyntaxKind.Block); 2212N(SyntaxKind.Block); 2264N(SyntaxKind.Block); 2344N(SyntaxKind.Block); 2441N(SyntaxKind.Block); 2569N(SyntaxKind.Block); 2673N(SyntaxKind.Block); 2691N(SyntaxKind.Block); 2699N(SyntaxKind.Block); 2752N(SyntaxKind.Block); 2758N(SyntaxKind.Block); 2778N(SyntaxKind.Block); 2837N(SyntaxKind.Block); 2843N(SyntaxKind.Block); 2851M(SyntaxKind.Block); 2873M(SyntaxKind.Block); 2881N(SyntaxKind.Block); 2940N(SyntaxKind.Block); 2946N(SyntaxKind.Block); 2954N(SyntaxKind.Block); 3025N(SyntaxKind.Block); 3031N(SyntaxKind.Block); 3039M(SyntaxKind.Block); 3061M(SyntaxKind.Block); 3069N(SyntaxKind.Block); 3128N(SyntaxKind.Block); 3134N(SyntaxKind.Block); 3142N(SyntaxKind.Block); 3207N(SyntaxKind.Block); 3286N(SyntaxKind.Block); 3306N(SyntaxKind.Block); 3369N(SyntaxKind.Block); 3389M(SyntaxKind.Block); 3449N(SyntaxKind.Block); 3474N(SyntaxKind.Block); 3531N(SyntaxKind.Block); 3556N(SyntaxKind.Block); 3613N(SyntaxKind.Block); 3646N(SyntaxKind.Block); 3703N(SyntaxKind.Block); 3727N(SyntaxKind.Block); 3784N(SyntaxKind.Block); 3858N(SyntaxKind.Block); 3951N(SyntaxKind.Block); 4042N(SyntaxKind.Block); 4127N(SyntaxKind.Block); 4204N(SyntaxKind.Block); 4287N(SyntaxKind.Block); 4371N(SyntaxKind.Block); 4459N(SyntaxKind.Block); 4548N(SyntaxKind.Block); 4637N(SyntaxKind.Block); 4715N(SyntaxKind.Block); 4798N(SyntaxKind.Block); 4893N(SyntaxKind.Block); 4984N(SyntaxKind.Block); 5061N(SyntaxKind.Block); 5141N(SyntaxKind.Block); 5221N(SyntaxKind.Block); 5299N(SyntaxKind.Block); 5385N(SyntaxKind.Block); 5470N(SyntaxKind.Block); 5551N(SyntaxKind.Block); 5650N(SyntaxKind.Block); 5759N(SyntaxKind.Block); 5865N(SyntaxKind.Block); 5964N(SyntaxKind.Block); 6063N(SyntaxKind.Block); 6138N(SyntaxKind.Block); 6224N(SyntaxKind.Block); 6308N(SyntaxKind.Block); 6386N(SyntaxKind.Block); 6465N(SyntaxKind.Block); 6552N(SyntaxKind.Block); 6657N(SyntaxKind.Block); 6796N(SyntaxKind.Block); 6890N(SyntaxKind.Block); 6976N(SyntaxKind.Block); 7059N(SyntaxKind.Block); 7166N(SyntaxKind.Block); 7267N(SyntaxKind.Block); 7376N(SyntaxKind.Block);
Parsing\StatementParsingTests.cs (20)
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); 2714N(SyntaxKind.Block); 3572N(SyntaxKind.Block); 3633N(SyntaxKind.Block); 3685N(SyntaxKind.Block); 3708N(SyntaxKind.Block); 3735N(SyntaxKind.Block); 3771N(SyntaxKind.Block); 3783N(SyntaxKind.Block); 3791N(SyntaxKind.Block); 3818N(SyntaxKind.Block); 3883N(SyntaxKind.Block); 4293N(SyntaxKind.Block); 4430N(SyntaxKind.Block); 4594N(SyntaxKind.Block);
Parsing\SwitchExpressionParsingTests.cs (2)
320N(SyntaxKind.Block); 406N(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); 2478M(SyntaxKind.Block); 2563N(SyntaxKind.Block); 2602N(SyntaxKind.Block); 2653N(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)
2200N(SyntaxKind.Block); 2275N(SyntaxKind.Block); 2352N(SyntaxKind.Block); 2428N(SyntaxKind.Block); 2496N(SyntaxKind.Block); 2579N(SyntaxKind.Block); 2682N(SyntaxKind.Block); 2812N(SyntaxKind.Block); 2936N(SyntaxKind.Block); 3054N(SyntaxKind.Block); 3152N(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)
CSharpBlockFacts.cs (2)
23=> node.IsKind(SyntaxKind.Block); 26=> node is (kind: SyntaxKind.Block or SyntaxKind.SwitchSection or SyntaxKind.CompilationUnit);
CSharpSmartTokenFormatter.cs (1)
74endToken.Parent.IsKind(SyntaxKind.Block) &&
FormattingHelpers.cs (2)
129if (node.Kind() != SyntaxKind.Block) 139if (node.Kind() != SyntaxKind.Block)
FormattingRangeHelper.cs (2)
349(previousToken.Parent.IsKind(SyntaxKind.Block) || 440if (token.Parent.Kind() is SyntaxKind.Block or
IndentBlockFormattingRule.cs (1)
100var firstStatementIsBlock = section.Statements is [(kind: SyntaxKind.Block), ..];
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (3)
112case SyntaxKind.OpenBraceToken when token.Parent.IsKind(SyntaxKind.Block): 121if (token.Parent.IsKind(SyntaxKind.Block)) 586targetToken.Parent.IsKind(SyntaxKind.Block) &&
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
207token.Parent.IsKind(SyntaxKind.Block) && 491token.Parent.IsKind(SyntaxKind.Block) &&
SpeculationAnalyzer.cs (1)
84return (node is StatementSyntax && node.Kind() != SyntaxKind.Block) ||
SuppressFormattingRule.cs (1)
265if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.Block)
WrappingFormattingRule.cs (3)
73if (embeddedStatement.IsKind(SyntaxKind.Block)) 102if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.Block) 115if (!(node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.Block))
Microsoft.VisualStudio.LanguageServices.CSharp (4)
CodeModel\MethodXml\MethodXmlBuilder.cs (1)
69case SyntaxKind.Block:
LanguageService\CSharpDebuggerIntelliSenseContext.cs (2)
75token.Parent.IsKind(SyntaxKind.Block) && 82token.Parent.IsKind(SyntaxKind.Block))
Utilities\BlankLineInGeneratedMethodFormattingRule.cs (1)
27if (currentToken.Parent.Kind() == SyntaxKind.Block &&