757 references to Block
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder_Statements.cs (2)
50
else if (node.Kind() != SyntaxKind.
Block
)
62
case SyntaxKind.
Block
:
Binder\LocalBinderFactory.cs (2)
93
else if (syntax.Kind() != SyntaxKind.
Block
&& (statement = syntax as StatementSyntax) != null)
347
if (body.Kind() == SyntaxKind.
Block
)
BoundTree\UnboundLambda.cs (1)
1480
private bool IsExpressionLambda { get { return Body.Kind() != SyntaxKind.
Block
; } }
CodeGen\EmitStatement.cs (2)
822
return _ilEmitStyle == ILEmitStyle.Debug && _method.GenerateDebugInfo && _methodBodySyntaxOpt?.IsKind(SyntaxKind.
Block
) == true ||
833
(boundReturnStatement.Syntax.IsKind(SyntaxKind.
Block
) || _method?.IsImplicitConstructor == true) &&
Compilation\SyntaxTreeSemanticModel.cs (1)
1110
case SyntaxKind.
Block
:
Compiler\MethodBodySynthesizer.cs (2)
527
Debug.Assert(syntax.Kind() == SyntaxKind.
Block
|| syntax.Kind() == SyntaxKind.ArrowExpressionClause);
547
if (syntax.Kind() == SyntaxKind.
Block
)
FlowAnalysis\FlowAnalysisPass.cs (1)
175
syntax.IsKind(SyntaxKind.
Block
) ||
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
557
else if (lambdaSyntax.Body.Kind() == SyntaxKind.
Block
)
575
else if (lambdaSyntax.Body.Kind() == SyntaxKind.
Block
)
Lowering\Instrumentation\DebugInfoInjector.cs (2)
131
if (original.WasCompilerGenerated && original.Syntax.Kind() == SyntaxKind.
Block
)
361
if (original.WasCompilerGenerated && original.ExpressionOpt == null && original.Syntax.Kind() == SyntaxKind.
Block
)
Lowering\Instrumentation\Instrumenter.cs (1)
49
Debug.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)
8063
this.CurrentNodeKind == SyntaxKind.
Block
&&
8104
if (this.IsIncrementalAndFactoryContextMatches && this.CurrentNodeKind == SyntaxKind.
Block
&& attributes.Count == 0)
Syntax\CSharpSyntaxNode.cs (1)
540
if (this.Kind() == SyntaxKind.
Block
)
Syntax\LambdaUtilities.cs (1)
391
case SyntaxKind.
Block
:
Syntax\LookupPosition.cs (2)
315
case SyntaxKind.
Block
:
377
case SyntaxKind.
Block
:
Syntax\SyntaxEquivalence.cs (1)
130
case SyntaxKind.
Block
:
Syntax\SyntaxExtensions.cs (1)
254
case SyntaxKind.
Block
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (22)
CSharpAddBracesDiagnosticAnalyzer.cs (3)
62
case SyntaxKind.
Block
:
291
if (statement.Statement.IsKind(SyntaxKind.
Block
))
295
if (elseStatement.IsKind(SyntaxKind.
Block
))
CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
40
Debug.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)
312
return current.IsParentKind(SyntaxKind.
Block
)
CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
86
var ifStatementScope = ifStatement.Parent.IsKind(SyntaxKind.
Block
)
CSharpRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
84
!blockOperation.Syntax.IsKind(SyntaxKind.
Block
);
CSharpSmartTokenFormatter.cs (1)
74
endToken.Parent.IsKind(SyntaxKind.
Block
) &&
EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
104
if (parent.IsKind(SyntaxKind.
Block
))
FormattingHelpers.cs (2)
129
if (node.Kind() != SyntaxKind.
Block
)
139
if (node.Kind() != SyntaxKind.
Block
)
FormattingRangeHelper.cs (2)
349
(previousToken.Parent.IsKind(SyntaxKind.
Block
) ||
440
if (token.Parent.Kind() is SyntaxKind.
Block
or
IndentBlockFormattingRule.cs (1)
100
var firstStatementIsBlock = section.Statements is [(kind: SyntaxKind.
Block
), ..];
InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
225
if (!ifStatement.Parent.IsKind(SyntaxKind.
Block
))
SpeculationAnalyzer.cs (1)
84
return (node is StatementSyntax && node.Kind() != SyntaxKind.
Block
) ||
SuppressFormattingRule.cs (1)
265
if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
)
WrappingFormattingRule.cs (3)
73
if (embeddedStatement.IsKind(SyntaxKind.
Block
))
102
if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
)
115
if (!(node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (6)
CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
84
if (!statement.IsParentKind(SyntaxKind.
Block
)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (3)
112
case SyntaxKind.OpenBraceToken when token.Parent.IsKind(SyntaxKind.
Block
):
121
if (token.Parent.IsKind(SyntaxKind.
Block
))
586
targetToken.Parent.IsKind(SyntaxKind.
Block
) &&
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
207
token.Parent.IsKind(SyntaxKind.
Block
) &&
491
token.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)
7873
SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapByKind(f1, SyntaxKind.
Block
), preserveLocalVariables: true)));
Microsoft.CodeAnalysis.CSharp.Features (44)
ChangeSignature\CSharpChangeSignatureService.cs (1)
192
current.Kind() == SyntaxKind.
Block
|| current.Kind() == SyntaxKind.ArrowExpressionClause)
Completion\KeywordRecommenders\WhileKeywordRecommender.cs (1)
41
token.Parent.IsKind(SyntaxKind.
Block
) &&
ConvertForEachToFor\CSharpConvertForEachToForCodeRefactoringProvider.cs (1)
49
return foreachInfo.ForEachStatement.Parent.IsKind(SyntaxKind.
Block
);
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (1)
59
case SyntaxKind.
Block
:
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
100
if (!documentUpdateInfo.Source.IsParentKind(SyntaxKind.
Block
) &&
CSharpAddBracesDiagnosticAnalyzer.cs (3)
62
case SyntaxKind.
Block
:
291
if (statement.Statement.IsKind(SyntaxKind.
Block
))
295
if (elseStatement.IsKind(SyntaxKind.
Block
))
CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
40
Debug.Assert(enclosingBlock.Kind() is SyntaxKind.
Block
or SyntaxKind.SwitchSection);
CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
312
return current.IsParentKind(SyntaxKind.
Block
)
CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
86
var ifStatementScope = ifStatement.Parent.IsKind(SyntaxKind.
Block
)
CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
84
if (!statement.IsParentKind(SyntaxKind.
Block
)
CSharpRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (1)
84
!blockOperation.Syntax.IsKind(SyntaxKind.
Block
);
Debugging\CSharpProximityExpressionsService.Worker.cs (2)
226
var statementAncestor = _parentStatement.Ancestors().OfType<StatementSyntax>().FirstOrDefault(node => !node.IsKind(SyntaxKind.
Block
));
243
case SyntaxKind.
Block
:
EditAndContinue\BreakpointSpans.cs (1)
405
case SyntaxKind.
Block
:
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (10)
185
Debug.Assert(memberBody.IsKind(SyntaxKind.
Block
) || memberBody is ExpressionSyntax);
384
case SyntaxKind.
Block
:
616
RoslynDebug.Assert(oldBody.IsKind(SyntaxKind.
Block
));
617
RoslynDebug.Assert(newBody.IsKind(SyntaxKind.
Block
));
762
if (oldStatement == oldBody && !newBody.IsKind(SyntaxKind.
Block
))
852
case SyntaxKind.
Block
:
933
case SyntaxKind.
Block
:
989
case SyntaxKind.
Block
:
1013
case SyntaxKind.
Block
:
1729
case SyntaxKind.
Block
:
EditAndContinue\SyntaxComparer.cs (6)
550
case SyntaxKind.
Block
:
724
ignoreChildFunction = childKind => childKind == SyntaxKind.
Block
|| childKind == SyntaxKind.ArrowExpressionClause || HasLabel(childKind);
871
case SyntaxKind.
Block
:
1084
case SyntaxKind.
Block
:
1214
if (leftStatement.Kind() == SyntaxKind.
Block
&& rightStatement.Kind() == SyntaxKind.
Block
)
EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
104
if (parent.IsKind(SyntaxKind.
Block
))
IntroduceVariable\CSharpIntroduceVariableService.cs (1)
69
if (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)
225
if (!ifStatement.Parent.IsKind(SyntaxKind.
Block
))
LambdaUtilities.cs (1)
391
case SyntaxKind.
Block
:
QuickInfo\CSharpSyntacticQuickInfoProvider.cs (2)
100
return node.IsKind(SyntaxKind.
Block
)
101
&& (parent.IsKind(SyntaxKind.
Block
)
Structure\Providers\BlockSyntaxStructureProvider.cs (3)
67
if (parentKind is SyntaxKind.
Block
or SyntaxKind.SwitchSection)
80
=> node is StatementSyntax && !node.IsKind(SyntaxKind.
Block
);
154
case SyntaxKind.
Block
: return BlockTypes.Statement;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (635)
IncrementalParsing\IncrementalParsingTests.cs (4)
300
SyntaxKind.
Block
,
379
SyntaxKind.
Block
,
423
SyntaxKind.
Block
,
441
SyntaxKind.
Block
,
Parsing\AnonymousFunctionParsingTests.cs (36)
66
N(SyntaxKind.
Block
);
93
N(SyntaxKind.
Block
);
167
N(SyntaxKind.
Block
);
193
N(SyntaxKind.
Block
);
264
N(SyntaxKind.
Block
);
291
N(SyntaxKind.
Block
);
365
N(SyntaxKind.
Block
);
392
N(SyntaxKind.
Block
);
466
N(SyntaxKind.
Block
);
493
N(SyntaxKind.
Block
);
570
N(SyntaxKind.
Block
);
701
N(SyntaxKind.
Block
);
819
N(SyntaxKind.
Block
);
1140
N(SyntaxKind.
Block
);
1455
M(SyntaxKind.
Block
);
1773
M(SyntaxKind.
Block
);
1853
N(SyntaxKind.
Block
);
2184
N(SyntaxKind.
Block
);
2270
N(SyntaxKind.
Block
);
2350
N(SyntaxKind.
Block
);
2438
N(SyntaxKind.
Block
);
2522
N(SyntaxKind.
Block
);
2670
N(SyntaxKind.
Block
);
2818
N(SyntaxKind.
Block
);
2944
N(SyntaxKind.
Block
);
3080
N(SyntaxKind.
Block
);
3203
N(SyntaxKind.
Block
);
3343
N(SyntaxKind.
Block
);
3496
N(SyntaxKind.
Block
);
3649
N(SyntaxKind.
Block
);
3798
N(SyntaxKind.
Block
);
3943
N(SyntaxKind.
Block
);
4075
N(SyntaxKind.
Block
);
4224
N(SyntaxKind.
Block
);
4386
N(SyntaxKind.
Block
);
4548
N(SyntaxKind.
Block
);
Parsing\AsyncParsingTests.cs (9)
66
N(SyntaxKind.
Block
);
106
N(SyntaxKind.
Block
);
146
N(SyntaxKind.
Block
);
186
N(SyntaxKind.
Block
);
227
N(SyntaxKind.
Block
);
269
N(SyntaxKind.
Block
);
318
N(SyntaxKind.
Block
);
1372
N(SyntaxKind.
Block
);
1405
N(SyntaxKind.
Block
);
Parsing\AsyncStreamsParsingTests.cs (12)
66
N(SyntaxKind.
Block
);
94
N(SyntaxKind.
Block
);
144
N(SyntaxKind.
Block
);
157
N(SyntaxKind.
Block
);
225
N(SyntaxKind.
Block
);
256
N(SyntaxKind.
Block
);
307
N(SyntaxKind.
Block
);
326
N(SyntaxKind.
Block
);
406
N(SyntaxKind.
Block
);
449
N(SyntaxKind.
Block
);
500
N(SyntaxKind.
Block
);
535
N(SyntaxKind.
Block
);
Parsing\AwaitParsingTests.cs (22)
59
N(SyntaxKind.
Block
);
123
N(SyntaxKind.
Block
);
188
N(SyntaxKind.
Block
);
252
N(SyntaxKind.
Block
);
266
N(SyntaxKind.
Block
);
291
N(SyntaxKind.
Block
);
361
N(SyntaxKind.
Block
);
942
N(SyntaxKind.
Block
);
967
N(SyntaxKind.
Block
);
1027
N(SyntaxKind.
Block
);
1056
N(SyntaxKind.
Block
);
1115
N(SyntaxKind.
Block
);
1139
N(SyntaxKind.
Block
);
1355
N(SyntaxKind.
Block
);
1661
N(SyntaxKind.
Block
);
1685
N(SyntaxKind.
Block
);
1717
N(SyntaxKind.
Block
);
1757
N(SyntaxKind.
Block
);
1802
N(SyntaxKind.
Block
);
1849
N(SyntaxKind.
Block
);
1895
N(SyntaxKind.
Block
);
1941
N(SyntaxKind.
Block
);
Parsing\DeclarationExpressionTests.cs (16)
85
N(SyntaxKind.
Block
);
128
N(SyntaxKind.
Block
);
178
N(SyntaxKind.
Block
);
228
N(SyntaxKind.
Block
);
386
N(SyntaxKind.
Block
);
414
N(SyntaxKind.
Block
);
471
N(SyntaxKind.
Block
);
528
N(SyntaxKind.
Block
);
574
N(SyntaxKind.
Block
);
618
N(SyntaxKind.
Block
);
662
N(SyntaxKind.
Block
);
729
N(SyntaxKind.
Block
);
790
N(SyntaxKind.
Block
);
821
N(SyntaxKind.
Block
);
848
N(SyntaxKind.
Block
);
887
N(SyntaxKind.
Block
);
Parsing\DeclarationParsingTests.cs (29)
5451
N(SyntaxKind.
Block
);
6299
N(SyntaxKind.
Block
);
6571
N(SyntaxKind.
Block
);
7276
N(SyntaxKind.
Block
);
7312
N(SyntaxKind.
Block
);
7350
N(SyntaxKind.
Block
);
7394
N(SyntaxKind.
Block
);
7437
N(SyntaxKind.
Block
);
7468
N(SyntaxKind.
Block
);
7500
N(SyntaxKind.
Block
);
7532
N(SyntaxKind.
Block
);
7564
N(SyntaxKind.
Block
);
7637
N(SyntaxKind.
Block
);
7699
N(SyntaxKind.
Block
);
7731
N(SyntaxKind.
Block
);
7775
N(SyntaxKind.
Block
);
7818
N(SyntaxKind.
Block
);
7861
N(SyntaxKind.
Block
);
7904
N(SyntaxKind.
Block
);
7947
N(SyntaxKind.
Block
);
7991
N(SyntaxKind.
Block
);
8034
N(SyntaxKind.
Block
);
8078
N(SyntaxKind.
Block
);
8122
N(SyntaxKind.
Block
);
8177
N(SyntaxKind.
Block
);
8225
N(SyntaxKind.
Block
);
8272
N(SyntaxKind.
Block
);
8337
N(SyntaxKind.
Block
);
8431
N(SyntaxKind.
Block
);
Parsing\DeclarationScopeParsingTests.cs (29)
56
N(SyntaxKind.
Block
);
127
N(SyntaxKind.
Block
);
231
N(SyntaxKind.
Block
);
386
N(SyntaxKind.
Block
);
411
N(SyntaxKind.
Block
);
482
N(SyntaxKind.
Block
);
534
N(SyntaxKind.
Block
);
583
N(SyntaxKind.
Block
);
668
N(SyntaxKind.
Block
);
731
N(SyntaxKind.
Block
);
785
N(SyntaxKind.
Block
);
844
N(SyntaxKind.
Block
);
899
N(SyntaxKind.
Block
);
1454
N(SyntaxKind.
Block
);
1584
N(SyntaxKind.
Block
);
1655
N(SyntaxKind.
Block
);
1784
N(SyntaxKind.
Block
);
3072
N(SyntaxKind.
Block
);
3219
N(SyntaxKind.
Block
);
11966
N(SyntaxKind.
Block
);
15130
N(SyntaxKind.
Block
);
15148
N(SyntaxKind.
Block
);
15159
N(SyntaxKind.
Block
);
15207
N(SyntaxKind.
Block
);
15224
N(SyntaxKind.
Block
);
15246
N(SyntaxKind.
Block
);
15294
N(SyntaxKind.
Block
);
15311
N(SyntaxKind.
Block
);
15334
N(SyntaxKind.
Block
);
Parsing\DeconstructionTests.cs (36)
68
N(SyntaxKind.
Block
);
142
N(SyntaxKind.
Block
);
220
N(SyntaxKind.
Block
);
296
N(SyntaxKind.
Block
);
384
N(SyntaxKind.
Block
);
468
N(SyntaxKind.
Block
);
543
N(SyntaxKind.
Block
);
572
N(SyntaxKind.
Block
);
619
N(SyntaxKind.
Block
);
711
N(SyntaxKind.
Block
);
801
N(SyntaxKind.
Block
);
914
N(SyntaxKind.
Block
);
991
N(SyntaxKind.
Block
);
1078
N(SyntaxKind.
Block
);
1152
N(SyntaxKind.
Block
);
1251
N(SyntaxKind.
Block
);
1303
N(SyntaxKind.
Block
);
1349
N(SyntaxKind.
Block
);
1388
N(SyntaxKind.
Block
);
1434
N(SyntaxKind.
Block
);
1481
N(SyntaxKind.
Block
);
1527
N(SyntaxKind.
Block
);
1561
N(SyntaxKind.
Block
);
1733
N(SyntaxKind.
Block
);
1782
N(SyntaxKind.
Block
);
2424
N(SyntaxKind.
Block
);
2489
N(SyntaxKind.
Block
);
2567
N(SyntaxKind.
Block
);
2630
N(SyntaxKind.
Block
);
2693
N(SyntaxKind.
Block
);
2720
N(SyntaxKind.
Block
);
2755
N(SyntaxKind.
Block
);
2779
N(SyntaxKind.
Block
);
2814
N(SyntaxKind.
Block
);
2882
N(SyntaxKind.
Block
);
3405
N(SyntaxKind.
Block
);
Parsing\ExpressionParsingTests.cs (22)
2078
Assert.Equal(SyntaxKind.
Block
, lambda.Body.Kind());
2140
Assert.Equal(SyntaxKind.
Block
, lambda.Body.Kind());
3182
N(SyntaxKind.
Block
);
3282
N(SyntaxKind.
Block
);
3372
N(SyntaxKind.
Block
);
3446
N(SyntaxKind.
Block
);
3528
N(SyntaxKind.
Block
);
3607
N(SyntaxKind.
Block
);
3680
N(SyntaxKind.
Block
);
3765
N(SyntaxKind.
Block
);
3856
N(SyntaxKind.
Block
);
3946
N(SyntaxKind.
Block
);
4037
N(SyntaxKind.
Block
);
4124
N(SyntaxKind.
Block
);
4218
N(SyntaxKind.
Block
);
4315
N(SyntaxKind.
Block
);
4420
N(SyntaxKind.
Block
);
4521
N(SyntaxKind.
Block
);
4612
N(SyntaxKind.
Block
);
4705
N(SyntaxKind.
Block
);
6341
N(SyntaxKind.
Block
);
6408
N(SyntaxKind.
Block
);
Parsing\FileModifierParsingTests.cs (13)
829
N(SyntaxKind.
Block
);
1036
N(SyntaxKind.
Block
);
1218
N(SyntaxKind.
Block
);
2643
N(SyntaxKind.
Block
);
2690
N(SyntaxKind.
Block
);
2840
N(SyntaxKind.
Block
);
3048
N(SyntaxKind.
Block
);
3109
N(SyntaxKind.
Block
);
3317
N(SyntaxKind.
Block
);
3400
N(SyntaxKind.
Block
);
3449
N(SyntaxKind.
Block
);
3534
N(SyntaxKind.
Block
);
3589
N(SyntaxKind.
Block
);
Parsing\FunctionPointerTests.cs (15)
1278
M(SyntaxKind.
Block
);
1816
N(SyntaxKind.
Block
);
2330
N(SyntaxKind.
Block
);
2371
N(SyntaxKind.
Block
);
2427
N(SyntaxKind.
Block
);
2827
N(SyntaxKind.
Block
);
2933
N(SyntaxKind.
Block
);
2974
N(SyntaxKind.
Block
);
3026
N(SyntaxKind.
Block
);
3374
N(SyntaxKind.
Block
);
3447
N(SyntaxKind.
Block
);
3527
N(SyntaxKind.
Block
);
3599
N(SyntaxKind.
Block
);
3899
N(SyntaxKind.
Block
);
3987
N(SyntaxKind.
Block
);
Parsing\LambdaAttributeParsingTests.cs (29)
107
N(SyntaxKind.
Block
);
401
N(SyntaxKind.
Block
);
440
N(SyntaxKind.
Block
);
483
N(SyntaxKind.
Block
);
526
N(SyntaxKind.
Block
);
565
N(SyntaxKind.
Block
);
608
N(SyntaxKind.
Block
);
764
N(SyntaxKind.
Block
);
1193
N(SyntaxKind.
Block
);
1367
N(SyntaxKind.
Block
);
1461
N(SyntaxKind.
Block
);
1596
N(SyntaxKind.
Block
);
1642
N(SyntaxKind.
Block
);
1689
N(SyntaxKind.
Block
);
1745
N(SyntaxKind.
Block
);
1821
N(SyntaxKind.
Block
);
1879
N(SyntaxKind.
Block
);
1989
N(SyntaxKind.
Block
);
2763
N(SyntaxKind.
Block
);
2859
N(SyntaxKind.
Block
);
2933
N(SyntaxKind.
Block
);
3060
N(SyntaxKind.
Block
);
3131
N(SyntaxKind.
Block
);
3204
N(SyntaxKind.
Block
);
3244
N(SyntaxKind.
Block
);
3290
N(SyntaxKind.
Block
);
3369
N(SyntaxKind.
Block
);
3408
N(SyntaxKind.
Block
);
3486
N(SyntaxKind.
Block
);
Parsing\LambdaParameterParsingTests.cs (33)
75
N(SyntaxKind.
Block
);
186
N(SyntaxKind.
Block
);
305
N(SyntaxKind.
Block
);
431
N(SyntaxKind.
Block
);
560
N(SyntaxKind.
Block
);
766
N(SyntaxKind.
Block
);
2310
N(SyntaxKind.
Block
);
2723
N(SyntaxKind.
Block
);
2838
N(SyntaxKind.
Block
);
2922
M(SyntaxKind.
Block
);
2994
M(SyntaxKind.
Block
);
3082
M(SyntaxKind.
Block
);
3164
N(SyntaxKind.
Block
);
3285
N(SyntaxKind.
Block
);
3458
N(SyntaxKind.
Block
);
3525
N(SyntaxKind.
Block
);
3918
N(SyntaxKind.
Block
);
5112
N(SyntaxKind.
Block
);
5146
N(SyntaxKind.
Block
);
5173
N(SyntaxKind.
Block
);
5199
N(SyntaxKind.
Block
);
5282
N(SyntaxKind.
Block
);
5304
N(SyntaxKind.
Block
);
5338
N(SyntaxKind.
Block
);
5384
N(SyntaxKind.
Block
);
5454
N(SyntaxKind.
Block
);
5485
N(SyntaxKind.
Block
);
5512
N(SyntaxKind.
Block
);
5544
N(SyntaxKind.
Block
);
5575
N(SyntaxKind.
Block
);
5607
N(SyntaxKind.
Block
);
5638
N(SyntaxKind.
Block
);
5663
N(SyntaxKind.
Block
);
Parsing\LambdaReturnTypeParsingTests.cs (18)
103
N(SyntaxKind.
Block
);
301
M(SyntaxKind.
Block
);
331
M(SyntaxKind.
Block
);
399
N(SyntaxKind.
Block
);
2292
N(SyntaxKind.
Block
);
2371
N(SyntaxKind.
Block
);
3983
N(SyntaxKind.
Block
);
4019
N(SyntaxKind.
Block
);
4084
N(SyntaxKind.
Block
);
4128
N(SyntaxKind.
Block
);
4184
N(SyntaxKind.
Block
);
4369
N(SyntaxKind.
Block
);
4763
N(SyntaxKind.
Block
);
4794
N(SyntaxKind.
Block
);
4829
N(SyntaxKind.
Block
);
4865
N(SyntaxKind.
Block
);
5430
N(SyntaxKind.
Block
);
5583
N(SyntaxKind.
Block
);
Parsing\LocalFunctionParsingTests.cs (41)
127
N(SyntaxKind.
Block
);
165
N(SyntaxKind.
Block
);
206
N(SyntaxKind.
Block
);
251
N(SyntaxKind.
Block
);
289
N(SyntaxKind.
Block
);
321
N(SyntaxKind.
Block
);
393
N(SyntaxKind.
Block
);
420
N(SyntaxKind.
Block
);
455
N(SyntaxKind.
Block
);
531
N(SyntaxKind.
Block
);
587
N(SyntaxKind.
Block
);
656
N(SyntaxKind.
Block
);
747
N(SyntaxKind.
Block
);
833
N(SyntaxKind.
Block
);
849
N(SyntaxKind.
Block
);
937
N(SyntaxKind.
Block
);
1017
N(SyntaxKind.
Block
);
1111
N(SyntaxKind.
Block
);
1424
N(SyntaxKind.
Block
);
1473
N(SyntaxKind.
Block
);
1522
N(SyntaxKind.
Block
);
1574
N(SyntaxKind.
Block
);
1624
N(SyntaxKind.
Block
);
1763
N(SyntaxKind.
Block
);
1777
N(SyntaxKind.
Block
);
1878
N(SyntaxKind.
Block
);
1893
N(SyntaxKind.
Block
);
1911
N(SyntaxKind.
Block
);
2063
N(SyntaxKind.
Block
);
2078
N(SyntaxKind.
Block
);
2097
N(SyntaxKind.
Block
);
2159
N(SyntaxKind.
Block
);
2174
N(SyntaxKind.
Block
);
2242
N(SyntaxKind.
Block
);
2258
N(SyntaxKind.
Block
);
2332
N(SyntaxKind.
Block
);
2349
N(SyntaxKind.
Block
);
2429
N(SyntaxKind.
Block
);
2447
N(SyntaxKind.
Block
);
2599
N(SyntaxKind.
Block
);
2630
N(SyntaxKind.
Block
);
Parsing\MemberDeclarationParsingTests.cs (19)
186
N(SyntaxKind.
Block
);
285
N(SyntaxKind.
Block
);
312
N(SyntaxKind.
Block
);
1115
N(SyntaxKind.
Block
);
1503
N(SyntaxKind.
Block
);
1529
N(SyntaxKind.
Block
);
1551
N(SyntaxKind.
Block
);
1598
N(SyntaxKind.
Block
);
1636
N(SyntaxKind.
Block
);
1705
N(SyntaxKind.
Block
);
8149
N(SyntaxKind.
Block
);
9229
N(SyntaxKind.
Block
);
9396
N(SyntaxKind.
Block
);
9436
N(SyntaxKind.
Block
);
10219
N(SyntaxKind.
Block
);
10268
N(SyntaxKind.
Block
);
10304
N(SyntaxKind.
Block
);
10337
N(SyntaxKind.
Block
);
10370
N(SyntaxKind.
Block
);
Parsing\NameParsingTests.cs (5)
870
N(SyntaxKind.
Block
);
968
N(SyntaxKind.
Block
);
1090
N(SyntaxKind.
Block
);
1215
N(SyntaxKind.
Block
);
1365
N(SyntaxKind.
Block
);
Parsing\NullableParsingTests.cs (1)
1200
N(SyntaxKind.
Block
);
Parsing\ParserRegressionTests.cs (6)
284
N(SyntaxKind.
Block
);
377
N(SyntaxKind.
Block
);
511
N(SyntaxKind.
Block
);
601
N(SyntaxKind.
Block
);
691
N(SyntaxKind.
Block
);
779
N(SyntaxKind.
Block
);
Parsing\ParsingErrorRecoveryTests.cs (1)
6483
Assert.Equal(SyntaxKind.
Block
, methodBody.Kind());
Parsing\PatternParsingTests.cs (15)
2908
N(SyntaxKind.
Block
);
3144
N(SyntaxKind.
Block
);
3204
N(SyntaxKind.
Block
);
3269
N(SyntaxKind.
Block
);
3336
N(SyntaxKind.
Block
);
3394
N(SyntaxKind.
Block
);
3454
N(SyntaxKind.
Block
);
3519
N(SyntaxKind.
Block
);
3586
N(SyntaxKind.
Block
);
3660
N(SyntaxKind.
Block
);
3736
N(SyntaxKind.
Block
);
3817
N(SyntaxKind.
Block
);
3900
N(SyntaxKind.
Block
);
10330
N(SyntaxKind.
Block
);
10358
N(SyntaxKind.
Block
);
Parsing\RecordParsing.cs (1)
1394
N(SyntaxKind.
Block
);
Parsing\RefFieldParsingTests.cs (1)
682
N(SyntaxKind.
Block
);
Parsing\ScriptParsingTests.cs (21)
151
N(SyntaxKind.
Block
);
497
N(SyntaxKind.
Block
);
1184
N(SyntaxKind.
Block
);
1213
N(SyntaxKind.
Block
);
1273
N(SyntaxKind.
Block
);
1367
N(SyntaxKind.
Block
);
1428
N(SyntaxKind.
Block
);
1470
N(SyntaxKind.
Block
);
2173
N(SyntaxKind.
Block
);
2192
N(SyntaxKind.
Block
);
2223
N(SyntaxKind.
Block
);
2251
N(SyntaxKind.
Block
);
2348
N(SyntaxKind.
Block
);
2913
N(SyntaxKind.
Block
);
3285
N(SyntaxKind.
Block
);
6193
N(SyntaxKind.
Block
);
6207
N(SyntaxKind.
Block
);
9278
N(SyntaxKind.
Block
);
9335
N(SyntaxKind.
Block
);
9392
N(SyntaxKind.
Block
);
9450
N(SyntaxKind.
Block
);
Parsing\StatementAttributeParsingTests.cs (125)
49
N(SyntaxKind.
Block
);
52
N(SyntaxKind.
Block
);
115
N(SyntaxKind.
Block
);
182
N(SyntaxKind.
Block
);
270
N(SyntaxKind.
Block
);
365
N(SyntaxKind.
Block
);
377
N(SyntaxKind.
Block
);
450
N(SyntaxKind.
Block
);
462
N(SyntaxKind.
Block
);
531
N(SyntaxKind.
Block
);
597
N(SyntaxKind.
Block
);
666
N(SyntaxKind.
Block
);
740
N(SyntaxKind.
Block
);
817
N(SyntaxKind.
Block
);
892
N(SyntaxKind.
Block
);
967
N(SyntaxKind.
Block
);
985
N(SyntaxKind.
Block
);
1045
N(SyntaxKind.
Block
);
1067
N(SyntaxKind.
Block
);
1139
N(SyntaxKind.
Block
);
1169
N(SyntaxKind.
Block
);
1257
N(SyntaxKind.
Block
);
1303
N(SyntaxKind.
Block
);
1355
N(SyntaxKind.
Block
);
1379
N(SyntaxKind.
Block
);
1431
N(SyntaxKind.
Block
);
1456
N(SyntaxKind.
Block
);
1518
N(SyntaxKind.
Block
);
1543
N(SyntaxKind.
Block
);
1622
N(SyntaxKind.
Block
);
1665
N(SyntaxKind.
Block
);
1720
N(SyntaxKind.
Block
);
1738
N(SyntaxKind.
Block
);
1790
N(SyntaxKind.
Block
);
1796
N(SyntaxKind.
Block
);
1860
N(SyntaxKind.
Block
);
1878
N(SyntaxKind.
Block
);
1930
N(SyntaxKind.
Block
);
1948
N(SyntaxKind.
Block
);
2015
N(SyntaxKind.
Block
);
2046
N(SyntaxKind.
Block
);
2112
N(SyntaxKind.
Block
);
2136
N(SyntaxKind.
Block
);
2188
N(SyntaxKind.
Block
);
2212
N(SyntaxKind.
Block
);
2264
N(SyntaxKind.
Block
);
2344
N(SyntaxKind.
Block
);
2441
N(SyntaxKind.
Block
);
2569
N(SyntaxKind.
Block
);
2673
N(SyntaxKind.
Block
);
2691
N(SyntaxKind.
Block
);
2699
N(SyntaxKind.
Block
);
2752
N(SyntaxKind.
Block
);
2758
N(SyntaxKind.
Block
);
2778
N(SyntaxKind.
Block
);
2837
N(SyntaxKind.
Block
);
2843
N(SyntaxKind.
Block
);
2851
M(SyntaxKind.
Block
);
2873
M(SyntaxKind.
Block
);
2881
N(SyntaxKind.
Block
);
2940
N(SyntaxKind.
Block
);
2946
N(SyntaxKind.
Block
);
2954
N(SyntaxKind.
Block
);
3025
N(SyntaxKind.
Block
);
3031
N(SyntaxKind.
Block
);
3039
M(SyntaxKind.
Block
);
3061
M(SyntaxKind.
Block
);
3069
N(SyntaxKind.
Block
);
3128
N(SyntaxKind.
Block
);
3134
N(SyntaxKind.
Block
);
3142
N(SyntaxKind.
Block
);
3207
N(SyntaxKind.
Block
);
3286
N(SyntaxKind.
Block
);
3306
N(SyntaxKind.
Block
);
3369
N(SyntaxKind.
Block
);
3389
M(SyntaxKind.
Block
);
3449
N(SyntaxKind.
Block
);
3474
N(SyntaxKind.
Block
);
3531
N(SyntaxKind.
Block
);
3556
N(SyntaxKind.
Block
);
3613
N(SyntaxKind.
Block
);
3646
N(SyntaxKind.
Block
);
3703
N(SyntaxKind.
Block
);
3727
N(SyntaxKind.
Block
);
3784
N(SyntaxKind.
Block
);
3858
N(SyntaxKind.
Block
);
3951
N(SyntaxKind.
Block
);
4042
N(SyntaxKind.
Block
);
4127
N(SyntaxKind.
Block
);
4204
N(SyntaxKind.
Block
);
4287
N(SyntaxKind.
Block
);
4371
N(SyntaxKind.
Block
);
4459
N(SyntaxKind.
Block
);
4548
N(SyntaxKind.
Block
);
4637
N(SyntaxKind.
Block
);
4715
N(SyntaxKind.
Block
);
4798
N(SyntaxKind.
Block
);
4893
N(SyntaxKind.
Block
);
4984
N(SyntaxKind.
Block
);
5061
N(SyntaxKind.
Block
);
5141
N(SyntaxKind.
Block
);
5221
N(SyntaxKind.
Block
);
5299
N(SyntaxKind.
Block
);
5385
N(SyntaxKind.
Block
);
5470
N(SyntaxKind.
Block
);
5551
N(SyntaxKind.
Block
);
5650
N(SyntaxKind.
Block
);
5759
N(SyntaxKind.
Block
);
5865
N(SyntaxKind.
Block
);
5964
N(SyntaxKind.
Block
);
6063
N(SyntaxKind.
Block
);
6138
N(SyntaxKind.
Block
);
6224
N(SyntaxKind.
Block
);
6308
N(SyntaxKind.
Block
);
6386
N(SyntaxKind.
Block
);
6465
N(SyntaxKind.
Block
);
6552
N(SyntaxKind.
Block
);
6657
N(SyntaxKind.
Block
);
6796
N(SyntaxKind.
Block
);
6890
N(SyntaxKind.
Block
);
6976
N(SyntaxKind.
Block
);
7059
N(SyntaxKind.
Block
);
7166
N(SyntaxKind.
Block
);
7267
N(SyntaxKind.
Block
);
7376
N(SyntaxKind.
Block
);
Parsing\StatementParsingTests.cs (20)
887
Assert.Equal(SyntaxKind.
Block
, fs.Statement.Kind());
917
Assert.Equal(SyntaxKind.
Block
, fs.Statement.Kind());
945
Assert.Equal(SyntaxKind.
Block
, fs.Statement.Kind());
1486
Assert.Equal(SyntaxKind.
Block
, ws.Statement.Kind());
1506
Assert.Equal(SyntaxKind.
Block
, ds.Statement.Kind());
1719
N(SyntaxKind.
Block
);
2714
N(SyntaxKind.
Block
);
3572
N(SyntaxKind.
Block
);
3633
N(SyntaxKind.
Block
);
3685
N(SyntaxKind.
Block
);
3708
N(SyntaxKind.
Block
);
3735
N(SyntaxKind.
Block
);
3771
N(SyntaxKind.
Block
);
3783
N(SyntaxKind.
Block
);
3791
N(SyntaxKind.
Block
);
3818
N(SyntaxKind.
Block
);
3883
N(SyntaxKind.
Block
);
4293
N(SyntaxKind.
Block
);
4430
N(SyntaxKind.
Block
);
4594
N(SyntaxKind.
Block
);
Parsing\SwitchExpressionParsingTests.cs (2)
320
N(SyntaxKind.
Block
);
406
N(SyntaxKind.
Block
);
Parsing\TopLevelStatementsParsingTests.cs (16)
37
N(SyntaxKind.
Block
);
302
N(SyntaxKind.
Block
);
509
N(SyntaxKind.
Block
);
759
N(SyntaxKind.
Block
);
1032
N(SyntaxKind.
Block
);
1062
N(SyntaxKind.
Block
);
1073
N(SyntaxKind.
Block
);
1276
N(SyntaxKind.
Block
);
1299
N(SyntaxKind.
Block
);
1422
N(SyntaxKind.
Block
);
1433
N(SyntaxKind.
Block
);
1562
N(SyntaxKind.
Block
);
2478
M(SyntaxKind.
Block
);
2563
N(SyntaxKind.
Block
);
2602
N(SyntaxKind.
Block
);
2653
N(SyntaxKind.
Block
);
Parsing\TypeArgumentListParsingTests.cs (21)
58
N(SyntaxKind.
Block
);
174
N(SyntaxKind.
Block
);
302
N(SyntaxKind.
Block
);
435
N(SyntaxKind.
Block
);
583
N(SyntaxKind.
Block
);
730
N(SyntaxKind.
Block
);
1043
N(SyntaxKind.
Block
);
1182
N(SyntaxKind.
Block
);
1324
N(SyntaxKind.
Block
);
1457
N(SyntaxKind.
Block
);
1577
N(SyntaxKind.
Block
);
1681
N(SyntaxKind.
Block
);
1782
N(SyntaxKind.
Block
);
1904
N(SyntaxKind.
Block
);
2037
N(SyntaxKind.
Block
);
2171
N(SyntaxKind.
Block
);
2302
N(SyntaxKind.
Block
);
2403
N(SyntaxKind.
Block
);
2512
N(SyntaxKind.
Block
);
2614
N(SyntaxKind.
Block
);
2732
N(SyntaxKind.
Block
);
Parsing\UsingDirectiveParsingTests.cs (11)
2200
N(SyntaxKind.
Block
);
2275
N(SyntaxKind.
Block
);
2352
N(SyntaxKind.
Block
);
2428
N(SyntaxKind.
Block
);
2496
N(SyntaxKind.
Block
);
2579
N(SyntaxKind.
Block
);
2682
N(SyntaxKind.
Block
);
2812
N(SyntaxKind.
Block
);
2936
N(SyntaxKind.
Block
);
3054
N(SyntaxKind.
Block
);
3152
N(SyntaxKind.
Block
);
Parsing\ValueTupleTests.cs (6)
71
N(SyntaxKind.
Block
);
210
N(SyntaxKind.
Block
);
309
N(SyntaxKind.
Block
);
415
N(SyntaxKind.
Block
);
486
N(SyntaxKind.
Block
);
593
N(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)
74
endToken.Parent.IsKind(SyntaxKind.
Block
) &&
FormattingHelpers.cs (2)
129
if (node.Kind() != SyntaxKind.
Block
)
139
if (node.Kind() != SyntaxKind.
Block
)
FormattingRangeHelper.cs (2)
349
(previousToken.Parent.IsKind(SyntaxKind.
Block
) ||
440
if (token.Parent.Kind() is SyntaxKind.
Block
or
IndentBlockFormattingRule.cs (1)
100
var firstStatementIsBlock = section.Statements is [(kind: SyntaxKind.
Block
), ..];
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs\SyntaxTokenExtensions.cs (3)
112
case SyntaxKind.OpenBraceToken when token.Parent.IsKind(SyntaxKind.
Block
):
121
if (token.Parent.IsKind(SyntaxKind.
Block
))
586
targetToken.Parent.IsKind(SyntaxKind.
Block
) &&
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (2)
207
token.Parent.IsKind(SyntaxKind.
Block
) &&
491
token.Parent.IsKind(SyntaxKind.
Block
) &&
SpeculationAnalyzer.cs (1)
84
return (node is StatementSyntax && node.Kind() != SyntaxKind.
Block
) ||
SuppressFormattingRule.cs (1)
265
if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
)
WrappingFormattingRule.cs (3)
73
if (embeddedStatement.IsKind(SyntaxKind.
Block
))
102
if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
)
115
if (!(node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
))
Microsoft.VisualStudio.LanguageServices.CSharp (4)
CodeModel\MethodXml\MethodXmlBuilder.cs (1)
69
case SyntaxKind.
Block
:
LanguageService\CSharpDebuggerIntelliSenseContext.cs (2)
75
token.Parent.IsKind(SyntaxKind.
Block
) &&
82
token.Parent.IsKind(SyntaxKind.
Block
))
Utilities\BlankLineInGeneratedMethodFormattingRule.cs (1)
27
if (currentToken.Parent.Kind() == SyntaxKind.
Block
&&