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