1140 references to Block
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder_Statements.cs (2)
51
else if (node.Kind() != SyntaxKind.
Block
)
63
case SyntaxKind.
Block
:
Binder\LocalBinderFactory.cs (2)
93
else if (syntax.Kind() != SyntaxKind.
Block
&& (statement = syntax as StatementSyntax) != null)
387
if (body.Kind() == SyntaxKind.
Block
)
BoundTree\UnboundLambda.cs (1)
1579
private bool IsExpressionLambda { get { return Body.Kind() != SyntaxKind.
Block
; } }
CodeGen\EmitStatement.cs (2)
857
return _ilEmitStyle == ILEmitStyle.Debug && _method.GenerateDebugInfo && _methodBodySyntaxOpt?.IsKind(SyntaxKind.
Block
) == true ||
868
(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)
198
syntax.IsKind(SyntaxKind.
Block
) ||
Lowering\DiagnosticsPass_ExpressionTrees.cs (2)
644
else if (lambdaSyntax.Body.Kind() == SyntaxKind.
Block
)
662
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)
8942
this.CurrentNodeKind == SyntaxKind.
Block
&&
8983
if (this.IsIncrementalAndFactoryContextMatches && this.CurrentNodeKind == SyntaxKind.
Block
&& attributes.Count == 0)
Syntax.xml.Internal.Generated.cs (2)
30576
return new BlockSyntax(SyntaxKind.
Block
, attributeLists.Node, openBraceToken, statements.Node, closeBraceToken, this.context);
35943
return new BlockSyntax(SyntaxKind.
Block
, attributeLists.Node, openBraceToken, statements.Node, closeBraceToken);
Syntax.xml.Syntax.Generated.cs (1)
6245
/// <item><description><see cref="SyntaxKind.
Block
"/></description></item>
Syntax\CSharpSyntaxNode.cs (1)
520
if (this.Kind() == SyntaxKind.
Block
)
Syntax\LambdaUtilities.cs (1)
393
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 (21)
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (3)
62
case SyntaxKind.
Block
:
292
if (statement.Statement.IsKind(SyntaxKind.
Block
))
296
if (elseStatement.IsKind(SyntaxKind.
Block
))
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
318
return current.IsParentKind(SyntaxKind.
Block
)
src\Analyzers\CSharp\Analyzers\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
106
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)
43
Debug.Assert(enclosingBlock.Kind() is SyntaxKind.
Block
or SyntaxKind.SwitchSection);
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
95
var ifStatementScope = ifStatement.Parent.IsKind(SyntaxKind.
Block
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (2)
130
if (node.Kind() != SyntaxKind.
Block
)
140
if (node.Kind() != SyntaxKind.
Block
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (1)
95
var firstStatementIsBlock = section.Statements is [(kind: SyntaxKind.
Block
), ..];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
257
if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\WrappingFormattingRule.cs (3)
70
if (embeddedStatement.IsKind(SyntaxKind.
Block
))
99
if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
)
112
if (!(node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Indentation\CSharpSmartTokenFormatter.cs (1)
72
endToken.Parent.IsKind(SyntaxKind.
Block
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpBlockFacts.cs (2)
22
=> node.IsKind(SyntaxKind.
Block
);
25
=> node is (kind: SyntaxKind.
Block
or SyntaxKind.SwitchSection or SyntaxKind.CompilationUnit);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (2)
328
(previousToken.Parent.IsKind(SyntaxKind.
Block
) ||
419
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
))
589
targetToken.Parent.IsKind(SyntaxKind.
Block
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
208
token.Parent.IsKind(SyntaxKind.
Block
) &&
492
token.Parent.IsKind(SyntaxKind.
Block
) &&
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (1)
87
&& endToken.Parent.IsKind(SyntaxKind.
Block
)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (1)
8719
SemanticEdit.Create(SemanticEditKind.Update, f1, f2, GetSyntaxMapByKind(f1, SyntaxKind.
Block
))));
Microsoft.CodeAnalysis.CSharp.Features (41)
ChangeSignature\CSharpChangeSignatureService.cs (1)
202
current.Kind() == SyntaxKind.
Block
|| current.Kind() == SyntaxKind.ArrowExpressionClause)
Completion\KeywordRecommenders\WhileKeywordRecommender.cs (1)
36
token.Parent.IsKind(SyntaxKind.
Block
) &&
ConvertForEachToFor\CSharpConvertForEachToForCodeRefactoringProvider.cs (1)
50
return foreachInfo.ForEachStatement.Parent.IsKind(SyntaxKind.
Block
);
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (1)
55
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)
587
case SyntaxKind.
Block
:
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (8)
215
case SyntaxKind.
Block
:
505
if (oldStatement == oldBody && !newBody.IsKind(SyntaxKind.
Block
))
589
case SyntaxKind.
Block
:
664
=> (memberBody, memberBody.IsKind(SyntaxKind.
Block
) ? (int)BlockPart.OpenBrace : DefaultStatementPart);
686
case SyntaxKind.
Block
:
742
case SyntaxKind.
Block
:
766
case SyntaxKind.
Block
:
1758
case SyntaxKind.
Block
:
EditAndContinue\SyntaxComparer.cs (6)
553
case SyntaxKind.
Block
:
738
ignoreChildFunction = childKind => childKind == SyntaxKind.
Block
|| childKind == SyntaxKind.ArrowExpressionClause || HasLabel(childKind);
885
case SyntaxKind.
Block
:
1102
case SyntaxKind.
Block
:
1232
if (leftStatement.Kind() == SyntaxKind.
Block
&& rightStatement.Kind() == SyntaxKind.
Block
)
IntroduceVariable\CSharpIntroduceVariableService.cs (1)
66
if (node.IsKind(SyntaxKind.
Block
))
InvertIf\CSharpInvertIfCodeRefactoringProvider.cs (3)
42
=> ifNode?.Parent is (kind: SyntaxKind.
Block
or SyntaxKind.SwitchSection);
54
=> node.Kind() is SyntaxKind.
Block
or SyntaxKind.SwitchSection;
57
=> node.Kind() is SyntaxKind.
Block
or SyntaxKind.EmptyStatement;
QuickInfo\CSharpSyntacticQuickInfoProvider.cs (2)
94
=> node.IsKind(SyntaxKind.
Block
)
95
&& node.Parent?.Kind() is SyntaxKind.
Block
or SyntaxKind.SwitchSection or SyntaxKind.GlobalStatement;
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (3)
62
case SyntaxKind.
Block
:
292
if (statement.Statement.IsKind(SyntaxKind.
Block
))
296
if (elseStatement.IsKind(SyntaxKind.
Block
))
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
318
return current.IsParentKind(SyntaxKind.
Block
)
src\Analyzers\CSharp\Analyzers\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
106
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)
43
Debug.Assert(enclosingBlock.Kind() is SyntaxKind.
Block
or SyntaxKind.SwitchSection);
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
95
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)
393
case SyntaxKind.
Block
:
Structure\Providers\BlockSyntaxStructureProvider.cs (3)
134
if (parentKind is SyntaxKind.
Block
or SyntaxKind.SwitchSection)
152
=> node is StatementSyntax(kind: not SyntaxKind.
Block
);
221
SyntaxKind.
Block
=> BlockTypes.Statement,
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (998)
IncrementalParsing\IncrementalParsingTests.cs (7)
307
SyntaxKind.
Block
,
385
SyntaxKind.
Block
,
428
SyntaxKind.
Block
,
446
SyntaxKind.
Block
,
692
N(SyntaxKind.
Block
);
704
N(SyntaxKind.
Block
);
707
N(SyntaxKind.
Block
);
Parsing\AnonymousFunctionParsingTests.cs (36)
66
N(SyntaxKind.
Block
);
93
N(SyntaxKind.
Block
);
165
N(SyntaxKind.
Block
);
191
N(SyntaxKind.
Block
);
262
N(SyntaxKind.
Block
);
289
N(SyntaxKind.
Block
);
361
N(SyntaxKind.
Block
);
388
N(SyntaxKind.
Block
);
460
N(SyntaxKind.
Block
);
487
N(SyntaxKind.
Block
);
564
N(SyntaxKind.
Block
);
695
N(SyntaxKind.
Block
);
810
N(SyntaxKind.
Block
);
1131
N(SyntaxKind.
Block
);
1446
M(SyntaxKind.
Block
);
1764
M(SyntaxKind.
Block
);
1844
N(SyntaxKind.
Block
);
2163
N(SyntaxKind.
Block
);
2249
N(SyntaxKind.
Block
);
2329
N(SyntaxKind.
Block
);
2417
N(SyntaxKind.
Block
);
2501
N(SyntaxKind.
Block
);
2647
N(SyntaxKind.
Block
);
2793
N(SyntaxKind.
Block
);
2917
N(SyntaxKind.
Block
);
3053
N(SyntaxKind.
Block
);
3173
N(SyntaxKind.
Block
);
3313
N(SyntaxKind.
Block
);
3464
N(SyntaxKind.
Block
);
3615
N(SyntaxKind.
Block
);
3762
N(SyntaxKind.
Block
);
3907
N(SyntaxKind.
Block
);
4036
N(SyntaxKind.
Block
);
4185
N(SyntaxKind.
Block
);
4345
N(SyntaxKind.
Block
);
4505
N(SyntaxKind.
Block
);
Parsing\AsyncParsingTests.cs (11)
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
);
2867
N(SyntaxKind.
Block
);
2963
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 (29)
60
N(SyntaxKind.
Block
);
124
N(SyntaxKind.
Block
);
189
N(SyntaxKind.
Block
);
253
N(SyntaxKind.
Block
);
267
N(SyntaxKind.
Block
);
292
N(SyntaxKind.
Block
);
369
N(SyntaxKind.
Block
);
383
N(SyntaxKind.
Block
);
408
N(SyntaxKind.
Block
);
479
N(SyntaxKind.
Block
);
1060
N(SyntaxKind.
Block
);
1085
N(SyntaxKind.
Block
);
1145
N(SyntaxKind.
Block
);
1174
N(SyntaxKind.
Block
);
1233
N(SyntaxKind.
Block
);
1257
N(SyntaxKind.
Block
);
1481
N(SyntaxKind.
Block
);
1561
N(SyntaxKind.
Block
);
1640
N(SyntaxKind.
Block
);
1731
N(SyntaxKind.
Block
);
2165
N(SyntaxKind.
Block
);
2471
N(SyntaxKind.
Block
);
2495
N(SyntaxKind.
Block
);
2527
N(SyntaxKind.
Block
);
2567
N(SyntaxKind.
Block
);
2612
N(SyntaxKind.
Block
);
2659
N(SyntaxKind.
Block
);
2705
N(SyntaxKind.
Block
);
2751
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 (40)
5505
N(SyntaxKind.
Block
);
6353
N(SyntaxKind.
Block
);
6625
N(SyntaxKind.
Block
);
7330
N(SyntaxKind.
Block
);
7366
N(SyntaxKind.
Block
);
7404
N(SyntaxKind.
Block
);
7441
N(SyntaxKind.
Block
);
7478
N(SyntaxKind.
Block
);
7510
N(SyntaxKind.
Block
);
7542
N(SyntaxKind.
Block
);
7574
N(SyntaxKind.
Block
);
7606
N(SyntaxKind.
Block
);
7672
N(SyntaxKind.
Block
);
7734
N(SyntaxKind.
Block
);
7766
N(SyntaxKind.
Block
);
7803
N(SyntaxKind.
Block
);
7840
N(SyntaxKind.
Block
);
7877
N(SyntaxKind.
Block
);
7914
N(SyntaxKind.
Block
);
7951
N(SyntaxKind.
Block
);
7988
N(SyntaxKind.
Block
);
8025
N(SyntaxKind.
Block
);
8062
N(SyntaxKind.
Block
);
8099
N(SyntaxKind.
Block
);
8136
N(SyntaxKind.
Block
);
8184
N(SyntaxKind.
Block
);
8231
N(SyntaxKind.
Block
);
8296
N(SyntaxKind.
Block
);
8390
N(SyntaxKind.
Block
);
11228
N(SyntaxKind.
Block
);
11435
N(SyntaxKind.
Block
);
11564
N(SyntaxKind.
Block
);
11622
N(SyntaxKind.
Block
);
12712
N(SyntaxKind.
Block
);
12765
N(SyntaxKind.
Block
);
12843
N(SyntaxKind.
Block
);
12907
N(SyntaxKind.
Block
);
12939
N(SyntaxKind.
Block
);
13564
N(SyntaxKind.
Block
);
13600
N(SyntaxKind.
Block
);
Parsing\DeclarationParsingTests_MissingIdentifiers.cs (64)
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
);
4266
N(SyntaxKind.
Block
);
4377
N(SyntaxKind.
Block
);
4475
N(SyntaxKind.
Block
);
4545
N(SyntaxKind.
Block
);
4618
N(SyntaxKind.
Block
);
4648
N(SyntaxKind.
Block
);
4656
M(SyntaxKind.
Block
);
4719
N(SyntaxKind.
Block
);
4828
N(SyntaxKind.
Block
);
4934
N(SyntaxKind.
Block
);
5025
N(SyntaxKind.
Block
);
5112
N(SyntaxKind.
Block
);
5216
N(SyntaxKind.
Block
);
5323
N(SyntaxKind.
Block
);
5409
N(SyntaxKind.
Block
);
5492
N(SyntaxKind.
Block
);
5584
N(SyntaxKind.
Block
);
5677
N(SyntaxKind.
Block
);
5770
N(SyntaxKind.
Block
);
5868
N(SyntaxKind.
Block
);
5964
N(SyntaxKind.
Block
);
6054
N(SyntaxKind.
Block
);
6134
N(SyntaxKind.
Block
);
6198
N(SyntaxKind.
Block
);
6263
N(SyntaxKind.
Block
);
6283
N(SyntaxKind.
Block
);
6316
N(SyntaxKind.
Block
);
6388
N(SyntaxKind.
Block
);
6483
N(SyntaxKind.
Block
);
6566
N(SyntaxKind.
Block
);
6637
N(SyntaxKind.
Block
);
6699
N(SyntaxKind.
Block
);
Parsing\DeclarationScopeParsingTests.cs (30)
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
);
1195
N(SyntaxKind.
Block
);
1447
N(SyntaxKind.
Block
);
1577
N(SyntaxKind.
Block
);
1648
N(SyntaxKind.
Block
);
1777
N(SyntaxKind.
Block
);
3065
N(SyntaxKind.
Block
);
3212
N(SyntaxKind.
Block
);
11644
N(SyntaxKind.
Block
);
14731
N(SyntaxKind.
Block
);
14749
N(SyntaxKind.
Block
);
14760
N(SyntaxKind.
Block
);
14807
N(SyntaxKind.
Block
);
14824
N(SyntaxKind.
Block
);
14846
N(SyntaxKind.
Block
);
14893
N(SyntaxKind.
Block
);
14910
N(SyntaxKind.
Block
);
14933
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
);
6364
N(SyntaxKind.
Block
);
6431
N(SyntaxKind.
Block
);
Parsing\ExtensionsParsingTests.cs (23)
191
N(SyntaxKind.
Block
);
284
N(SyntaxKind.
Block
);
553
N(SyntaxKind.
Block
);
1095
N(SyntaxKind.
Block
);
1142
N(SyntaxKind.
Block
);
1226
N(SyntaxKind.
Block
);
1843
N(SyntaxKind.
Block
);
2180
N(SyntaxKind.
Block
);
2234
N(SyntaxKind.
Block
);
2856
N(SyntaxKind.
Block
);
2865
N(SyntaxKind.
Block
);
2933
N(SyntaxKind.
Block
);
3087
N(SyntaxKind.
Block
);
3158
N(SyntaxKind.
Block
);
3227
N(SyntaxKind.
Block
);
3391
N(SyntaxKind.
Block
);
4685
N(SyntaxKind.
Block
);
4821
N(SyntaxKind.
Block
);
4900
N(SyntaxKind.
Block
);
4951
N(SyntaxKind.
Block
);
5036
N(SyntaxKind.
Block
);
5083
N(SyntaxKind.
Block
);
5117
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)
830
N(SyntaxKind.
Block
);
1034
N(SyntaxKind.
Block
);
1216
N(SyntaxKind.
Block
);
2638
N(SyntaxKind.
Block
);
2685
N(SyntaxKind.
Block
);
2835
N(SyntaxKind.
Block
);
3043
N(SyntaxKind.
Block
);
3104
N(SyntaxKind.
Block
);
3312
N(SyntaxKind.
Block
);
3395
N(SyntaxKind.
Block
);
3444
N(SyntaxKind.
Block
);
3529
N(SyntaxKind.
Block
);
3584
N(SyntaxKind.
Block
);
Parsing\ForStatementParsingTest.cs (13)
501
N(SyntaxKind.
Block
);
575
N(SyntaxKind.
Block
);
649
N(SyntaxKind.
Block
);
718
N(SyntaxKind.
Block
);
792
N(SyntaxKind.
Block
);
872
N(SyntaxKind.
Block
);
949
N(SyntaxKind.
Block
);
1005
N(SyntaxKind.
Block
);
2354
N(SyntaxKind.
Block
);
2369
N(SyntaxKind.
Block
);
2384
N(SyntaxKind.
Block
);
4391
N(SyntaxKind.
Block
);
4442
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
);
379
N(SyntaxKind.
Block
);
418
N(SyntaxKind.
Block
);
461
N(SyntaxKind.
Block
);
504
N(SyntaxKind.
Block
);
543
N(SyntaxKind.
Block
);
586
N(SyntaxKind.
Block
);
742
N(SyntaxKind.
Block
);
1171
N(SyntaxKind.
Block
);
1325
N(SyntaxKind.
Block
);
1409
N(SyntaxKind.
Block
);
1497
N(SyntaxKind.
Block
);
1532
N(SyntaxKind.
Block
);
1584
N(SyntaxKind.
Block
);
1630
N(SyntaxKind.
Block
);
1677
N(SyntaxKind.
Block
);
1733
N(SyntaxKind.
Block
);
1809
N(SyntaxKind.
Block
);
1867
N(SyntaxKind.
Block
);
2768
N(SyntaxKind.
Block
);
2864
N(SyntaxKind.
Block
);
2938
N(SyntaxKind.
Block
);
3065
N(SyntaxKind.
Block
);
3136
N(SyntaxKind.
Block
);
3209
N(SyntaxKind.
Block
);
3249
N(SyntaxKind.
Block
);
3295
N(SyntaxKind.
Block
);
3374
N(SyntaxKind.
Block
);
3413
N(SyntaxKind.
Block
);
3491
N(SyntaxKind.
Block
);
3740
N(SyntaxKind.
Block
);
3803
N(SyntaxKind.
Block
);
3858
N(SyntaxKind.
Block
);
3882
N(SyntaxKind.
Block
);
3934
N(SyntaxKind.
Block
);
3987
N(SyntaxKind.
Block
);
4047
N(SyntaxKind.
Block
);
4088
N(SyntaxKind.
Block
);
4106
N(SyntaxKind.
Block
);
4164
N(SyntaxKind.
Block
);
4201
N(SyntaxKind.
Block
);
4238
N(SyntaxKind.
Block
);
4313
N(SyntaxKind.
Block
);
4373
N(SyntaxKind.
Block
);
4382
N(SyntaxKind.
Block
);
4447
N(SyntaxKind.
Block
);
4502
N(SyntaxKind.
Block
);
Parsing\LambdaParameterParsingTests.cs (60)
70
N(SyntaxKind.
Block
);
181
N(SyntaxKind.
Block
);
300
N(SyntaxKind.
Block
);
426
N(SyntaxKind.
Block
);
555
N(SyntaxKind.
Block
);
761
N(SyntaxKind.
Block
);
2393
N(SyntaxKind.
Block
);
2806
N(SyntaxKind.
Block
);
2921
N(SyntaxKind.
Block
);
3005
M(SyntaxKind.
Block
);
3077
M(SyntaxKind.
Block
);
3165
M(SyntaxKind.
Block
);
3247
N(SyntaxKind.
Block
);
3368
N(SyntaxKind.
Block
);
3541
N(SyntaxKind.
Block
);
3608
N(SyntaxKind.
Block
);
4001
N(SyntaxKind.
Block
);
5190
N(SyntaxKind.
Block
);
5224
N(SyntaxKind.
Block
);
5251
N(SyntaxKind.
Block
);
5277
N(SyntaxKind.
Block
);
5350
N(SyntaxKind.
Block
);
5372
N(SyntaxKind.
Block
);
5406
N(SyntaxKind.
Block
);
5452
N(SyntaxKind.
Block
);
5542
N(SyntaxKind.
Block
);
5573
N(SyntaxKind.
Block
);
5600
N(SyntaxKind.
Block
);
5626
N(SyntaxKind.
Block
);
5658
N(SyntaxKind.
Block
);
5689
N(SyntaxKind.
Block
);
5720
N(SyntaxKind.
Block
);
5752
N(SyntaxKind.
Block
);
5783
N(SyntaxKind.
Block
);
5811
N(SyntaxKind.
Block
);
5836
N(SyntaxKind.
Block
);
5949
N(SyntaxKind.
Block
);
5982
N(SyntaxKind.
Block
);
6011
N(SyntaxKind.
Block
);
6045
N(SyntaxKind.
Block
);
6074
N(SyntaxKind.
Block
);
6108
N(SyntaxKind.
Block
);
6136
N(SyntaxKind.
Block
);
6169
N(SyntaxKind.
Block
);
6200
N(SyntaxKind.
Block
);
6236
N(SyntaxKind.
Block
);
6265
N(SyntaxKind.
Block
);
6299
N(SyntaxKind.
Block
);
6335
N(SyntaxKind.
Block
);
6376
N(SyntaxKind.
Block
);
6416
N(SyntaxKind.
Block
);
6461
N(SyntaxKind.
Block
);
6491
N(SyntaxKind.
Block
);
6526
N(SyntaxKind.
Block
);
6566
N(SyntaxKind.
Block
);
6603
N(SyntaxKind.
Block
);
6651
N(SyntaxKind.
Block
);
6686
N(SyntaxKind.
Block
);
6725
N(SyntaxKind.
Block
);
6772
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
);
4136
N(SyntaxKind.
Block
);
4180
N(SyntaxKind.
Block
);
4236
N(SyntaxKind.
Block
);
4421
N(SyntaxKind.
Block
);
4815
N(SyntaxKind.
Block
);
4846
N(SyntaxKind.
Block
);
4881
N(SyntaxKind.
Block
);
4917
N(SyntaxKind.
Block
);
5482
N(SyntaxKind.
Block
);
5635
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
);
1860
N(SyntaxKind.
Block
);
1875
N(SyntaxKind.
Block
);
1893
N(SyntaxKind.
Block
);
2000
N(SyntaxKind.
Block
);
2015
N(SyntaxKind.
Block
);
2034
N(SyntaxKind.
Block
);
2090
N(SyntaxKind.
Block
);
2105
N(SyntaxKind.
Block
);
2161
N(SyntaxKind.
Block
);
2177
N(SyntaxKind.
Block
);
2233
N(SyntaxKind.
Block
);
2250
N(SyntaxKind.
Block
);
2306
N(SyntaxKind.
Block
);
2324
N(SyntaxKind.
Block
);
2476
N(SyntaxKind.
Block
);
2507
N(SyntaxKind.
Block
);
2566
N(SyntaxKind.
Block
);
2657
N(SyntaxKind.
Block
);
2721
N(SyntaxKind.
Block
);
2800
N(SyntaxKind.
Block
);
2861
N(SyntaxKind.
Block
);
2988
N(SyntaxKind.
Block
);
Parsing\MemberDeclarationParsingTests.cs (52)
186
N(SyntaxKind.
Block
);
285
N(SyntaxKind.
Block
);
312
N(SyntaxKind.
Block
);
1081
N(SyntaxKind.
Block
);
1500
N(SyntaxKind.
Block
);
1526
N(SyntaxKind.
Block
);
1548
N(SyntaxKind.
Block
);
1595
N(SyntaxKind.
Block
);
1633
N(SyntaxKind.
Block
);
1702
N(SyntaxKind.
Block
);
8142
N(SyntaxKind.
Block
);
9221
N(SyntaxKind.
Block
);
9388
N(SyntaxKind.
Block
);
9428
N(SyntaxKind.
Block
);
10211
N(SyntaxKind.
Block
);
10260
N(SyntaxKind.
Block
);
10296
N(SyntaxKind.
Block
);
10329
N(SyntaxKind.
Block
);
10362
N(SyntaxKind.
Block
);
10541
N(SyntaxKind.
Block
);
10626
N(SyntaxKind.
Block
);
10734
N(SyntaxKind.
Block
);
10859
N(SyntaxKind.
Block
);
10899
N(SyntaxKind.
Block
);
11034
N(SyntaxKind.
Block
);
11074
N(SyntaxKind.
Block
);
11208
N(SyntaxKind.
Block
);
11248
N(SyntaxKind.
Block
);
11377
N(SyntaxKind.
Block
);
11503
N(SyntaxKind.
Block
);
11655
N(SyntaxKind.
Block
);
11670
N(SyntaxKind.
Block
);
11723
N(SyntaxKind.
Block
);
11732
N(SyntaxKind.
Block
);
11827
N(SyntaxKind.
Block
);
11952
N(SyntaxKind.
Block
);
12014
N(SyntaxKind.
Block
);
12075
N(SyntaxKind.
Block
);
12139
N(SyntaxKind.
Block
);
12209
N(SyntaxKind.
Block
);
12279
N(SyntaxKind.
Block
);
12370
N(SyntaxKind.
Block
);
12396
N(SyntaxKind.
Block
);
13984
N(SyntaxKind.
Block
);
17486
N(SyntaxKind.
Block
);
17583
N(SyntaxKind.
Block
);
17691
N(SyntaxKind.
Block
);
17844
N(SyntaxKind.
Block
);
18022
N(SyntaxKind.
Block
);
18134
N(SyntaxKind.
Block
);
18257
N(SyntaxKind.
Block
);
18438
N(SyntaxKind.
Block
);
Parsing\NameParsingTests.cs (6)
868
N(SyntaxKind.
Block
);
966
N(SyntaxKind.
Block
);
1088
N(SyntaxKind.
Block
);
1213
N(SyntaxKind.
Block
);
1363
N(SyntaxKind.
Block
);
1557
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\PartialEventsAndConstructorsParsingTests.cs (9)
71
N(SyntaxKind.
Block
);
80
N(SyntaxKind.
Block
);
497
N(SyntaxKind.
Block
);
506
N(SyntaxKind.
Block
);
789
N(SyntaxKind.
Block
);
819
N(SyntaxKind.
Block
);
848
N(SyntaxKind.
Block
);
1206
N(SyntaxKind.
Block
);
1271
N(SyntaxKind.
Block
);
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 (25)
151
N(SyntaxKind.
Block
);
497
N(SyntaxKind.
Block
);
1391
N(SyntaxKind.
Block
);
1420
N(SyntaxKind.
Block
);
1480
N(SyntaxKind.
Block
);
1574
N(SyntaxKind.
Block
);
1635
N(SyntaxKind.
Block
);
1677
N(SyntaxKind.
Block
);
2389
N(SyntaxKind.
Block
);
2409
N(SyntaxKind.
Block
);
2440
N(SyntaxKind.
Block
);
2468
N(SyntaxKind.
Block
);
2663
N(SyntaxKind.
Block
);
2705
N(SyntaxKind.
Block
);
2736
N(SyntaxKind.
Block
);
2764
N(SyntaxKind.
Block
);
2862
N(SyntaxKind.
Block
);
3427
N(SyntaxKind.
Block
);
3799
N(SyntaxKind.
Block
);
6707
N(SyntaxKind.
Block
);
6721
N(SyntaxKind.
Block
);
9788
N(SyntaxKind.
Block
);
9845
N(SyntaxKind.
Block
);
9902
N(SyntaxKind.
Block
);
9960
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)
130
if (node.Kind() != SyntaxKind.
Block
)
140
if (node.Kind() != SyntaxKind.
Block
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (1)
95
var firstStatementIsBlock = section.Statements is [(kind: SyntaxKind.
Block
), ..];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
257
if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\WrappingFormattingRule.cs (3)
70
if (embeddedStatement.IsKind(SyntaxKind.
Block
))
99
if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
)
112
if (!(node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Indentation\CSharpSmartTokenFormatter.cs (1)
72
endToken.Parent.IsKind(SyntaxKind.
Block
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpBlockFacts.cs (2)
22
=> node.IsKind(SyntaxKind.
Block
);
25
=> node is (kind: SyntaxKind.
Block
or SyntaxKind.SwitchSection or SyntaxKind.CompilationUnit);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (2)
328
(previousToken.Parent.IsKind(SyntaxKind.
Block
) ||
419
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
))
589
targetToken.Parent.IsKind(SyntaxKind.
Block
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
208
token.Parent.IsKind(SyntaxKind.
Block
) &&
492
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)
82
token.Parent.IsKind(SyntaxKind.
Block
) &&
88
token.Parent.IsKind(SyntaxKind.
Block
))
Utilities\BlankLineInGeneratedMethodFormattingRule.cs (1)
27
if (currentToken.Parent.Kind() == SyntaxKind.
Block
&&
Roslyn.Diagnostics.CSharp.Analyzers (18)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\FormattingHelpers.cs (2)
130
if (node.Kind() != SyntaxKind.
Block
)
140
if (node.Kind() != SyntaxKind.
Block
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (1)
95
var firstStatementIsBlock = section.Statements is [(kind: SyntaxKind.
Block
), ..];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SuppressFormattingRule.cs (1)
257
if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\WrappingFormattingRule.cs (3)
70
if (embeddedStatement.IsKind(SyntaxKind.
Block
))
99
if (node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
)
112
if (!(node is not StatementSyntax statementNode || statementNode.Kind() == SyntaxKind.
Block
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Indentation\CSharpSmartTokenFormatter.cs (1)
72
endToken.Parent.IsKind(SyntaxKind.
Block
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpBlockFacts.cs (2)
22
=> node.IsKind(SyntaxKind.
Block
);
25
=> node is (kind: SyntaxKind.
Block
or SyntaxKind.SwitchSection or SyntaxKind.CompilationUnit);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (2)
328
(previousToken.Parent.IsKind(SyntaxKind.
Block
) ||
419
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
))
589
targetToken.Parent.IsKind(SyntaxKind.
Block
) &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (2)
208
token.Parent.IsKind(SyntaxKind.
Block
) &&
492
token.Parent.IsKind(SyntaxKind.
Block
) &&