2 overrides of ExitPoints
Microsoft.CodeAnalysis.CSharp (1)
FlowAnalysis\ControlFlowAnalysis.cs (1)
57public override ImmutableArray<SyntaxNode> ExitPoints
Microsoft.CodeAnalysis.VisualBasic (1)
Analysis\FlowAnalysis\ControlFlowAnalysis.vb (1)
54Public Overrides ReadOnly Property ExitPoints As ImmutableArray(Of SyntaxNode)
248 references to ExitPoints
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenAwaitForeachTests.cs (1)
4242Assert.Equal(0, ctrlFlowAnalysis.ExitPoints.Count());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (79)
FlowAnalysis\IterationJumpYieldStatementTests.cs (39)
43Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count()); 77Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count()); 107Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 137Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 167Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 196Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 226Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 255Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 301Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 330Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 359Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 388Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 417Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 446Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 472Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 491Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 510Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 529Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 548Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 570Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 689Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 723Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 885Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count()); 938Assert.Equal(1, analysis.ExitPoints.Count()); 955Assert.Equal(1, analysis.ExitPoints.Count()); 976Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count()); 1004Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count()); 1032Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count()); 1060Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count()); 1103Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count()); 1168Assert.Equal(bkcount[idx], ctrlFlow.ExitPoints.Count()); 1233Assert.Equal(2, ctrlFlow.ExitPoints.Count()); 1237Assert.Equal(2, ctrlFlow.ExitPoints.Count()); 1241Assert.Equal(1, ctrlFlow.ExitPoints.Count()); 1323Assert.Equal(2, ctrlFlow.ExitPoints.Count()); 1327Assert.Equal(1, ctrlFlow.ExitPoints.Count()); 1331Assert.Equal(2, ctrlFlow.ExitPoints.Count()); 1335Assert.Equal(1, ctrlFlow.ExitPoints.Count()); 1351Assert.Empty(ctrlFlowAnalysis.ExitPoints);
FlowAnalysis\RegionAnalysisTests.cs (28)
2875Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 2908Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 3008Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 3037Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 3070Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 3183Assert.Equal(2, analysis.ExitPoints.Count()); 3231Assert.Equal(1, analysis.ExitPoints.Count()); 3822Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 3854Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 3886Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 3918Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 3983Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 4016Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 4069Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count()); 4096Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count()); 4204Assert.Equal(2, controlFlowAnalysisResults.ExitPoints.Count()); 4273Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count()); 4297Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 4889Assert.Equal(2, analysis.ExitPoints.Count()); 4912Assert.Equal(1, analysis.ExitPoints.Count()); 4961Assert.Equal(1, analysis.ExitPoints.Count()); 4983Assert.Equal(1, analysis.ExitPoints.Count()); 5080Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count()); 8946Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 8972Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count()); 8997Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count()); 9042Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 9091Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count());
FlowAnalysis\TryLockUsingStatementTests.cs (12)
49Assert.Empty(controlFlowAnalysisResults.ExitPoints); 87Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count()); 143Assert.Equal(3, controlFlowAnalysisResults.ExitPoints.Count()); 201Assert.Equal(5, controlFlowAnalysisResults.ExitPoints.Count()); 259Assert.Equal(2, controlFlowAnalysisResults.ExitPoints.Count()); 297Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 342Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 403Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 448Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()); 1514Assert.Empty(analysisControlFlow.ExitPoints); 1701Assert.Equal(1, analysisControlFlow.ExitPoints.Count()); 1740Assert.Equal(0, analysisControlFlow.ExitPoints.Count());
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertIfToSwitch\CSharpConvertIfToSwitchCodeRefactoringProvider.Analyzer.cs (1)
32=> !operation.SemanticModel.AnalyzeControlFlow(operation.Syntax).ExitPoints.Any(static n => n.IsKind(SyntaxKind.BreakStatement));
Microsoft.CodeAnalysis.Features (5)
ExtractMethod\MethodExtractor.Analyzer.cs (1)
805return ContainsReturnStatementInSelectedCode(controlFlowAnalysisData.ExitPoints);
ExtractMethod\SelectionValidator.cs (2)
50if (ContainsNonReturnExitPointsStatements(controlFlowAnalysisData.ExitPoints)) 56var returnStatements = GetOuterReturnStatements(range.Item1.GetCommonRoot(range.Item2), controlFlowAnalysisData.ExitPoints);
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (2)
350singleExitPoint = flow.ExitPoints.Length == 1 ? flow.ExitPoints[0] : null;
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (162)
FlowAnalysis\IterationJumpYieldStatementTests.vb (33)
41Assert.Equal(0, controlFlowAnalysis.ExitPoints.Count()) 63Assert.Equal(0, controlFlowAnalysis.ExitPoints.Count()) 92Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count()) 128Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count()) 159Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 189Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 220Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 252Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 284Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 335Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 366Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 397Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 430Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 461Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 484Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 507Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 530Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 551Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 575Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 614Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 656Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 787Assert.Equal(3, controlFlowAnalysisResults.ExitPoints.Count) 1300Assert.Empty(controlFlowAnalysisResults.ExitPoints) 1405Assert.Equal(2, controlFlowAnalysis.ExitPoints.Count()) 1443Assert.Equal(1, controlFlowAnalysis.ExitPoints.Count()) 1492Assert.Equal(1, analysis.ExitPoints.Count()) 1511Assert.Equal(1, analysis.ExitPoints.Count()) 1531Assert.Equal(1, analysis.ExitPoints.Count()) 1554Assert.Equal(1, analysis.ExitPoints.Count()) 1577Assert.Equal(1, analysis.ExitPoints.Count()) 1601Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count()) 1631Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count()) 1662Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count())
FlowAnalysis\RegionAnalysisTests.vb (46)
1025Assert.Equal(2, analysis.ExitPoints.Count()) 1294Assert.Equal(0, controlFlowAnalysis.ExitPoints.Count()) 1341Assert.Equal(0, controlFlowAnalysis.ExitPoints.Count()) 1366Assert.Equal(0, controlFlowAnalysis.ExitPoints.Count()) 1390Assert.Equal(0, controlFlowAnalysis.ExitPoints.Count()) 1415Assert.Equal(0, controlFlowAnalysis.ExitPoints.Count()) 1472Assert.Equal(0, controlFlowAnalysis.ExitPoints.Count()) 1584Assert.Equal(1, analysis.ExitPoints.Count()) 1605Assert.Equal(2, analysis.ExitPoints.Count()) 1626Assert.Equal(2, analysis.ExitPoints.Count()) 2223Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 2260Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 2617Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 2777Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 2812Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 3042Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 3081Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 3118Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 3155Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 3246Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 3472Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 3511Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 3546Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 3586Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 3621Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count()) 3942Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 3983Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 4583Assert.Equal(0, controlFlowAnalysis.ExitPoints.Count()) 6650Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count) 6847Assert.Equal(1, ctrlFlowResults.ExitPoints.Count()) 6898Assert.Equal(1, ctrlFlowResults.ExitPoints.Count()) 7682Assert.Equal(1, controlFlowAnalysis.ExitPoints.Count()) 7704Assert.Equal(1, controlFlowAnalysis.ExitPoints.Count()) 7727Assert.Equal(1, controlFlowAnalysis.ExitPoints.Count()) 7759Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 9330Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 9373Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 9416Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 9467Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 9519Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 9563Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 9609Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 9660Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 9706Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 9789Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 9827Assert.Equal(0, controlFlowResults.ExitPoints.Count())
FlowAnalysis\RegionAnalysisTestsWithStaticLocals.vb (39)
445Assert.Equal(0, controlFlowAnalysis.ExitPoints.Count()) 468Assert.Equal(0, controlFlowAnalysis.ExitPoints.Count()) 492Assert.Equal(0, controlFlowAnalysis.ExitPoints.Count()) 515Assert.Equal(0, controlFlowAnalysis.ExitPoints.Count()) 539Assert.Equal(0, controlFlowAnalysis.ExitPoints.Count()) 649Assert.Equal(1, analysis.ExitPoints.Count()) 671Assert.Equal(2, analysis.ExitPoints.Count()) 693Assert.Equal(2, analysis.ExitPoints.Count()) 1314Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 1600Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 1635Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 1727Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 1767Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 1805Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 1843Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 1937Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 2169Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 2209Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 2245Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 2285Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 2326Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 2503Assert.Equal(0, controlFlowAnalysis.ExitPoints.Count()) 3959Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count) 4135Assert.Equal(1, ctrlFlowResults.ExitPoints.Count()) 4504Assert.Equal(1, controlFlowAnalysis.ExitPoints.Count()) 4526Assert.Equal(1, controlFlowAnalysis.ExitPoints.Count()) 4549Assert.Equal(1, controlFlowAnalysis.ExitPoints.Count()) 4582Assert.Equal(0, controlFlowAnalysisResults.ExitPoints.Count()) 5959Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 6003Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 6047Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 6099Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 6152Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 6197Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 6244Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 6296Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 6343Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 6428Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 6467Assert.Equal(0, controlFlowResults.ExitPoints.Count())
FlowAnalysis\TryLockUsingStatementTests.vb (24)
56Assert.Equal(2, controlFlowAnalysis.ExitPoints.Count()) 106Assert.Equal(0, analysis.ExitPoints.Count()) 143Assert.Equal(1, controlFlowAnalysis.ExitPoints.Count()) 193Assert.Equal(2, controlFlowAnalysis.ExitPoints.Count()) 240Assert.Equal(2, controlFlowAnalysis.ExitPoints.Count()) 297Assert.Equal(2, controlFlowAnalysis.ExitPoints.Count()) 356Assert.Equal(1, controlFlowAnalysis.ExitPoints.Count()) 413Assert.Equal(0, controlFlowAnalysis.ExitPoints.Count()) 469Assert.Equal(3, controlFlowAnalysis.ExitPoints.Count()) 525Assert.Equal(2, controlFlowAnalysis.ExitPoints.Count()) 574Assert.Empty(controlFlowAnalysis.ExitPoints) 618Assert.Empty(controlFlowAnalysis.ExitPoints) 752Assert.Empty(controlFlowAnalysis.ExitPoints) 798Assert.Empty(controlFlowAnalysis.ExitPoints) 847Assert.Empty(controlFlowAnalysis.ExitPoints) 892Assert.Empty(controlFlowAnalysis.ExitPoints) 972Assert.Empty(controlFlowAnalysis.ExitPoints) 1031Assert.Equal(1, controlFlowAnalysis.ExitPoints.Count) 1124Assert.Empty(controlFlowAnalysis.ExitPoints) 1168Assert.Empty(controlFlowAnalysis.ExitPoints) 1224Assert.Empty(controlFlowAnalysis.ExitPoints) 1279Assert.Empty(controlFlowAnalysis.ExitPoints) 2121Assert.Equal(1, controlflowAnalysis.ExitPoints.Count) 2165Assert.Equal(1, controlflowAnalysis.ExitPoints.Count)
Semantics\ForeachTest.vb (1)
1349Assert.Equal(ExitPoints, analyze.ExitPoints.Count)
Semantics\ForLoopTest.vb (1)
615Assert.Equal(ExitPoints, analyze.ExitPoints.Count)
Semantics\GotoTests.vb (4)
61Assert.Equal(1, controlFlowResults.ExitPoints.Count) 105Assert.Equal(0, controlFlowResults.ExitPoints.Count) 147Assert.Equal(0, controlFlowResults.ExitPoints.Count) 172Assert.Equal(0, controlFlowResults.ExitPoints.Count)
Semantics\IteratorTests.vb (1)
189Assert.Equal(1, controlFlowAnalysisResults.ExitPoints.Count())
Semantics\MeMyBaseMyClassTests.vb (6)
46Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 86Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 120Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 192Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 228Assert.Equal(0, controlFlowResults.ExitPoints.Count()) 264Assert.Equal(0, controlFlowResults.ExitPoints.Count())
Semantics\SyncLockTests.vb (4)
51Assert.Equal(1, analysisControlflow.ExitPoints.Count()) 85Assert.Equal(1, analysisControlflow.ExitPoints.Count()) 118Assert.Equal(0, analysisControlflow.ExitPoints.Count()) 153Assert.Equal(0, analysisControlflow.ExitPoints.Count())
Semantics\WithBlockSemanticModelTests.vb (3)
153Assert.Equal(1, controlFlowResults.ExitPoints.Count) 182Assert.Empty(controlFlowResults.ExitPoints) 214Assert.Empty(controlFlowResults.ExitPoints)