986 references to Block
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder_Statements.cs (2)
51
else if (node.Kind() != SyntaxKind.
Block
)
63
case SyntaxKind.
Block
:
Binder\LocalBinderFactory.cs (2)
94
else if (syntax.Kind() != SyntaxKind.
Block
&& (statement = syntax as StatementSyntax) != null)
388
if (body.Kind() == SyntaxKind.
Block
)
BoundTree\UnboundLambda.cs (1)
1515
private bool IsExpressionLambda { get { return Body.Kind() != SyntaxKind.
Block
; } }
CodeGen\EmitStatement.cs (2)
847
return _ilEmitStyle == ILEmitStyle.Debug && _method.GenerateDebugInfo && _methodBodySyntaxOpt?.IsKind(SyntaxKind.
Block
) == true ||
858
(boundReturnStatement.Syntax.IsKind(SyntaxKind.
Block
) || _method?.IsImplicitConstructor == true) &&
Compilation\SyntaxTreeSemanticModel.cs (1)
1114
case SyntaxKind.
Block
:
Compiler\MethodBodySynthesizer.cs (2)
533
Debug.Assert(syntax.Kind() == SyntaxKind.
Block
|| syntax.Kind() == SyntaxKind.ArrowExpressionClause);
554
if (syntax.Kind() == SyntaxKind.
Block
)
FlowAnalysis\FlowAnalysisPass.cs (1)
195
syntax.IsKind(SyntaxKind.
Block
) ||
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
600
else if (lambdaSyntax.Body.Kind() == SyntaxKind.
Block
)
618
else if (lambdaSyntax.Body.Kind() == SyntaxKind.
Block
)
Lowering\Instrumentation\DebugInfoInjector.cs (2)
172
if (original.WasCompilerGenerated && original.Syntax.Kind() == SyntaxKind.
Block
)
406
if (original.WasCompilerGenerated && original.ExpressionOpt == null && original.Syntax.Kind() == SyntaxKind.
Block
)
Lowering\Instrumentation\Instrumenter.cs (1)
50
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)
8651
this.CurrentNodeKind == SyntaxKind.
Block
&&
8692
if (this.IsIncrementalAndFactoryContextMatches && this.CurrentNodeKind == SyntaxKind.
Block
&& attributes.Count == 0)
Syntax\CSharpSyntaxNode.cs (1)
522
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)
157
case SyntaxKind.
Block
:
Syntax\SyntaxExtensions.cs (1)
254
case SyntaxKind.
Block
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (22)
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (3)
63
case SyntaxKind.
Block
:
293
if (statement.Statement.IsKind(SyntaxKind.
Block
))
297
if (elseStatement.IsKind(SyntaxKind.
Block
))
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
351
return current.IsParentKind(SyntaxKind.
Block
)
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
227
if (!ifStatement.Parent.IsKind(SyntaxKind.
Block
))
src\Analyzers\CSharp\Analyzers\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
109
if (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)
40
Debug.Assert(enclosingBlock.Kind() is SyntaxKind.
Block
or SyntaxKind.SwitchSection);
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
96
var ifStatementScope = ifStatement.Parent.IsKind(SyntaxKind.
Block
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (2)
129
if (node.Kind() != SyntaxKind.
Block
)
139
if (node.Kind() != SyntaxKind.
Block
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (1)
100
var firstStatementIsBlock = section.Statements is [(kind: SyntaxKind.
Block
), ..];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
265
if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\WrappingFormattingRule.cs (3)
74
if (embeddedStatement.IsKind(SyntaxKind.
Block
))
103
if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
)
116
if (!(node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Indentation\CSharpSmartTokenFormatter.cs (1)
74
endToken.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
) ||
440
if (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)
83
is not SyntaxKind.
Block
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (3)
115
case SyntaxKind.OpenBraceToken when token.Parent.IsKind(SyntaxKind.
Block
):
124
if (token.Parent.IsKind(SyntaxKind.
Block
))
590
targetToken.Parent.IsKind(SyntaxKind.
Block
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
207
token.Parent.IsKind(SyntaxKind.
Block
) &&
491
token.Parent.IsKind(SyntaxKind.
Block
) &&
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (1)
87
&& endToken.Parent.IsKind(SyntaxKind.
Block
)
Microsoft.CodeAnalysis.CSharp.Features (34)
ChangeSignature\CSharpChangeSignatureService.cs (1)
202
current.Kind() == SyntaxKind.
Block
|| current.Kind() == SyntaxKind.ArrowExpressionClause)
Completion\KeywordRecommenders\WhileKeywordRecommender.cs (1)
41
token.Parent.IsKind(SyntaxKind.
Block
) &&
ConvertForEachToFor\CSharpConvertForEachToForCodeRefactoringProvider.cs (1)
50
return foreachInfo.ForEachStatement.Parent.IsKind(SyntaxKind.
Block
);
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (1)
59
case SyntaxKind.
Block
:
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
95
if (!documentUpdateInfo.Source.IsParentKind(SyntaxKind.
Block
) &&
Debugging\CSharpProximityExpressionsService.Worker.cs (2)
220
var statementAncestor = _parentStatement.Ancestors().OfType<StatementSyntax>().FirstOrDefault(node => !node.IsKind(SyntaxKind.
Block
));
237
case SyntaxKind.
Block
:
EditAndContinue\BreakpointSpans.cs (1)
586
case SyntaxKind.
Block
:
EditAndContinue\SyntaxComparer.cs (6)
551
case SyntaxKind.
Block
:
733
ignoreChildFunction = childKind => childKind == SyntaxKind.
Block
|| childKind == SyntaxKind.ArrowExpressionClause || HasLabel(childKind);
880
case SyntaxKind.
Block
:
1093
case SyntaxKind.
Block
:
1223
if (leftStatement.Kind() == SyntaxKind.
Block
&& rightStatement.Kind() == SyntaxKind.
Block
)
IntroduceVariable\CSharpIntroduceVariableService.cs (1)
69
if (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)
63
case SyntaxKind.
Block
:
293
if (statement.Statement.IsKind(SyntaxKind.
Block
))
297
if (elseStatement.IsKind(SyntaxKind.
Block
))
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
351
return current.IsParentKind(SyntaxKind.
Block
)
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
227
if (!ifStatement.Parent.IsKind(SyntaxKind.
Block
))
src\Analyzers\CSharp\Analyzers\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
109
if (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)
40
Debug.Assert(enclosingBlock.Kind() is SyntaxKind.
Block
or SyntaxKind.SwitchSection);
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
96
var ifStatementScope = ifStatement.Parent.IsKind(SyntaxKind.
Block
)
src\Analyzers\CSharp\CodeFixes\RemoveUnreachableCode\CSharpRemoveUnreachableCodeCodeFixProvider.cs (1)
83
is not SyntaxKind.
Block
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (1)
391
case SyntaxKind.
Block
:
Structure\Providers\BlockSyntaxStructureProvider.cs (3)
133
if (parentKind is SyntaxKind.
Block
or SyntaxKind.SwitchSection)
148
=> node is StatementSyntax(kind: not SyntaxKind.
Block
);
217
SyntaxKind.
Block
=> BlockTypes.Statement,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (872)
IncrementalParsing\IncrementalParsingTests.cs (7)
302
SyntaxKind.
Block
,
381
SyntaxKind.
Block
,
425
SyntaxKind.
Block
,
443
SyntaxKind.
Block
,
693
N(SyntaxKind.
Block
);
705
N(SyntaxKind.
Block
);
708
N(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
);
2172
N(SyntaxKind.
Block
);
2258
N(SyntaxKind.
Block
);
2338
N(SyntaxKind.
Block
);
2426
N(SyntaxKind.
Block
);
2510
N(SyntaxKind.
Block
);
2658
N(SyntaxKind.
Block
);
2806
N(SyntaxKind.
Block
);
2932
N(SyntaxKind.
Block
);
3068
N(SyntaxKind.
Block
);
3191
N(SyntaxKind.
Block
);
3331
N(SyntaxKind.
Block
);
3484
N(SyntaxKind.
Block
);
3637
N(SyntaxKind.
Block
);
3786
N(SyntaxKind.
Block
);
3931
N(SyntaxKind.
Block
);
4063
N(SyntaxKind.
Block
);
4212
N(SyntaxKind.
Block
);
4374
N(SyntaxKind.
Block
);
4536
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 (26)
60
N(SyntaxKind.
Block
);
124
N(SyntaxKind.
Block
);
189
N(SyntaxKind.
Block
);
253
N(SyntaxKind.
Block
);
267
N(SyntaxKind.
Block
);
292
N(SyntaxKind.
Block
);
362
N(SyntaxKind.
Block
);
943
N(SyntaxKind.
Block
);
968
N(SyntaxKind.
Block
);
1028
N(SyntaxKind.
Block
);
1057
N(SyntaxKind.
Block
);
1116
N(SyntaxKind.
Block
);
1140
N(SyntaxKind.
Block
);
1364
N(SyntaxKind.
Block
);
1444
N(SyntaxKind.
Block
);
1523
N(SyntaxKind.
Block
);
1614
N(SyntaxKind.
Block
);
2048
N(SyntaxKind.
Block
);
2354
N(SyntaxKind.
Block
);
2378
N(SyntaxKind.
Block
);
2410
N(SyntaxKind.
Block
);
2450
N(SyntaxKind.
Block
);
2495
N(SyntaxKind.
Block
);
2542
N(SyntaxKind.
Block
);
2588
N(SyntaxKind.
Block
);
2634
N(SyntaxKind.
Block
);
Parsing\CollectionExpressionParsingTests.cs (103)
360
N(SyntaxKind.
Block
);
487
N(SyntaxKind.
Block
);
612
N(SyntaxKind.
Block
);
1408
N(SyntaxKind.
Block
);
3057
N(SyntaxKind.
Block
);
3150
N(SyntaxKind.
Block
);
6269
N(SyntaxKind.
Block
);
6333
N(SyntaxKind.
Block
);
7829
N(SyntaxKind.
Block
);
7867
N(SyntaxKind.
Block
);
7885
N(SyntaxKind.
Block
);
7923
N(SyntaxKind.
Block
);
8008
N(SyntaxKind.
Block
);
8027
N(SyntaxKind.
Block
);
8064
N(SyntaxKind.
Block
);
8153
N(SyntaxKind.
Block
);
8172
N(SyntaxKind.
Block
);
8217
N(SyntaxKind.
Block
);
8306
N(SyntaxKind.
Block
);
8325
N(SyntaxKind.
Block
);
8370
N(SyntaxKind.
Block
);
8462
N(SyntaxKind.
Block
);
8481
N(SyntaxKind.
Block
);
8514
N(SyntaxKind.
Block
);
8606
N(SyntaxKind.
Block
);
8625
N(SyntaxKind.
Block
);
8666
N(SyntaxKind.
Block
);
8761
N(SyntaxKind.
Block
);
8780
N(SyntaxKind.
Block
);
8821
N(SyntaxKind.
Block
);
8879
N(SyntaxKind.
Block
);
8957
N(SyntaxKind.
Block
);
9035
N(SyntaxKind.
Block
);
9117
N(SyntaxKind.
Block
);
9404
N(SyntaxKind.
Block
);
9563
N(SyntaxKind.
Block
);
9722
N(SyntaxKind.
Block
);
9881
N(SyntaxKind.
Block
);
10039
N(SyntaxKind.
Block
);
10152
N(SyntaxKind.
Block
);
10273
N(SyntaxKind.
Block
);
10416
N(SyntaxKind.
Block
);
10537
N(SyntaxKind.
Block
);
10678
N(SyntaxKind.
Block
);
10835
N(SyntaxKind.
Block
);
10986
N(SyntaxKind.
Block
);
11167
N(SyntaxKind.
Block
);
11324
N(SyntaxKind.
Block
);
11519
N(SyntaxKind.
Block
);
11686
N(SyntaxKind.
Block
);
11829
N(SyntaxKind.
Block
);
12002
N(SyntaxKind.
Block
);
12162
N(SyntaxKind.
Block
);
12251
N(SyntaxKind.
Block
);
12340
N(SyntaxKind.
Block
);
12467
N(SyntaxKind.
Block
);
12534
N(SyntaxKind.
Block
);
12617
N(SyntaxKind.
Block
);
12714
N(SyntaxKind.
Block
);
12855
N(SyntaxKind.
Block
);
14009
N(SyntaxKind.
Block
);
14031
N(SyntaxKind.
Block
);
14117
N(SyntaxKind.
Block
);
14201
N(SyntaxKind.
Block
);
14223
N(SyntaxKind.
Block
);
14316
N(SyntaxKind.
Block
);
14407
N(SyntaxKind.
Block
);
14431
N(SyntaxKind.
Block
);
14539
N(SyntaxKind.
Block
);
14643
N(SyntaxKind.
Block
);
14667
N(SyntaxKind.
Block
);
14775
N(SyntaxKind.
Block
);
14879
N(SyntaxKind.
Block
);
14905
N(SyntaxKind.
Block
);
15014
N(SyntaxKind.
Block
);
15117
N(SyntaxKind.
Block
);
15141
N(SyntaxKind.
Block
);
15238
N(SyntaxKind.
Block
);
15331
N(SyntaxKind.
Block
);
15357
N(SyntaxKind.
Block
);
15473
N(SyntaxKind.
Block
);
15583
N(SyntaxKind.
Block
);
15626
N(SyntaxKind.
Block
);
15693
N(SyntaxKind.
Block
);
15737
N(SyntaxKind.
Block
);
15792
N(SyntaxKind.
Block
);
15871
N(SyntaxKind.
Block
);
15915
N(SyntaxKind.
Block
);
15974
N(SyntaxKind.
Block
);
16057
N(SyntaxKind.
Block
);
16101
N(SyntaxKind.
Block
);
16168
N(SyntaxKind.
Block
);
16259
N(SyntaxKind.
Block
);
16303
N(SyntaxKind.
Block
);
16375
N(SyntaxKind.
Block
);
16471
N(SyntaxKind.
Block
);
16515
N(SyntaxKind.
Block
);
16574
N(SyntaxKind.
Block
);
16657
N(SyntaxKind.
Block
);
16701
N(SyntaxKind.
Block
);
16758
N(SyntaxKind.
Block
);
16839
N(SyntaxKind.
Block
);
17017
N(SyntaxKind.
Block
);
Parsing\DeclarationExpressionTests.cs (17)
86
N(SyntaxKind.
Block
);
129
N(SyntaxKind.
Block
);
171
N(SyntaxKind.
Block
);
215
N(SyntaxKind.
Block
);
265
N(SyntaxKind.
Block
);
423
N(SyntaxKind.
Block
);
451
N(SyntaxKind.
Block
);
508
N(SyntaxKind.
Block
);
565
N(SyntaxKind.
Block
);
611
N(SyntaxKind.
Block
);
655
N(SyntaxKind.
Block
);
699
N(SyntaxKind.
Block
);
766
N(SyntaxKind.
Block
);
827
N(SyntaxKind.
Block
);
858
N(SyntaxKind.
Block
);
885
N(SyntaxKind.
Block
);
924
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
);
7387
N(SyntaxKind.
Block
);
7424
N(SyntaxKind.
Block
);
7456
N(SyntaxKind.
Block
);
7488
N(SyntaxKind.
Block
);
7520
N(SyntaxKind.
Block
);
7552
N(SyntaxKind.
Block
);
7618
N(SyntaxKind.
Block
);
7680
N(SyntaxKind.
Block
);
7712
N(SyntaxKind.
Block
);
7749
N(SyntaxKind.
Block
);
7786
N(SyntaxKind.
Block
);
7823
N(SyntaxKind.
Block
);
7860
N(SyntaxKind.
Block
);
7897
N(SyntaxKind.
Block
);
7934
N(SyntaxKind.
Block
);
7971
N(SyntaxKind.
Block
);
8008
N(SyntaxKind.
Block
);
8045
N(SyntaxKind.
Block
);
8082
N(SyntaxKind.
Block
);
8130
N(SyntaxKind.
Block
);
8177
N(SyntaxKind.
Block
);
8242
N(SyntaxKind.
Block
);
8336
N(SyntaxKind.
Block
);
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (32)
120
N(SyntaxKind.
Block
);
237
N(SyntaxKind.
Block
);
302
N(SyntaxKind.
Block
);
432
N(SyntaxKind.
Block
);
512
N(SyntaxKind.
Block
);
653
N(SyntaxKind.
Block
);
733
N(SyntaxKind.
Block
);
943
N(SyntaxKind.
Block
);
1023
N(SyntaxKind.
Block
);
1154
N(SyntaxKind.
Block
);
1234
N(SyntaxKind.
Block
);
1459
N(SyntaxKind.
Block
);
1533
N(SyntaxKind.
Block
);
1663
N(SyntaxKind.
Block
);
1743
N(SyntaxKind.
Block
);
2052
N(SyntaxKind.
Block
);
2169
N(SyntaxKind.
Block
);
2234
N(SyntaxKind.
Block
);
2364
N(SyntaxKind.
Block
);
2444
N(SyntaxKind.
Block
);
2588
N(SyntaxKind.
Block
);
2668
N(SyntaxKind.
Block
);
2821
N(SyntaxKind.
Block
);
2901
N(SyntaxKind.
Block
);
3032
N(SyntaxKind.
Block
);
3121
N(SyntaxKind.
Block
);
3349
N(SyntaxKind.
Block
);
3438
N(SyntaxKind.
Block
);
3688
N(SyntaxKind.
Block
);
3777
N(SyntaxKind.
Block
);
3992
N(SyntaxKind.
Block
);
4081
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
);
825
N(SyntaxKind.
Block
);
880
N(SyntaxKind.
Block
);
1435
N(SyntaxKind.
Block
);
1565
N(SyntaxKind.
Block
);
1636
N(SyntaxKind.
Block
);
1765
N(SyntaxKind.
Block
);
3053
N(SyntaxKind.
Block
);
3200
N(SyntaxKind.
Block
);
11632
N(SyntaxKind.
Block
);
14719
N(SyntaxKind.
Block
);
14737
N(SyntaxKind.
Block
);
14748
N(SyntaxKind.
Block
);
14795
N(SyntaxKind.
Block
);
14812
N(SyntaxKind.
Block
);
14834
N(SyntaxKind.
Block
);
14881
N(SyntaxKind.
Block
);
14898
N(SyntaxKind.
Block
);
14921
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
);
6320
N(SyntaxKind.
Block
);
6387
N(SyntaxKind.
Block
);
Parsing\FieldKeywordParsingTests.cs (16)
238
N(SyntaxKind.
Block
);
295
N(SyntaxKind.
Block
);
493
N(SyntaxKind.
Block
);
565
N(SyntaxKind.
Block
);
632
N(SyntaxKind.
Block
);
716
N(SyntaxKind.
Block
);
809
N(SyntaxKind.
Block
);
1506
N(SyntaxKind.
Block
);
1584
N(SyntaxKind.
Block
);
1648
N(SyntaxKind.
Block
);
1775
N(SyntaxKind.
Block
);
1798
N(SyntaxKind.
Block
);
1865
N(SyntaxKind.
Block
);
1871
N(SyntaxKind.
Block
);
1889
N(SyntaxKind.
Block
);
2175
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 (47)
112
N(SyntaxKind.
Block
);
386
N(SyntaxKind.
Block
);
425
N(SyntaxKind.
Block
);
468
N(SyntaxKind.
Block
);
511
N(SyntaxKind.
Block
);
550
N(SyntaxKind.
Block
);
593
N(SyntaxKind.
Block
);
749
N(SyntaxKind.
Block
);
1178
N(SyntaxKind.
Block
);
1332
N(SyntaxKind.
Block
);
1416
N(SyntaxKind.
Block
);
1504
N(SyntaxKind.
Block
);
1539
N(SyntaxKind.
Block
);
1591
N(SyntaxKind.
Block
);
1637
N(SyntaxKind.
Block
);
1684
N(SyntaxKind.
Block
);
1740
N(SyntaxKind.
Block
);
1816
N(SyntaxKind.
Block
);
1874
N(SyntaxKind.
Block
);
2775
N(SyntaxKind.
Block
);
2871
N(SyntaxKind.
Block
);
2945
N(SyntaxKind.
Block
);
3072
N(SyntaxKind.
Block
);
3143
N(SyntaxKind.
Block
);
3216
N(SyntaxKind.
Block
);
3256
N(SyntaxKind.
Block
);
3302
N(SyntaxKind.
Block
);
3381
N(SyntaxKind.
Block
);
3420
N(SyntaxKind.
Block
);
3498
N(SyntaxKind.
Block
);
3747
N(SyntaxKind.
Block
);
3810
N(SyntaxKind.
Block
);
3865
N(SyntaxKind.
Block
);
3889
N(SyntaxKind.
Block
);
3941
N(SyntaxKind.
Block
);
3994
N(SyntaxKind.
Block
);
4054
N(SyntaxKind.
Block
);
4095
N(SyntaxKind.
Block
);
4113
N(SyntaxKind.
Block
);
4171
N(SyntaxKind.
Block
);
4208
N(SyntaxKind.
Block
);
4245
N(SyntaxKind.
Block
);
4320
N(SyntaxKind.
Block
);
4380
N(SyntaxKind.
Block
);
4389
N(SyntaxKind.
Block
);
4454
N(SyntaxKind.
Block
);
4509
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
);
2398
N(SyntaxKind.
Block
);
2811
N(SyntaxKind.
Block
);
2926
N(SyntaxKind.
Block
);
3010
M(SyntaxKind.
Block
);
3082
M(SyntaxKind.
Block
);
3170
M(SyntaxKind.
Block
);
3252
N(SyntaxKind.
Block
);
3373
N(SyntaxKind.
Block
);
3546
N(SyntaxKind.
Block
);
3613
N(SyntaxKind.
Block
);
4006
N(SyntaxKind.
Block
);
5195
N(SyntaxKind.
Block
);
5229
N(SyntaxKind.
Block
);
5256
N(SyntaxKind.
Block
);
5282
N(SyntaxKind.
Block
);
5355
N(SyntaxKind.
Block
);
5377
N(SyntaxKind.
Block
);
5411
N(SyntaxKind.
Block
);
5457
N(SyntaxKind.
Block
);
5527
N(SyntaxKind.
Block
);
5558
N(SyntaxKind.
Block
);
5585
N(SyntaxKind.
Block
);
5617
N(SyntaxKind.
Block
);
5648
N(SyntaxKind.
Block
);
5680
N(SyntaxKind.
Block
);
5711
N(SyntaxKind.
Block
);
5736
N(SyntaxKind.
Block
);
Parsing\LambdaReturnTypeParsingTests.cs (18)
103
N(SyntaxKind.
Block
);
301
M(SyntaxKind.
Block
);
331
M(SyntaxKind.
Block
);
399
N(SyntaxKind.
Block
);
2365
N(SyntaxKind.
Block
);
2444
N(SyntaxKind.
Block
);
4056
N(SyntaxKind.
Block
);
4092
N(SyntaxKind.
Block
);
4157
N(SyntaxKind.
Block
);
4201
N(SyntaxKind.
Block
);
4257
N(SyntaxKind.
Block
);
4442
N(SyntaxKind.
Block
);
4836
N(SyntaxKind.
Block
);
4867
N(SyntaxKind.
Block
);
4902
N(SyntaxKind.
Block
);
4938
N(SyntaxKind.
Block
);
5503
N(SyntaxKind.
Block
);
5656
N(SyntaxKind.
Block
);
Parsing\LocalFunctionParsingTests.cs (47)
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
);
2689
N(SyntaxKind.
Block
);
2780
N(SyntaxKind.
Block
);
2844
N(SyntaxKind.
Block
);
2923
N(SyntaxKind.
Block
);
2984
N(SyntaxKind.
Block
);
3111
N(SyntaxKind.
Block
);
Parsing\MemberDeclarationParsingTests.cs (52)
186
N(SyntaxKind.
Block
);
285
N(SyntaxKind.
Block
);
312
N(SyntaxKind.
Block
);
1109
N(SyntaxKind.
Block
);
1497
N(SyntaxKind.
Block
);
1523
N(SyntaxKind.
Block
);
1545
N(SyntaxKind.
Block
);
1592
N(SyntaxKind.
Block
);
1630
N(SyntaxKind.
Block
);
1699
N(SyntaxKind.
Block
);
8139
N(SyntaxKind.
Block
);
9218
N(SyntaxKind.
Block
);
9385
N(SyntaxKind.
Block
);
9425
N(SyntaxKind.
Block
);
10208
N(SyntaxKind.
Block
);
10257
N(SyntaxKind.
Block
);
10293
N(SyntaxKind.
Block
);
10326
N(SyntaxKind.
Block
);
10359
N(SyntaxKind.
Block
);
10538
N(SyntaxKind.
Block
);
10623
N(SyntaxKind.
Block
);
10731
N(SyntaxKind.
Block
);
10856
N(SyntaxKind.
Block
);
10896
N(SyntaxKind.
Block
);
11031
N(SyntaxKind.
Block
);
11071
N(SyntaxKind.
Block
);
11205
N(SyntaxKind.
Block
);
11245
N(SyntaxKind.
Block
);
11374
N(SyntaxKind.
Block
);
11500
N(SyntaxKind.
Block
);
11652
N(SyntaxKind.
Block
);
11667
N(SyntaxKind.
Block
);
11720
N(SyntaxKind.
Block
);
11729
N(SyntaxKind.
Block
);
11824
N(SyntaxKind.
Block
);
11949
N(SyntaxKind.
Block
);
12011
N(SyntaxKind.
Block
);
12072
N(SyntaxKind.
Block
);
12136
N(SyntaxKind.
Block
);
12206
N(SyntaxKind.
Block
);
12276
N(SyntaxKind.
Block
);
12367
N(SyntaxKind.
Block
);
12393
N(SyntaxKind.
Block
);
12480
N(SyntaxKind.
Block
);
15982
N(SyntaxKind.
Block
);
16079
N(SyntaxKind.
Block
);
16187
N(SyntaxKind.
Block
);
16340
N(SyntaxKind.
Block
);
16518
N(SyntaxKind.
Block
);
16630
N(SyntaxKind.
Block
);
16753
N(SyntaxKind.
Block
);
16934
N(SyntaxKind.
Block
);
Parsing\NameParsingTests.cs (5)
868
N(SyntaxKind.
Block
);
966
N(SyntaxKind.
Block
);
1088
N(SyntaxKind.
Block
);
1213
N(SyntaxKind.
Block
);
1363
N(SyntaxKind.
Block
);
Parsing\NullableParsingTests.cs (1)
1202
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 (12)
108
N(SyntaxKind.
Block
);
127
N(SyntaxKind.
Block
);
149
N(SyntaxKind.
Block
);
179
N(SyntaxKind.
Block
);
200
N(SyntaxKind.
Block
);
222
N(SyntaxKind.
Block
);
5213
N(SyntaxKind.
Block
);
5325
N(SyntaxKind.
Block
);
5472
N(SyntaxKind.
Block
);
5585
N(SyntaxKind.
Block
);
5722
N(SyntaxKind.
Block
);
7287
Assert.Equal(SyntaxKind.
Block
, methodBody.Kind());
Parsing\PatternParsingTests.cs (15)
2869
N(SyntaxKind.
Block
);
3105
N(SyntaxKind.
Block
);
3165
N(SyntaxKind.
Block
);
3230
N(SyntaxKind.
Block
);
3297
N(SyntaxKind.
Block
);
3355
N(SyntaxKind.
Block
);
3415
N(SyntaxKind.
Block
);
3480
N(SyntaxKind.
Block
);
3547
N(SyntaxKind.
Block
);
3621
N(SyntaxKind.
Block
);
3697
N(SyntaxKind.
Block
);
3778
N(SyntaxKind.
Block
);
3861
N(SyntaxKind.
Block
);
10291
N(SyntaxKind.
Block
);
10319
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
);
9274
N(SyntaxKind.
Block
);
9331
N(SyntaxKind.
Block
);
9388
N(SyntaxKind.
Block
);
9446
N(SyntaxKind.
Block
);
Parsing\StatementAttributeParsingTests.cs (125)
50
N(SyntaxKind.
Block
);
53
N(SyntaxKind.
Block
);
116
N(SyntaxKind.
Block
);
183
N(SyntaxKind.
Block
);
271
N(SyntaxKind.
Block
);
366
N(SyntaxKind.
Block
);
378
N(SyntaxKind.
Block
);
451
N(SyntaxKind.
Block
);
463
N(SyntaxKind.
Block
);
532
N(SyntaxKind.
Block
);
598
N(SyntaxKind.
Block
);
667
N(SyntaxKind.
Block
);
741
N(SyntaxKind.
Block
);
818
N(SyntaxKind.
Block
);
893
N(SyntaxKind.
Block
);
968
N(SyntaxKind.
Block
);
986
N(SyntaxKind.
Block
);
1046
N(SyntaxKind.
Block
);
1068
N(SyntaxKind.
Block
);
1140
N(SyntaxKind.
Block
);
1170
N(SyntaxKind.
Block
);
1258
N(SyntaxKind.
Block
);
1304
N(SyntaxKind.
Block
);
1356
N(SyntaxKind.
Block
);
1380
N(SyntaxKind.
Block
);
1432
N(SyntaxKind.
Block
);
1457
N(SyntaxKind.
Block
);
1519
N(SyntaxKind.
Block
);
1544
N(SyntaxKind.
Block
);
1623
N(SyntaxKind.
Block
);
1666
N(SyntaxKind.
Block
);
1721
N(SyntaxKind.
Block
);
1739
N(SyntaxKind.
Block
);
1791
N(SyntaxKind.
Block
);
1797
N(SyntaxKind.
Block
);
1861
N(SyntaxKind.
Block
);
1879
N(SyntaxKind.
Block
);
1931
N(SyntaxKind.
Block
);
1949
N(SyntaxKind.
Block
);
2016
N(SyntaxKind.
Block
);
2047
N(SyntaxKind.
Block
);
2113
N(SyntaxKind.
Block
);
2137
N(SyntaxKind.
Block
);
2189
N(SyntaxKind.
Block
);
2213
N(SyntaxKind.
Block
);
2265
N(SyntaxKind.
Block
);
2345
N(SyntaxKind.
Block
);
2442
N(SyntaxKind.
Block
);
2570
N(SyntaxKind.
Block
);
2674
N(SyntaxKind.
Block
);
2692
N(SyntaxKind.
Block
);
2700
N(SyntaxKind.
Block
);
2753
N(SyntaxKind.
Block
);
2759
N(SyntaxKind.
Block
);
2779
N(SyntaxKind.
Block
);
2838
N(SyntaxKind.
Block
);
2844
N(SyntaxKind.
Block
);
2852
M(SyntaxKind.
Block
);
2874
M(SyntaxKind.
Block
);
2882
N(SyntaxKind.
Block
);
2941
N(SyntaxKind.
Block
);
2947
N(SyntaxKind.
Block
);
2955
N(SyntaxKind.
Block
);
3026
N(SyntaxKind.
Block
);
3032
N(SyntaxKind.
Block
);
3040
M(SyntaxKind.
Block
);
3062
M(SyntaxKind.
Block
);
3070
N(SyntaxKind.
Block
);
3129
N(SyntaxKind.
Block
);
3135
N(SyntaxKind.
Block
);
3143
N(SyntaxKind.
Block
);
3208
N(SyntaxKind.
Block
);
3287
N(SyntaxKind.
Block
);
3307
N(SyntaxKind.
Block
);
3370
N(SyntaxKind.
Block
);
3390
M(SyntaxKind.
Block
);
3450
N(SyntaxKind.
Block
);
3475
N(SyntaxKind.
Block
);
3532
N(SyntaxKind.
Block
);
3557
N(SyntaxKind.
Block
);
3614
N(SyntaxKind.
Block
);
3647
N(SyntaxKind.
Block
);
3704
N(SyntaxKind.
Block
);
3728
N(SyntaxKind.
Block
);
3785
N(SyntaxKind.
Block
);
3859
N(SyntaxKind.
Block
);
3952
N(SyntaxKind.
Block
);
4043
N(SyntaxKind.
Block
);
4128
N(SyntaxKind.
Block
);
4205
N(SyntaxKind.
Block
);
4288
N(SyntaxKind.
Block
);
4372
N(SyntaxKind.
Block
);
4460
N(SyntaxKind.
Block
);
4549
N(SyntaxKind.
Block
);
4638
N(SyntaxKind.
Block
);
4716
N(SyntaxKind.
Block
);
4799
N(SyntaxKind.
Block
);
4894
N(SyntaxKind.
Block
);
4985
N(SyntaxKind.
Block
);
5062
N(SyntaxKind.
Block
);
5142
N(SyntaxKind.
Block
);
5222
N(SyntaxKind.
Block
);
5300
N(SyntaxKind.
Block
);
5386
N(SyntaxKind.
Block
);
5471
N(SyntaxKind.
Block
);
5556
N(SyntaxKind.
Block
);
5665
N(SyntaxKind.
Block
);
5774
N(SyntaxKind.
Block
);
5880
N(SyntaxKind.
Block
);
5979
N(SyntaxKind.
Block
);
6075
N(SyntaxKind.
Block
);
6150
N(SyntaxKind.
Block
);
6236
N(SyntaxKind.
Block
);
6320
N(SyntaxKind.
Block
);
6398
N(SyntaxKind.
Block
);
6477
N(SyntaxKind.
Block
);
6564
N(SyntaxKind.
Block
);
6669
N(SyntaxKind.
Block
);
6808
N(SyntaxKind.
Block
);
6902
N(SyntaxKind.
Block
);
6988
N(SyntaxKind.
Block
);
7071
N(SyntaxKind.
Block
);
7178
N(SyntaxKind.
Block
);
7279
N(SyntaxKind.
Block
);
7388
N(SyntaxKind.
Block
);
Parsing\StatementParsingTests.cs (22)
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
);
2717
N(SyntaxKind.
Block
);
3573
N(SyntaxKind.
Block
);
3634
N(SyntaxKind.
Block
);
3686
N(SyntaxKind.
Block
);
3709
N(SyntaxKind.
Block
);
3736
N(SyntaxKind.
Block
);
3772
N(SyntaxKind.
Block
);
3784
N(SyntaxKind.
Block
);
3792
N(SyntaxKind.
Block
);
3819
N(SyntaxKind.
Block
);
3884
N(SyntaxKind.
Block
);
4321
N(SyntaxKind.
Block
);
4458
N(SyntaxKind.
Block
);
4622
N(SyntaxKind.
Block
);
5844
N(SyntaxKind.
Block
);
5938
N(SyntaxKind.
Block
);
Parsing\SwitchExpressionParsingTests.cs (2)
321
N(SyntaxKind.
Block
);
407
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
);
2481
M(SyntaxKind.
Block
);
2566
N(SyntaxKind.
Block
);
2605
N(SyntaxKind.
Block
);
2656
N(SyntaxKind.
Block
);
Parsing\TypeArgumentListParsingTests.cs (29)
56
N(SyntaxKind.
Block
);
172
N(SyntaxKind.
Block
);
300
N(SyntaxKind.
Block
);
433
N(SyntaxKind.
Block
);
581
N(SyntaxKind.
Block
);
728
N(SyntaxKind.
Block
);
1041
N(SyntaxKind.
Block
);
1180
N(SyntaxKind.
Block
);
1322
N(SyntaxKind.
Block
);
1455
N(SyntaxKind.
Block
);
1575
N(SyntaxKind.
Block
);
1679
N(SyntaxKind.
Block
);
1780
N(SyntaxKind.
Block
);
1902
N(SyntaxKind.
Block
);
2035
N(SyntaxKind.
Block
);
2169
N(SyntaxKind.
Block
);
2300
N(SyntaxKind.
Block
);
2401
N(SyntaxKind.
Block
);
2510
N(SyntaxKind.
Block
);
2612
N(SyntaxKind.
Block
);
2730
N(SyntaxKind.
Block
);
2866
N(SyntaxKind.
Block
);
2967
N(SyntaxKind.
Block
);
3068
N(SyntaxKind.
Block
);
3169
N(SyntaxKind.
Block
);
3270
N(SyntaxKind.
Block
);
3383
N(SyntaxKind.
Block
);
3502
N(SyntaxKind.
Block
);
3618
N(SyntaxKind.
Block
);
Parsing\UsingDirectiveParsingTests.cs (11)
2150
N(SyntaxKind.
Block
);
2225
N(SyntaxKind.
Block
);
2302
N(SyntaxKind.
Block
);
2378
N(SyntaxKind.
Block
);
2446
N(SyntaxKind.
Block
);
2529
N(SyntaxKind.
Block
);
2632
N(SyntaxKind.
Block
);
2762
N(SyntaxKind.
Block
);
2886
N(SyntaxKind.
Block
);
3004
N(SyntaxKind.
Block
);
3102
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)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (2)
129
if (node.Kind() != SyntaxKind.
Block
)
139
if (node.Kind() != SyntaxKind.
Block
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (1)
100
var firstStatementIsBlock = section.Statements is [(kind: SyntaxKind.
Block
), ..];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
265
if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\WrappingFormattingRule.cs (3)
74
if (embeddedStatement.IsKind(SyntaxKind.
Block
))
103
if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
)
116
if (!(node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Indentation\CSharpSmartTokenFormatter.cs (1)
74
endToken.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
) ||
440
if (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)
115
case SyntaxKind.OpenBraceToken when token.Parent.IsKind(SyntaxKind.
Block
):
124
if (token.Parent.IsKind(SyntaxKind.
Block
))
590
targetToken.Parent.IsKind(SyntaxKind.
Block
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
207
token.Parent.IsKind(SyntaxKind.
Block
) &&
491
token.Parent.IsKind(SyntaxKind.
Block
) &&
Microsoft.Interop.SourceGeneration (3)
SyntaxExtensions.cs (3)
24
if (fixedStatement.Statement.IsKind(SyntaxKind.
Block
))
37
if (childStatement.IsKind(SyntaxKind.
Block
))
66
if (statement.IsKind(SyntaxKind.
Block
))
Microsoft.VisualStudio.LanguageServices.CSharp (4)
CodeModel\MethodXml\MethodXmlBuilder.cs (1)
69
case SyntaxKind.
Block
:
LanguageService\CSharpDebuggerIntelliSenseContext.cs (2)
74
token.Parent.IsKind(SyntaxKind.
Block
) &&
81
token.Parent.IsKind(SyntaxKind.
Block
))
Utilities\BlankLineInGeneratedMethodFormattingRule.cs (1)
27
if (currentToken.Parent.Kind() == SyntaxKind.
Block
&&