2 types derived from ControlFlowAnalysis
Microsoft.CodeAnalysis.CSharp (1)
FlowAnalysis\ControlFlowAnalysis.cs (1)
20
internal class CSharpControlFlowAnalysis :
ControlFlowAnalysis
Microsoft.CodeAnalysis.VisualBasic (1)
Analysis\FlowAnalysis\ControlFlowAnalysis.vb (1)
22
Inherits
ControlFlowAnalysis
158 references to ControlFlowAnalysis
Microsoft.CodeAnalysis (6)
Compilation\Extensions.cs (2)
148
public static
ControlFlowAnalysis
AnalyzeControlFlow(this SemanticModel semanticModel, SyntaxNode firstStatement, SyntaxNode lastStatement)
156
public static
ControlFlowAnalysis
AnalyzeControlFlow(this SemanticModel semanticModel, SyntaxNode statement)
Compilation\SemanticModel.cs (4)
639
internal
ControlFlowAnalysis
AnalyzeControlFlow(SyntaxNode firstStatement, SyntaxNode lastStatement)
655
protected abstract
ControlFlowAnalysis
AnalyzeControlFlowCore(SyntaxNode firstStatement, SyntaxNode lastStatement);
667
internal
ControlFlowAnalysis
AnalyzeControlFlow(SyntaxNode statement)
682
protected abstract
ControlFlowAnalysis
AnalyzeControlFlowCore(SyntaxNode statement);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (2)
41
public static
ControlFlowAnalysis
AnalyzeRequiredControlFlow(this SemanticModel semanticModel, SyntaxNode statement)
44
public static
ControlFlowAnalysis
AnalyzeRequiredControlFlow(this SemanticModel semanticModel, SyntaxNode firstStatement, SyntaxNode lastStatement)
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (2)
94
var
controlFlow = GetControlFlowAnalysis(generator, semanticModel, node);
166
private static
ControlFlowAnalysis
? GetControlFlowAnalysis(SyntaxGenerator generator, SemanticModel semanticModel, SyntaxNode node)
Microsoft.CodeAnalysis.CSharp (7)
Compilation\CSharpSemanticModel.cs (4)
2419
public virtual
ControlFlowAnalysis
AnalyzeControlFlow(StatementSyntax firstStatement, StatementSyntax lastStatement)
2430
public virtual
ControlFlowAnalysis
AnalyzeControlFlow(StatementSyntax statement)
5297
protected sealed override
ControlFlowAnalysis
AnalyzeControlFlowCore(SyntaxNode firstStatement, SyntaxNode lastStatement)
5322
protected sealed override
ControlFlowAnalysis
AnalyzeControlFlowCore(SyntaxNode statement)
Compilation\SyntaxTreeSemanticModel.cs (1)
2190
public override
ControlFlowAnalysis
AnalyzeControlFlow(StatementSyntax firstStatement, StatementSyntax lastStatement)
CSharpExtensions.cs (2)
1047
public static
ControlFlowAnalysis
? AnalyzeControlFlow(this SemanticModel? semanticModel, StatementSyntax firstStatement, StatementSyntax lastStatement)
1056
public static
ControlFlowAnalysis
? AnalyzeControlFlow(this SemanticModel? semanticModel, StatementSyntax statement)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenAwaitForeachTests.cs (1)
4241
var
ctrlFlowAnalysis = model.AnalyzeControlFlow(loop);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (117)
FlowAnalysis\FlowTestBase.cs (4)
82
protected
ControlFlowAnalysis
CompileAndAnalyzeControlFlowStatements(string program)
112
protected (
ControlFlowAnalysis
controlFlowAnalysis, DataFlowAnalysis dataFlowAnalysis) CompileAndAnalyzeControlAndDataFlowStatements(string program)
244
protected IEnumerable<
ControlFlowAnalysis
> CompileAndAnalyzeMultipleControlFlowStatements(string program, int treeindex = 0, int which = -1)
259
protected (IEnumerable<
ControlFlowAnalysis
>, IEnumerable<DataFlowAnalysis>) CompileAndAnalyzeControlAndDataFlowMultipleStatements(string program, int treeindex = 0, int which = -1)
FlowAnalysis\IterationJumpYieldStatementTests.cs (37)
40
var
controlFlowAnalysisResults = analysisResults.Item1;
74
var
controlFlowAnalysisResults = analysisResults.Item1;
104
var
controlFlowAnalysisResults = analysisResults.Item1;
134
var
controlFlowAnalysisResults = analysisResults.Item1;
164
var
controlFlowAnalysisResults = analysisResults.Item1;
193
var
controlFlowAnalysisResults = analysisResults.Item1;
223
var
controlFlowAnalysisResults = analysisResults.Item1;
252
var
controlFlowAnalysisResults = analysisResults.Item1;
270
var
analysisResults = CompileAndAnalyzeControlFlowStatements(@"
298
var
controlFlowAnalysisResults = analysisResults.Item1;
327
var
controlFlowAnalysisResults = analysisResults.Item1;
356
var
controlFlowAnalysisResults = analysisResults.Item1;
385
var
controlFlowAnalysisResults = analysisResults.Item1;
414
var
controlFlowAnalysisResults = analysisResults.Item1;
443
var
controlFlowAnalysisResults = analysisResults.Item1;
461
var
controlFlowAnalysisResults = CompileAndAnalyzeControlFlowStatements(@"
480
var
controlFlowAnalysisResults = CompileAndAnalyzeControlFlowStatements(@"
499
var
controlFlowAnalysisResults = CompileAndAnalyzeControlFlowStatements(@"
518
var
controlFlowAnalysisResults = CompileAndAnalyzeControlFlowStatements(@"
537
var
controlFlowAnalysisResults = CompileAndAnalyzeControlFlowStatements(@"
567
var
controlFlowAnalysisResults = analysisResults.Item1;
595
var
controlFlowAnalysisResults = analysisResults.Item1;
612
var
controlFlowAnalysisResults = analysisResults.Item1;
686
var
controlFlowAnalysisResults = analysisResults.Item1;
720
var
controlFlowAnalysisResults = analysisResults.Item1;
882
var
controlFlowAnalysisResults = analysisResults.Item1;
928
var
analysis = CompileAndAnalyzeControlFlowStatements(@"
944
var
analysis = CompileAndAnalyzeControlFlowStatements(@"
973
var
controlFlowAnalysisResults = analysisResults.Item1;
1001
var
controlFlowAnalysisResults = analysisResults.Item1;
1029
var
controlFlowAnalysisResults = analysisResults.Item1;
1057
var
controlFlowAnalysisResults = analysisResults.Item1;
1100
var
controlFlowAnalysisResults = analysisResults.Item1;
1161
foreach (
var
ctrlFlow in ctrlFlowAnalysis)
1231
var
ctrlFlow = ctrlFlowAnalysis[0];
1321
var
ctrlFlow = ctrlFlowAnalysis[0];
1350
var
ctrlFlowAnalysis = CompileAndAnalyzeControlFlowStatements(source);
FlowAnalysis\RegionAnalysisTests.cs (45)
2872
var
controlFlowAnalysisResults = analysisResults.Item1;
2905
var
controlFlowAnalysisResults = analysisResults.Item1;
3005
var
controlFlowAnalysisResults = analysisResults.Item1;
3034
var
controlFlowAnalysisResults = analysisResults.Item1;
3067
var
controlFlowAnalysisResults = analysisResults.Item1;
3152
var
analysis = CompileAndAnalyzeControlFlowStatements(@"
3169
var
analysis = CompileAndAnalyzeControlFlowStatements(@"
3189
var
analysis = CompileAndAnalyzeControlFlowStatements(@"
3206
var
analysis = CompileAndAnalyzeControlFlowStatements(@"
3221
var
analysis = CompileAndAnalyzeControlFlowStatements(@"
3819
var
controlFlowAnalysisResults = analysisResults.Item1;
3851
var
controlFlowAnalysisResults = analysisResults.Item1;
3883
var
controlFlowAnalysisResults = analysisResults.Item1;
3915
var
controlFlowAnalysisResults = analysisResults.Item1;
3980
var
controlFlowAnalysisResults = analysisResults.Item1;
4013
var
controlFlowAnalysisResults = analysisResults.Item1;
4066
var
controlFlowAnalysisResults = analysisResults.Item1;
4093
var
controlFlowAnalysisResults = analysisResults.Item1;
4201
var
controlFlowAnalysisResults = analysisResults.Item1;
4271
var
controlFlowAnalysisResults = analysisResults.Item1;
4294
var
controlFlowAnalysisResults = analysisResults.Item1;
4356
var
ctrlFlows = results.Item1;
4382
var
ctrlFlows = results.Item1;
4405
var
ctrlFlows = results.Item1;
4712
var
controlFlow = results.controlFlowAnalysis;
4721
var
controlFlow = CompileAndAnalyzeControlFlowStatements(@"
4748
var
controlFlow = CompileAndAnalyzeControlFlowStatements(@"
4774
var
controlFlow = CompileAndAnalyzeControlFlowStatements(@"
4800
var
controlFlow = CompileAndAnalyzeControlFlowStatements(@"
4826
var
controlFlow = CompileAndAnalyzeControlFlowStatements(@"
4852
var
controlFlow = CompileAndAnalyzeControlFlowStatements(@"
4876
var
analysis = CompileAndAnalyzeControlFlowStatements(@"
4895
var
analysis = CompileAndAnalyzeControlFlowStatements(@"
4918
var
analysis = CompileAndAnalyzeControlFlowStatements(@"
4942
var
analysis = CompileAndAnalyzeControlFlowStatements(@"
4968
var
analysis = CompileAndAnalyzeControlFlowStatements(@"
5077
var
controlFlowAnalysisResults = analysisResults.Item1;
5247
var
controlFlowAnalysisResults = analysisResults.Item1;
5403
var
ctrlFlows = results.Item1;
6269
var
controlFlowAnalysisResults = CompileAndAnalyzeControlFlowStatements(@"
7405
var
analysis = CompileAndAnalyzeControlFlowStatements(@"
7427
var
analysis = CompileAndAnalyzeControlFlowStatements(@"
8943
var
controlFlowAnalysisResults = analysisResults.Item1;
8969
var
controlFlowAnalysisResults = analysisResults.Item1;
8994
var
controlFlowAnalysisResults = analysisResults.Item1;
FlowAnalysis\TryLockUsingStatementTests.cs (31)
46
var
controlFlowAnalysisResults = analysisResults.Item1;
84
var
controlFlowAnalysisResults = analysisResults.Item1;
140
var
controlFlowAnalysisResults = analysisResults.Item1;
198
var
controlFlowAnalysisResults = analysisResults.Item1;
256
var
controlFlowAnalysisResults = analysisResults.Item1;
294
var
controlFlowAnalysisResults = analysisResults.Item1;
339
var
controlFlowAnalysisResults = analysisResults.Item1;
400
var
controlFlowAnalysisResults = analysisResults.Item1;
445
var
controlFlowAnalysisResults = analysisResults.Item1;
487
var
controlFlowAnalysisResults = analysisResults.Item1;
531
var
controlFlowAnalysisResults = analysisResults.Item1;
574
var
controlFlowAnalysisResults = analysisResults.Item1;
614
var
controlFlowAnalysisResults = analysisResults.Item1;
659
var
controlFlowAnalysisResults = analysisResults.Item1;
706
var
controlFlowAnalysisResults = analysisResults.Item1;
815
var
controlFlowAnalysisResults = analysisResults.Item1;
861
var
controlFlowAnalysisResults = analysisResults.Item1;
900
var
controlFlowAnalysisResults = analysisResults.Item1;
944
var
controlFlowAnalysisResults = analysisResults.Item1;
992
var
controlFlowAnalysisResults = analysisResults.Item1;
1091
var
controlFlowAnalysisResults = analysisResults.Item1;
1134
var
controlFlowAnalysisResults = analysisResults.Item1;
1181
var
controlFlowAnalysisResults = analysisResults.Item1;
1228
var
controlFlowAnalysisResults = analysisResults.Item1;
1272
var
controlFlowAnalysisResults = analysisResults.Item1;
1312
var
controlFlowAnalysisResults = analysisResults.Item1;
1352
var
controlFlowAnalysisResults = analysisResults.Item1;
1392
var
controlFlowAnalysisResults = analysisResults.Item1;
1417
var
controlFlowAnalysisResults = analysisResults.Item1;
1690
var
analysisControlFlow = analysis.Item1;
1729
var
analysisControlFlow = analysis.Item1;
Microsoft.CodeAnalysis.Features (9)
ExtractMethod\MethodExtractor.Analyzer.cs (2)
426
var
analysis = model.AnalyzeControlFlow(pair.Item1, pair.Item2);
713
var
controlFlowAnalysisData = model.AnalyzeControlFlow(pair.Item1, pair.Item2);
ExtractMethod\SelectionValidator.cs (1)
41
var
controlFlowAnalysisData = semanticModel.AnalyzeControlFlow(range.Item1, range.Item2);
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (1)
345
var
flow = semanticModel.AnalyzeControlFlow(
SplitOrMergeIfStatements\Consecutive\AbstractMergeConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
220
var
controlFlow = semanticModel.AnalyzeControlFlow(insideStatements[0], insideStatements[insideStatements.Count - 1]);
SplitOrMergeIfStatements\Consecutive\AbstractSplitIntoConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
152
var
controlFlow = semanticModel.AnalyzeControlFlow(insideStatements[0], insideStatements[insideStatements.Count - 1]);
SplitOrMergeIfStatements\Nested\AbstractMergeNestedIfStatementsCodeRefactoringProvider.cs (1)
222
var
controlFlow = semanticModel.AnalyzeControlFlow(statements[0], statements[statements.Count - 1]);
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (2)
94
var
controlFlow = GetControlFlowAnalysis(generator, semanticModel, node);
166
private static
ControlFlowAnalysis
? GetControlFlowAnalysis(SyntaxGenerator generator, SemanticModel semanticModel, SyntaxNode node)
Microsoft.CodeAnalysis.VisualBasic (7)
Compilation\SemanticModel.vb (4)
2094
Public Overridable Shadows Function AnalyzeControlFlow(firstStatement As StatementSyntax, lastStatement As StatementSyntax) As
ControlFlowAnalysis
2103
Public Overridable Shadows Function AnalyzeControlFlow(statement As StatementSyntax) As
ControlFlowAnalysis
3402
Protected NotOverridable Overrides Function AnalyzeControlFlowCore(firstStatement As SyntaxNode, lastStatement As SyntaxNode) As
ControlFlowAnalysis
3407
Protected NotOverridable Overrides Function AnalyzeControlFlowCore(statement As SyntaxNode) As
ControlFlowAnalysis
Compilation\SyntaxTreeSemanticModel.vb (1)
1488
Public Overrides Function AnalyzeControlFlow(firstStatement As StatementSyntax, lastStatement As StatementSyntax) As
ControlFlowAnalysis
VisualBasicExtensions.vb (2)
1758
Public Function AnalyzeControlFlow(semanticModel As SemanticModel, firstStatement As StatementSyntax, lastStatement As StatementSyntax) As
ControlFlowAnalysis
1771
Public Function AnalyzeControlFlow(semanticModel As SemanticModel, statement As StatementSyntax) As
ControlFlowAnalysis
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (5)
FlowAnalysis\FlowTestBase.vb (3)
61
Protected Function CompileAndAnalyzeControlFlow(program As XElement, Optional ilSource As XCData = Nothing, Optional errors As XElement = Nothing) As
ControlFlowAnalysis
69
Protected Function CompileAndAnalyzeControlAndDataFlow(program As XElement, Optional ilSource As XCData = Nothing, Optional errors As XElement = Nothing) As Tuple(Of
ControlFlowAnalysis
, DataFlowAnalysis)
110
startNodes As List(Of VisualBasicSyntaxNode), endNodes As List(Of VisualBasicSyntaxNode)) As
ControlFlowAnalysis
Semantics\ForeachTest.vb (1)
1344
Optional index As Integer = 1) As
ControlFlowAnalysis
Semantics\ForLoopTest.vb (1)
610
Optional index As Integer = 1) As
ControlFlowAnalysis
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (2)
41
public static
ControlFlowAnalysis
AnalyzeRequiredControlFlow(this SemanticModel semanticModel, SyntaxNode statement)
44
public static
ControlFlowAnalysis
AnalyzeRequiredControlFlow(this SemanticModel semanticModel, SyntaxNode firstStatement, SyntaxNode lastStatement)