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