670 references to ExpressionStatement
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Deconstruct.cs (2)
42
case SyntaxKind.
ExpressionStatement
:
194
case SyntaxKind.
ExpressionStatement
:
Binder\Binder_Expressions.cs (1)
10988
case SyntaxKind.
ExpressionStatement
:
Binder\Binder_Statements.cs (3)
72
case SyntaxKind.
ExpressionStatement
:
330
goto case SyntaxKind.
ExpressionStatement
;
332
case SyntaxKind.
ExpressionStatement
:
Binder\ExpressionVariableFinder.cs (1)
44
case SyntaxKind.
ExpressionStatement
:
Binder\LocalBinderFactory.cs (1)
1047
case SyntaxKind.
ExpressionStatement
:
Binder\LocalScopeBinder.cs (1)
260
case SyntaxKind.
ExpressionStatement
:
Compilation\CSharpCompilation.cs (1)
792
if (statement.IsKind(SyntaxKind.
ExpressionStatement
))
Parser\LanguageParser.cs (2)
2862
case SyntaxKind.
ExpressionStatement
when
8847
if (statement.Kind == SyntaxKind.
ExpressionStatement
&&
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5213
case SyntaxKind.
ExpressionStatement
:
Syntax\LambdaUtilities.cs (1)
407
case SyntaxKind.
ExpressionStatement
:
Syntax\LookupPosition.cs (2)
324
case SyntaxKind.
ExpressionStatement
:
392
case SyntaxKind.
ExpressionStatement
:
Syntax\SyntaxFactory.cs (1)
2380
!globalStatement.Statement.IsKind(SyntaxKind.
ExpressionStatement
) ||
Syntax\SyntaxNodeExtensions.cs (1)
180
return parentNode.Parent.IsKind(SyntaxKind.
ExpressionStatement
);
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
563
case SyntaxKind.
ExpressionStatement
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
99
if (nodeParent.IsKind(SyntaxKind.
ExpressionStatement
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
140
public int ExpressionStatement => (int)SyntaxKind.
ExpressionStatement
;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
213
if (originalCompoundAssignment.Parent.IsKind(SyntaxKind.
ExpressionStatement
))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1009
conditional.IsParentKind(SyntaxKind.
ExpressionStatement
) &&
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
CompleteStatement\CompleteStatementCommandHandler.cs (1)
361
case SyntaxKind.
ExpressionStatement
:
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (1)
314
return ImmutableArray.Create(SyntaxKind.MethodDeclaration, SyntaxKind.
ExpressionStatement
, SyntaxKind.EqualsValueClause);
Microsoft.CodeAnalysis.CSharp.Features (11)
ConvertLinq\ConvertForEachToLinqQuery\AbstractToMethodConverter.cs (2)
75
case SyntaxKind.
ExpressionStatement
:
164
case SyntaxKind.
ExpressionStatement
:
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (1)
218
case SyntaxKind.
ExpressionStatement
:
Debugging\CSharpProximityExpressionsService.Worker.cs (1)
191
case SyntaxKind.
ExpressionStatement
:
EditAndContinue\BreakpointSpans.cs (1)
758
case SyntaxKind.
ExpressionStatement
:
EditAndContinue\SyntaxComparer.cs (1)
363
case SyntaxKind.
ExpressionStatement
:
GenerateMember\GenerateVariable\CSharpGenerateVariableService.cs (1)
202
if (node.IsLeftSideOfAssignExpression() && node.Parent.IsParentKind(SyntaxKind.
ExpressionStatement
))
IntroduceVariable\CSharpIntroduceVariableService.cs (1)
114
if (expression.WalkUpParentheses().IsParentKind(SyntaxKind.
ExpressionStatement
))
RemoveUnusedVariable\CSharpRemoveUnusedVariableCodeFixProvider.cs (1)
44
if (parent.Kind() == SyntaxKind.
ExpressionStatement
)
src\Analyzers\CSharp\CodeFixes\RemoveUnusedParametersAndValues\CSharpRemoveUnusedValuesCodeFixProvider.cs (1)
213
if (originalCompoundAssignment.Parent.IsKind(SyntaxKind.
ExpressionStatement
))
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (1)
407
case SyntaxKind.
ExpressionStatement
:
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (626)
IncrementalParsing\IncrementalParsingTests.cs (2)
469
SyntaxKind.
ExpressionStatement
,
720
N(SyntaxKind.
ExpressionStatement
);
Parsing\AnonymousFunctionParsingTests.cs (14)
909
N(SyntaxKind.
ExpressionStatement
);
977
N(SyntaxKind.
ExpressionStatement
);
1040
N(SyntaxKind.
ExpressionStatement
);
1110
N(SyntaxKind.
ExpressionStatement
);
1182
N(SyntaxKind.
ExpressionStatement
);
1239
N(SyntaxKind.
ExpressionStatement
);
1285
N(SyntaxKind.
ExpressionStatement
);
1352
N(SyntaxKind.
ExpressionStatement
);
1430
N(SyntaxKind.
ExpressionStatement
);
1486
N(SyntaxKind.
ExpressionStatement
);
1540
N(SyntaxKind.
ExpressionStatement
);
1634
N(SyntaxKind.
ExpressionStatement
);
1738
N(SyntaxKind.
ExpressionStatement
);
1815
N(SyntaxKind.
ExpressionStatement
);
Parsing\AsyncParsingTests.cs (1)
321
N(SyntaxKind.
ExpressionStatement
);
Parsing\AsyncStreamsParsingTests.cs (2)
432
M(SyntaxKind.
ExpressionStatement
);
441
N(SyntaxKind.
ExpressionStatement
);
Parsing\AwaitParsingTests.cs (14)
63
N(SyntaxKind.
ExpressionStatement
);
127
N(SyntaxKind.
ExpressionStatement
);
192
N(SyntaxKind.
ExpressionStatement
);
256
N(SyntaxKind.
ExpressionStatement
);
270
N(SyntaxKind.
ExpressionStatement
);
282
N(SyntaxKind.
ExpressionStatement
);
946
N(SyntaxKind.
ExpressionStatement
);
958
N(SyntaxKind.
ExpressionStatement
);
991
N(SyntaxKind.
ExpressionStatement
);
1046
N(SyntaxKind.
ExpressionStatement
);
1060
N(SyntaxKind.
ExpressionStatement
);
2453
N(SyntaxKind.
ExpressionStatement
);
2591
N(SyntaxKind.
ExpressionStatement
);
2637
N(SyntaxKind.
ExpressionStatement
);
Parsing\CollectionExpressionParsingTests.cs (98)
56
N(SyntaxKind.
ExpressionStatement
);
119
N(SyntaxKind.
ExpressionStatement
);
180
N(SyntaxKind.
ExpressionStatement
);
264
N(SyntaxKind.
ExpressionStatement
);
387
N(SyntaxKind.
ExpressionStatement
);
529
N(SyntaxKind.
ExpressionStatement
);
639
N(SyntaxKind.
ExpressionStatement
);
702
N(SyntaxKind.
ExpressionStatement
);
769
N(SyntaxKind.
ExpressionStatement
);
828
N(SyntaxKind.
ExpressionStatement
);
891
N(SyntaxKind.
ExpressionStatement
);
946
N(SyntaxKind.
ExpressionStatement
);
1009
N(SyntaxKind.
ExpressionStatement
);
1119
N(SyntaxKind.
ExpressionStatement
);
1190
N(SyntaxKind.
ExpressionStatement
);
1246
N(SyntaxKind.
ExpressionStatement
);
1320
N(SyntaxKind.
ExpressionStatement
);
1411
N(SyntaxKind.
ExpressionStatement
);
1480
N(SyntaxKind.
ExpressionStatement
);
1551
N(SyntaxKind.
ExpressionStatement
);
1583
N(SyntaxKind.
ExpressionStatement
);
1629
N(SyntaxKind.
ExpressionStatement
);
1682
N(SyntaxKind.
ExpressionStatement
);
1725
N(SyntaxKind.
ExpressionStatement
);
1768
N(SyntaxKind.
ExpressionStatement
);
1806
N(SyntaxKind.
ExpressionStatement
);
6211
N(SyntaxKind.
ExpressionStatement
);
6272
N(SyntaxKind.
ExpressionStatement
);
6336
N(SyntaxKind.
ExpressionStatement
);
8030
N(SyntaxKind.
ExpressionStatement
);
8175
N(SyntaxKind.
ExpressionStatement
);
8328
N(SyntaxKind.
ExpressionStatement
);
8484
N(SyntaxKind.
ExpressionStatement
);
8628
N(SyntaxKind.
ExpressionStatement
);
8783
N(SyntaxKind.
ExpressionStatement
);
8882
N(SyntaxKind.
ExpressionStatement
);
8960
N(SyntaxKind.
ExpressionStatement
);
9038
N(SyntaxKind.
ExpressionStatement
);
9120
N(SyntaxKind.
ExpressionStatement
);
9177
N(SyntaxKind.
ExpressionStatement
);
9226
N(SyntaxKind.
ExpressionStatement
);
9275
N(SyntaxKind.
ExpressionStatement
);
9328
N(SyntaxKind.
ExpressionStatement
);
9407
N(SyntaxKind.
ExpressionStatement
);
9476
N(SyntaxKind.
ExpressionStatement
);
9566
N(SyntaxKind.
ExpressionStatement
);
9635
N(SyntaxKind.
ExpressionStatement
);
9725
N(SyntaxKind.
ExpressionStatement
);
9794
N(SyntaxKind.
ExpressionStatement
);
9884
N(SyntaxKind.
ExpressionStatement
);
9953
N(SyntaxKind.
ExpressionStatement
);
10042
N(SyntaxKind.
ExpressionStatement
);
10088
N(SyntaxKind.
ExpressionStatement
);
10155
N(SyntaxKind.
ExpressionStatement
);
10205
N(SyntaxKind.
ExpressionStatement
);
10276
N(SyntaxKind.
ExpressionStatement
);
10337
N(SyntaxKind.
ExpressionStatement
);
10419
N(SyntaxKind.
ExpressionStatement
);
10469
N(SyntaxKind.
ExpressionStatement
);
10540
N(SyntaxKind.
ExpressionStatement
);
10597
N(SyntaxKind.
ExpressionStatement
);
10681
N(SyntaxKind.
ExpressionStatement
);
10752
N(SyntaxKind.
ExpressionStatement
);
10838
N(SyntaxKind.
ExpressionStatement
);
10903
N(SyntaxKind.
ExpressionStatement
);
10989
N(SyntaxKind.
ExpressionStatement
);
11069
N(SyntaxKind.
ExpressionStatement
);
11170
N(SyntaxKind.
ExpressionStatement
);
11235
N(SyntaxKind.
ExpressionStatement
);
11327
N(SyntaxKind.
ExpressionStatement
);
11417
N(SyntaxKind.
ExpressionStatement
);
11522
N(SyntaxKind.
ExpressionStatement
);
11595
N(SyntaxKind.
ExpressionStatement
);
11689
N(SyntaxKind.
ExpressionStatement
);
11750
N(SyntaxKind.
ExpressionStatement
);
11832
N(SyntaxKind.
ExpressionStatement
);
11908
N(SyntaxKind.
ExpressionStatement
);
12005
N(SyntaxKind.
ExpressionStatement
);
12165
N(SyntaxKind.
ExpressionStatement
);
12199
N(SyntaxKind.
ExpressionStatement
);
12254
N(SyntaxKind.
ExpressionStatement
);
12288
N(SyntaxKind.
ExpressionStatement
);
12343
N(SyntaxKind.
ExpressionStatement
);
12389
N(SyntaxKind.
ExpressionStatement
);
14012
N(SyntaxKind.
ExpressionStatement
);
14098
N(SyntaxKind.
ExpressionStatement
);
14204
N(SyntaxKind.
ExpressionStatement
);
14297
N(SyntaxKind.
ExpressionStatement
);
14410
N(SyntaxKind.
ExpressionStatement
);
14518
N(SyntaxKind.
ExpressionStatement
);
14646
N(SyntaxKind.
ExpressionStatement
);
14754
N(SyntaxKind.
ExpressionStatement
);
14882
N(SyntaxKind.
ExpressionStatement
);
14991
N(SyntaxKind.
ExpressionStatement
);
15120
N(SyntaxKind.
ExpressionStatement
);
15217
N(SyntaxKind.
ExpressionStatement
);
15334
N(SyntaxKind.
ExpressionStatement
);
15450
N(SyntaxKind.
ExpressionStatement
);
Parsing\DeclarationExpressionTests.cs (9)
23
N(SyntaxKind.
ExpressionStatement
);
937
N(SyntaxKind.
ExpressionStatement
);
976
N(SyntaxKind.
ExpressionStatement
);
1023
N(SyntaxKind.
ExpressionStatement
);
1070
N(SyntaxKind.
ExpressionStatement
);
1126
N(SyntaxKind.
ExpressionStatement
);
1188
N(SyntaxKind.
ExpressionStatement
);
1249
N(SyntaxKind.
ExpressionStatement
);
1304
N(SyntaxKind.
ExpressionStatement
);
Parsing\DeclarationParsingTests.cs (3)
4525
Assert.Equal(SyntaxKind.
ExpressionStatement
, body.Statements[0].Kind());
4581
Assert.Equal(SyntaxKind.
ExpressionStatement
, body.Statements[0].Kind());
6574
N(SyntaxKind.
ExpressionStatement
);
Parsing\DeclarationScopeParsingTests.cs (88)
1512
N(SyntaxKind.
ExpressionStatement
);
3056
N(SyntaxKind.
ExpressionStatement
);
3494
N(SyntaxKind.
ExpressionStatement
);
3561
N(SyntaxKind.
ExpressionStatement
);
3647
N(SyntaxKind.
ExpressionStatement
);
3723
N(SyntaxKind.
ExpressionStatement
);
3784
N(SyntaxKind.
ExpressionStatement
);
3877
N(SyntaxKind.
ExpressionStatement
);
3961
N(SyntaxKind.
ExpressionStatement
);
4023
N(SyntaxKind.
ExpressionStatement
);
4106
N(SyntaxKind.
ExpressionStatement
);
4163
N(SyntaxKind.
ExpressionStatement
);
4250
N(SyntaxKind.
ExpressionStatement
);
4311
N(SyntaxKind.
ExpressionStatement
);
4399
N(SyntaxKind.
ExpressionStatement
);
4461
N(SyntaxKind.
ExpressionStatement
);
4532
N(SyntaxKind.
ExpressionStatement
);
4607
N(SyntaxKind.
ExpressionStatement
);
4683
N(SyntaxKind.
ExpressionStatement
);
4758
N(SyntaxKind.
ExpressionStatement
);
4829
N(SyntaxKind.
ExpressionStatement
);
4900
N(SyntaxKind.
ExpressionStatement
);
4975
N(SyntaxKind.
ExpressionStatement
);
5051
N(SyntaxKind.
ExpressionStatement
);
5118
N(SyntaxKind.
ExpressionStatement
);
5201
N(SyntaxKind.
ExpressionStatement
);
5274
N(SyntaxKind.
ExpressionStatement
);
5382
N(SyntaxKind.
ExpressionStatement
);
5435
N(SyntaxKind.
ExpressionStatement
);
5505
N(SyntaxKind.
ExpressionStatement
);
5558
N(SyntaxKind.
ExpressionStatement
);
5637
N(SyntaxKind.
ExpressionStatement
);
5708
N(SyntaxKind.
ExpressionStatement
);
5803
N(SyntaxKind.
ExpressionStatement
);
5837
N(SyntaxKind.
ExpressionStatement
);
5871
N(SyntaxKind.
ExpressionStatement
);
5908
N(SyntaxKind.
ExpressionStatement
);
5960
N(SyntaxKind.
ExpressionStatement
);
6029
N(SyntaxKind.
ExpressionStatement
);
6098
N(SyntaxKind.
ExpressionStatement
);
6162
N(SyntaxKind.
ExpressionStatement
);
6237
N(SyntaxKind.
ExpressionStatement
);
6324
N(SyntaxKind.
ExpressionStatement
);
6392
N(SyntaxKind.
ExpressionStatement
);
6458
N(SyntaxKind.
ExpressionStatement
);
6519
N(SyntaxKind.
ExpressionStatement
);
6589
N(SyntaxKind.
ExpressionStatement
);
6651
N(SyntaxKind.
ExpressionStatement
);
6730
N(SyntaxKind.
ExpressionStatement
);
6803
N(SyntaxKind.
ExpressionStatement
);
6859
N(SyntaxKind.
ExpressionStatement
);
6919
N(SyntaxKind.
ExpressionStatement
);
6980
N(SyntaxKind.
ExpressionStatement
);
7040
N(SyntaxKind.
ExpressionStatement
);
7096
N(SyntaxKind.
ExpressionStatement
);
7152
N(SyntaxKind.
ExpressionStatement
);
7212
N(SyntaxKind.
ExpressionStatement
);
7273
N(SyntaxKind.
ExpressionStatement
);
7325
N(SyntaxKind.
ExpressionStatement
);
7391
N(SyntaxKind.
ExpressionStatement
);
7463
N(SyntaxKind.
ExpressionStatement
);
7534
N(SyntaxKind.
ExpressionStatement
);
7609
N(SyntaxKind.
ExpressionStatement
);
7679
N(SyntaxKind.
ExpressionStatement
);
7747
N(SyntaxKind.
ExpressionStatement
);
7819
N(SyntaxKind.
ExpressionStatement
);
7886
N(SyntaxKind.
ExpressionStatement
);
7947
N(SyntaxKind.
ExpressionStatement
);
8003
N(SyntaxKind.
ExpressionStatement
);
8056
N(SyntaxKind.
ExpressionStatement
);
8105
N(SyntaxKind.
ExpressionStatement
);
8125
N(SyntaxKind.
ExpressionStatement
);
8204
N(SyntaxKind.
ExpressionStatement
);
8267
N(SyntaxKind.
ExpressionStatement
);
9775
N(SyntaxKind.
ExpressionStatement
);
10055
N(SyntaxKind.
ExpressionStatement
);
10160
N(SyntaxKind.
ExpressionStatement
);
10725
N(SyntaxKind.
ExpressionStatement
);
10783
M(SyntaxKind.
ExpressionStatement
);
10853
M(SyntaxKind.
ExpressionStatement
);
11096
N(SyntaxKind.
ExpressionStatement
);
11650
N(SyntaxKind.
ExpressionStatement
);
11709
N(SyntaxKind.
ExpressionStatement
);
11872
N(SyntaxKind.
ExpressionStatement
);
12060
N(SyntaxKind.
ExpressionStatement
);
12355
N(SyntaxKind.
ExpressionStatement
);
13505
N(SyntaxKind.
ExpressionStatement
);
14740
N(SyntaxKind.
ExpressionStatement
);
Parsing\DeconstructionTests.cs (35)
71
N(SyntaxKind.
ExpressionStatement
);
387
N(SyntaxKind.
ExpressionStatement
);
471
N(SyntaxKind.
ExpressionStatement
);
622
N(SyntaxKind.
ExpressionStatement
);
714
N(SyntaxKind.
ExpressionStatement
);
804
N(SyntaxKind.
ExpressionStatement
);
917
N(SyntaxKind.
ExpressionStatement
);
994
N(SyntaxKind.
ExpressionStatement
);
1081
N(SyntaxKind.
ExpressionStatement
);
1155
N(SyntaxKind.
ExpressionStatement
);
1585
N(SyntaxKind.
ExpressionStatement
);
1785
N(SyntaxKind.
ExpressionStatement
);
1894
Assert.Equal(SyntaxKind.
ExpressionStatement
, statement.Kind());
1906
Assert.Equal(SyntaxKind.
ExpressionStatement
, statement.Kind());
1918
Assert.Equal(SyntaxKind.
ExpressionStatement
, statement.Kind());
1930
Assert.Equal(SyntaxKind.
ExpressionStatement
, statement.Kind());
1947
Assert.Equal(SyntaxKind.
ExpressionStatement
, statement.Kind());
2427
N(SyntaxKind.
ExpressionStatement
);
2492
N(SyntaxKind.
ExpressionStatement
);
2570
N(SyntaxKind.
ExpressionStatement
);
2633
N(SyntaxKind.
ExpressionStatement
);
2931
N(SyntaxKind.
ExpressionStatement
);
2971
N(SyntaxKind.
ExpressionStatement
);
3025
N(SyntaxKind.
ExpressionStatement
);
3079
N(SyntaxKind.
ExpressionStatement
);
3138
N(SyntaxKind.
ExpressionStatement
);
3199
N(SyntaxKind.
ExpressionStatement
);
3253
N(SyntaxKind.
ExpressionStatement
);
3305
N(SyntaxKind.
ExpressionStatement
);
3408
N(SyntaxKind.
ExpressionStatement
);
3455
N(SyntaxKind.
ExpressionStatement
);
3517
N(SyntaxKind.
ExpressionStatement
);
3579
N(SyntaxKind.
ExpressionStatement
);
3626
N(SyntaxKind.
ExpressionStatement
);
3674
N(SyntaxKind.
ExpressionStatement
);
Parsing\ExpressionParsingTests.cs (16)
1385
N(SyntaxKind.
ExpressionStatement
);
1467
N(SyntaxKind.
ExpressionStatement
);
1563
N(SyntaxKind.
ExpressionStatement
);
1621
N(SyntaxKind.
ExpressionStatement
);
1649
N(SyntaxKind.
ExpressionStatement
);
1701
N(SyntaxKind.
ExpressionStatement
);
1729
N(SyntaxKind.
ExpressionStatement
);
1777
N(SyntaxKind.
ExpressionStatement
);
1809
N(SyntaxKind.
ExpressionStatement
);
3185
N(SyntaxKind.
ExpressionStatement
);
3201
N(SyntaxKind.
ExpressionStatement
);
3308
N(SyntaxKind.
ExpressionStatement
);
3768
N(SyntaxKind.
ExpressionStatement
);
3784
N(SyntaxKind.
ExpressionStatement
);
4040
N(SyntaxKind.
ExpressionStatement
);
4524
N(SyntaxKind.
ExpressionStatement
);
Parsing\FieldKeywordParsingTests.cs (9)
298
N(SyntaxKind.
ExpressionStatement
);
568
N(SyntaxKind.
ExpressionStatement
);
635
N(SyntaxKind.
ExpressionStatement
);
719
N(SyntaxKind.
ExpressionStatement
);
812
N(SyntaxKind.
ExpressionStatement
);
1509
N(SyntaxKind.
ExpressionStatement
);
1587
N(SyntaxKind.
ExpressionStatement
);
1651
N(SyntaxKind.
ExpressionStatement
);
1801
N(SyntaxKind.
ExpressionStatement
);
Parsing\FileModifierParsingTests.cs (5)
2149
N(SyntaxKind.
ExpressionStatement
);
2183
N(SyntaxKind.
ExpressionStatement
);
3259
N(SyntaxKind.
ExpressionStatement
);
3335
N(SyntaxKind.
ExpressionStatement
);
3379
N(SyntaxKind.
ExpressionStatement
);
Parsing\FunctionPointerTests.cs (1)
1267
N(SyntaxKind.
ExpressionStatement
);
Parsing\LambdaAttributeParsingTests.cs (8)
3371
N(SyntaxKind.
ExpressionStatement
);
3398
N(SyntaxKind.
ExpressionStatement
);
3437
N(SyntaxKind.
ExpressionStatement
);
3474
N(SyntaxKind.
ExpressionStatement
);
3521
N(SyntaxKind.
ExpressionStatement
);
3645
N(SyntaxKind.
ExpressionStatement
);
4351
N(SyntaxKind.
ExpressionStatement
);
4485
N(SyntaxKind.
ExpressionStatement
);
Parsing\LambdaParameterParsingTests.cs (3)
239
N(SyntaxKind.
ExpressionStatement
);
3616
N(SyntaxKind.
ExpressionStatement
);
5083
N(SyntaxKind.
ExpressionStatement
);
Parsing\LocalFunctionParsingTests.cs (10)
130
N(SyntaxKind.
ExpressionStatement
);
254
N(SyntaxKind.
ExpressionStatement
);
1114
N(SyntaxKind.
ExpressionStatement
);
1476
N(SyntaxKind.
ExpressionStatement
);
1525
N(SyntaxKind.
ExpressionStatement
);
1542
N(SyntaxKind.
ExpressionStatement
);
1627
N(SyntaxKind.
ExpressionStatement
);
1647
N(SyntaxKind.
ExpressionStatement
);
2775
N(SyntaxKind.
ExpressionStatement
);
2987
N(SyntaxKind.
ExpressionStatement
);
Parsing\MemberDeclarationParsingTests.cs (9)
1112
N(SyntaxKind.
ExpressionStatement
);
2290
N(SyntaxKind.
ExpressionStatement
);
16190
N(SyntaxKind.
ExpressionStatement
);
16343
N(SyntaxKind.
ExpressionStatement
);
16756
N(SyntaxKind.
ExpressionStatement
);
16937
N(SyntaxKind.
ExpressionStatement
);
18185
N(SyntaxKind.
ExpressionStatement
);
18286
N(SyntaxKind.
ExpressionStatement
);
18384
N(SyntaxKind.
ExpressionStatement
);
Parsing\NameParsingTests.cs (5)
871
N(SyntaxKind.
ExpressionStatement
);
969
N(SyntaxKind.
ExpressionStatement
);
1091
N(SyntaxKind.
ExpressionStatement
);
1216
N(SyntaxKind.
ExpressionStatement
);
1366
N(SyntaxKind.
ExpressionStatement
);
Parsing\NullableParsingTests.cs (2)
1785
N(SyntaxKind.
ExpressionStatement
);
1821
N(SyntaxKind.
ExpressionStatement
);
Parsing\ParserRegressionTests.cs (2)
604
N(SyntaxKind.
ExpressionStatement
);
694
N(SyntaxKind.
ExpressionStatement
);
Parsing\ParsingErrorRecoveryTests.cs (29)
152
N(SyntaxKind.
ExpressionStatement
);
3401
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3424
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3447
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3470
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3494
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3517
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3540
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3583
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3608
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3633
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3659
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3683
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3707
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3732
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3756
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3780
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3804
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3829
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3853
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3877
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3902
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3928
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3954
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
3981
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
4006
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
4031
Assert.Equal(SyntaxKind.
ExpressionStatement
, ms.Body.Statements[0].Kind());
8056
N(SyntaxKind.
ExpressionStatement
);
8096
N(SyntaxKind.
ExpressionStatement
);
Parsing\PatternParsingTests.cs (61)
5395
N(SyntaxKind.
ExpressionStatement
);
8269
N(SyntaxKind.
ExpressionStatement
);
8331
N(SyntaxKind.
ExpressionStatement
);
8390
N(SyntaxKind.
ExpressionStatement
);
8439
N(SyntaxKind.
ExpressionStatement
);
8517
N(SyntaxKind.
ExpressionStatement
);
8687
N(SyntaxKind.
ExpressionStatement
);
8861
N(SyntaxKind.
ExpressionStatement
);
9020
N(SyntaxKind.
ExpressionStatement
);
9127
N(SyntaxKind.
ExpressionStatement
);
9165
N(SyntaxKind.
ExpressionStatement
);
9211
N(SyntaxKind.
ExpressionStatement
);
9256
N(SyntaxKind.
ExpressionStatement
);
9296
N(SyntaxKind.
ExpressionStatement
);
9362
N(SyntaxKind.
ExpressionStatement
);
9409
N(SyntaxKind.
ExpressionStatement
);
9464
N(SyntaxKind.
ExpressionStatement
);
9522
N(SyntaxKind.
ExpressionStatement
);
9588
N(SyntaxKind.
ExpressionStatement
);
9650
N(SyntaxKind.
ExpressionStatement
);
9714
N(SyntaxKind.
ExpressionStatement
);
9767
N(SyntaxKind.
ExpressionStatement
);
9906
N(SyntaxKind.
ExpressionStatement
);
9946
N(SyntaxKind.
ExpressionStatement
);
9994
N(SyntaxKind.
ExpressionStatement
);
10042
N(SyntaxKind.
ExpressionStatement
);
10097
N(SyntaxKind.
ExpressionStatement
);
10144
N(SyntaxKind.
ExpressionStatement
);
10192
N(SyntaxKind.
ExpressionStatement
);
10340
N(SyntaxKind.
ExpressionStatement
);
10381
N(SyntaxKind.
ExpressionStatement
);
10422
N(SyntaxKind.
ExpressionStatement
);
10463
N(SyntaxKind.
ExpressionStatement
);
10518
N(SyntaxKind.
ExpressionStatement
);
10563
N(SyntaxKind.
ExpressionStatement
);
10636
N(SyntaxKind.
ExpressionStatement
);
10673
N(SyntaxKind.
ExpressionStatement
);
10714
N(SyntaxKind.
ExpressionStatement
);
10756
N(SyntaxKind.
ExpressionStatement
);
10809
N(SyntaxKind.
ExpressionStatement
);
10858
N(SyntaxKind.
ExpressionStatement
);
10915
N(SyntaxKind.
ExpressionStatement
);
10976
N(SyntaxKind.
ExpressionStatement
);
11027
N(SyntaxKind.
ExpressionStatement
);
11079
N(SyntaxKind.
ExpressionStatement
);
11132
N(SyntaxKind.
ExpressionStatement
);
11189
N(SyntaxKind.
ExpressionStatement
);
11362
N(SyntaxKind.
ExpressionStatement
);
11405
N(SyntaxKind.
ExpressionStatement
);
11556
N(SyntaxKind.
ExpressionStatement
);
11616
N(SyntaxKind.
ExpressionStatement
);
11674
N(SyntaxKind.
ExpressionStatement
);
11805
N(SyntaxKind.
ExpressionStatement
);
11878
N(SyntaxKind.
ExpressionStatement
);
11986
N(SyntaxKind.
ExpressionStatement
);
12045
N(SyntaxKind.
ExpressionStatement
);
12126
N(SyntaxKind.
ExpressionStatement
);
12221
N(SyntaxKind.
ExpressionStatement
);
12327
N(SyntaxKind.
ExpressionStatement
);
12422
N(SyntaxKind.
ExpressionStatement
);
12527
N(SyntaxKind.
ExpressionStatement
);
Parsing\RecordParsing.cs (4)
1956
N(SyntaxKind.
ExpressionStatement
);
3151
N(SyntaxKind.
ExpressionStatement
);
3483
N(SyntaxKind.
ExpressionStatement
);
3759
N(SyntaxKind.
ExpressionStatement
);
Parsing\RefReadonlyTests.cs (1)
461
N(SyntaxKind.
ExpressionStatement
);
Parsing\ScriptParsingTests.cs (82)
105
N(SyntaxKind.
ExpressionStatement
);
159
N(SyntaxKind.
ExpressionStatement
);
213
N(SyntaxKind.
ExpressionStatement
);
317
N(SyntaxKind.
ExpressionStatement
);
350
N(SyntaxKind.
ExpressionStatement
);
389
N(SyntaxKind.
ExpressionStatement
);
427
N(SyntaxKind.
ExpressionStatement
);
1421
N(SyntaxKind.
ExpressionStatement
);
1458
N(SyntaxKind.
ExpressionStatement
);
2010
N(SyntaxKind.
ExpressionStatement
);
2618
N(SyntaxKind.
ExpressionStatement
);
2650
N(SyntaxKind.
ExpressionStatement
);
2682
N(SyntaxKind.
ExpressionStatement
);
4566
N(SyntaxKind.
ExpressionStatement
);
4607
N(SyntaxKind.
ExpressionStatement
);
4651
N(SyntaxKind.
ExpressionStatement
);
4703
N(SyntaxKind.
ExpressionStatement
);
4755
N(SyntaxKind.
ExpressionStatement
);
4804
N(SyntaxKind.
ExpressionStatement
);
4853
N(SyntaxKind.
ExpressionStatement
);
4903
N(SyntaxKind.
ExpressionStatement
);
4961
N(SyntaxKind.
ExpressionStatement
);
5019
N(SyntaxKind.
ExpressionStatement
);
5080
N(SyntaxKind.
ExpressionStatement
);
5149
N(SyntaxKind.
ExpressionStatement
);
5201
N(SyntaxKind.
ExpressionStatement
);
5261
N(SyntaxKind.
ExpressionStatement
);
5323
N(SyntaxKind.
ExpressionStatement
);
5393
N(SyntaxKind.
ExpressionStatement
);
5469
N(SyntaxKind.
ExpressionStatement
);
5547
N(SyntaxKind.
ExpressionStatement
);
5628
N(SyntaxKind.
ExpressionStatement
);
5723
N(SyntaxKind.
ExpressionStatement
);
5813
N(SyntaxKind.
ExpressionStatement
);
5862
N(SyntaxKind.
ExpressionStatement
);
5918
N(SyntaxKind.
ExpressionStatement
);
5967
N(SyntaxKind.
ExpressionStatement
);
6026
N(SyntaxKind.
ExpressionStatement
);
6090
N(SyntaxKind.
ExpressionStatement
);
6177
N(SyntaxKind.
ExpressionStatement
);
6230
N(SyntaxKind.
ExpressionStatement
);
6345
N(SyntaxKind.
ExpressionStatement
);
6402
N(SyntaxKind.
ExpressionStatement
);
6451
N(SyntaxKind.
ExpressionStatement
);
6497
N(SyntaxKind.
ExpressionStatement
);
6549
N(SyntaxKind.
ExpressionStatement
);
6609
N(SyntaxKind.
ExpressionStatement
);
6678
N(SyntaxKind.
ExpressionStatement
);
6753
N(SyntaxKind.
ExpressionStatement
);
6822
N(SyntaxKind.
ExpressionStatement
);
6884
N(SyntaxKind.
ExpressionStatement
);
6954
N(SyntaxKind.
ExpressionStatement
);
7024
N(SyntaxKind.
ExpressionStatement
);
7094
N(SyntaxKind.
ExpressionStatement
);
7164
N(SyntaxKind.
ExpressionStatement
);
7234
N(SyntaxKind.
ExpressionStatement
);
7304
N(SyntaxKind.
ExpressionStatement
);
7378
N(SyntaxKind.
ExpressionStatement
);
7461
N(SyntaxKind.
ExpressionStatement
);
7538
N(SyntaxKind.
ExpressionStatement
);
7594
N(SyntaxKind.
ExpressionStatement
);
7665
N(SyntaxKind.
ExpressionStatement
);
7739
N(SyntaxKind.
ExpressionStatement
);
7803
N(SyntaxKind.
ExpressionStatement
);
7904
N(SyntaxKind.
ExpressionStatement
);
7973
N(SyntaxKind.
ExpressionStatement
);
8086
N(SyntaxKind.
ExpressionStatement
);
8141
N(SyntaxKind.
ExpressionStatement
);
8211
N(SyntaxKind.
ExpressionStatement
);
8287
N(SyntaxKind.
ExpressionStatement
);
8365
N(SyntaxKind.
ExpressionStatement
);
8830
N(SyntaxKind.
ExpressionStatement
);
8886
N(SyntaxKind.
ExpressionStatement
);
8946
N(SyntaxKind.
ExpressionStatement
);
9006
N(SyntaxKind.
ExpressionStatement
);
9070
N(SyntaxKind.
ExpressionStatement
);
9121
N(SyntaxKind.
ExpressionStatement
);
9191
N(SyntaxKind.
ExpressionStatement
);
9210
N(SyntaxKind.
ExpressionStatement
);
9302
N(SyntaxKind.
ExpressionStatement
);
9359
N(SyntaxKind.
ExpressionStatement
);
9417
N(SyntaxKind.
ExpressionStatement
);
Parsing\StatementAttributeParsingTests.cs (42)
202
N(SyntaxKind.
ExpressionStatement
);
299
N(SyntaxKind.
ExpressionStatement
);
821
N(SyntaxKind.
ExpressionStatement
);
2585
N(SyntaxKind.
ExpressionStatement
);
3290
N(SyntaxKind.
ExpressionStatement
);
3373
N(SyntaxKind.
ExpressionStatement
);
3453
N(SyntaxKind.
ExpressionStatement
);
3535
N(SyntaxKind.
ExpressionStatement
);
3617
N(SyntaxKind.
ExpressionStatement
);
3707
N(SyntaxKind.
ExpressionStatement
);
3788
N(SyntaxKind.
ExpressionStatement
);
3862
N(SyntaxKind.
ExpressionStatement
);
3955
N(SyntaxKind.
ExpressionStatement
);
4046
N(SyntaxKind.
ExpressionStatement
);
4131
N(SyntaxKind.
ExpressionStatement
);
4291
N(SyntaxKind.
ExpressionStatement
);
4375
N(SyntaxKind.
ExpressionStatement
);
4463
N(SyntaxKind.
ExpressionStatement
);
4552
N(SyntaxKind.
ExpressionStatement
);
4641
N(SyntaxKind.
ExpressionStatement
);
4719
N(SyntaxKind.
ExpressionStatement
);
4802
N(SyntaxKind.
ExpressionStatement
);
4897
N(SyntaxKind.
ExpressionStatement
);
4988
N(SyntaxKind.
ExpressionStatement
);
5065
N(SyntaxKind.
ExpressionStatement
);
5145
N(SyntaxKind.
ExpressionStatement
);
5225
N(SyntaxKind.
ExpressionStatement
);
5303
N(SyntaxKind.
ExpressionStatement
);
5389
N(SyntaxKind.
ExpressionStatement
);
5474
N(SyntaxKind.
ExpressionStatement
);
5559
N(SyntaxKind.
ExpressionStatement
);
5579
N(SyntaxKind.
ExpressionStatement
);
5668
N(SyntaxKind.
ExpressionStatement
);
5777
N(SyntaxKind.
ExpressionStatement
);
5883
N(SyntaxKind.
ExpressionStatement
);
5982
N(SyntaxKind.
ExpressionStatement
);
6078
N(SyntaxKind.
ExpressionStatement
);
6153
N(SyntaxKind.
ExpressionStatement
);
6239
N(SyntaxKind.
ExpressionStatement
);
6323
N(SyntaxKind.
ExpressionStatement
);
6699
N(SyntaxKind.
ExpressionStatement
);
6730
N(SyntaxKind.
ExpressionStatement
);
Parsing\StatementParsingTests.cs (20)
41
M(SyntaxKind.
ExpressionStatement
);
59
Assert.Equal(SyntaxKind.
ExpressionStatement
, statement.Kind());
79
Assert.Equal(SyntaxKind.
ExpressionStatement
, statement.Kind());
99
Assert.Equal(SyntaxKind.
ExpressionStatement
, statement.Kind());
118
Assert.Equal(SyntaxKind.
ExpressionStatement
, statement.Kind());
138
Assert.Equal(SyntaxKind.
ExpressionStatement
, statement.Kind());
157
Assert.Equal(SyntaxKind.
ExpressionStatement
, statement.Kind());
2736
N(SyntaxKind.
ExpressionStatement
);
2773
N(SyntaxKind.
ExpressionStatement
);
3623
M(SyntaxKind.
ExpressionStatement
);
3698
M(SyntaxKind.
ExpressionStatement
);
3725
M(SyntaxKind.
ExpressionStatement
);
3808
M(SyntaxKind.
ExpressionStatement
);
3873
M(SyntaxKind.
ExpressionStatement
);
4065
N(SyntaxKind.
ExpressionStatement
);
4124
N(SyntaxKind.
ExpressionStatement
);
4251
N(SyntaxKind.
ExpressionStatement
);
4364
N(SyntaxKind.
ExpressionStatement
);
4528
N(SyntaxKind.
ExpressionStatement
);
4719
N(SyntaxKind.
ExpressionStatement
);
Parsing\SwitchExpressionParsingTests.cs (1)
410
N(SyntaxKind.
ExpressionStatement
);
Parsing\TopLevelStatementsParsingTests.cs (16)
40
N(SyntaxKind.
ExpressionStatement
);
191
N(SyntaxKind.
ExpressionStatement
);
353
N(SyntaxKind.
ExpressionStatement
);
535
N(SyntaxKind.
ExpressionStatement
);
625
N(SyntaxKind.
ExpressionStatement
);
905
N(SyntaxKind.
ExpressionStatement
);
1065
N(SyntaxKind.
ExpressionStatement
);
1076
N(SyntaxKind.
ExpressionStatement
);
1388
N(SyntaxKind.
ExpressionStatement
);
1425
N(SyntaxKind.
ExpressionStatement
);
1481
N(SyntaxKind.
ExpressionStatement
);
1589
N(SyntaxKind.
ExpressionStatement
);
2518
N(SyntaxKind.
ExpressionStatement
);
2547
N(SyntaxKind.
ExpressionStatement
);
2771
N(SyntaxKind.
ExpressionStatement
);
2858
N(SyntaxKind.
ExpressionStatement
);
Parsing\TypeArgumentListParsingTests.cs (18)
112
N(SyntaxKind.
ExpressionStatement
);
240
N(SyntaxKind.
ExpressionStatement
);
360
N(SyntaxKind.
ExpressionStatement
);
482
N(SyntaxKind.
ExpressionStatement
);
498
N(SyntaxKind.
ExpressionStatement
);
638
N(SyntaxKind.
ExpressionStatement
);
654
N(SyntaxKind.
ExpressionStatement
);
1087
N(SyntaxKind.
ExpressionStatement
);
1103
N(SyntaxKind.
ExpressionStatement
);
1229
N(SyntaxKind.
ExpressionStatement
);
1245
N(SyntaxKind.
ExpressionStatement
);
1371
N(SyntaxKind.
ExpressionStatement
);
1387
N(SyntaxKind.
ExpressionStatement
);
1515
N(SyntaxKind.
ExpressionStatement
);
1616
N(SyntaxKind.
ExpressionStatement
);
1845
N(SyntaxKind.
ExpressionStatement
);
2109
N(SyntaxKind.
ExpressionStatement
);
2243
N(SyntaxKind.
ExpressionStatement
);
Parsing\UsingDirectiveParsingTests.cs (10)
46
N(SyntaxKind.
ExpressionStatement
);
327
N(SyntaxKind.
ExpressionStatement
);
567
N(SyntaxKind.
ExpressionStatement
);
2635
N(SyntaxKind.
ExpressionStatement
);
2765
N(SyntaxKind.
ExpressionStatement
);
2889
N(SyntaxKind.
ExpressionStatement
);
3007
N(SyntaxKind.
ExpressionStatement
);
3105
N(SyntaxKind.
ExpressionStatement
);
3548
N(SyntaxKind.
ExpressionStatement
);
3595
N(SyntaxKind.
ExpressionStatement
);
Syntax\SyntaxRewriterTests.cs (2)
243
(node.IsKind(SyntaxKind.
ExpressionStatement
) && node.ToString().Contains("B")) ? null : node);
257
(node.IsKind(SyntaxKind.
ExpressionStatement
)) ? null : node);
Syntax\SyntaxTreeTests.cs (4)
1090
N(SyntaxKind.
ExpressionStatement
);
1146
N(SyntaxKind.
ExpressionStatement
);
1218
N(SyntaxKind.
ExpressionStatement
);
1276
N(SyntaxKind.
ExpressionStatement
);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
563
case SyntaxKind.
ExpressionStatement
:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
99
if (nodeParent.IsKind(SyntaxKind.
ExpressionStatement
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
140
public int ExpressionStatement => (int)SyntaxKind.
ExpressionStatement
;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1009
conditional.IsParentKind(SyntaxKind.
ExpressionStatement
) &&
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\ConvertToLibraryImportFixer.cs (2)
322
else if (invocation.Parent.IsKind(SyntaxKind.
ExpressionStatement
))
375
else if (invocation.Parent.IsKind(SyntaxKind.SimpleAssignmentExpression) && invocation.Parent.Parent.IsKind(SyntaxKind.
ExpressionStatement
))
Microsoft.ML.InternalCodeAnalyzer (1)
ContractsCheckAnalyzer.cs (1)
209
if (isExcept && invocation.Parent.IsKind(SyntaxKind.
ExpressionStatement
))
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\MethodXml\MethodXmlBuilder.cs (1)
73
case SyntaxKind.
ExpressionStatement
: