2 types derived from DataFlowAnalysis
Microsoft.CodeAnalysis.CSharp (1)
FlowAnalysis\CSharpDataFlowAnalysis.cs (1)
24internal class CSharpDataFlowAnalysis : DataFlowAnalysis
Microsoft.CodeAnalysis.VisualBasic (1)
Analysis\FlowAnalysis\VisualBasicDataFlowAnalysis.vb (1)
18Inherits DataFlowAnalysis
588 references to DataFlowAnalysis
Microsoft.CodeAnalysis (6)
Compilation\Extensions.cs (2)
164public static DataFlowAnalysis AnalyzeDataFlow(this SemanticModel semanticModel, SyntaxNode firstStatement, SyntaxNode lastStatement) 173public static DataFlowAnalysis AnalyzeDataFlow(this SemanticModel semanticModel, SyntaxNode statementOrExpression)
Compilation\SemanticModel.cs (4)
695internal DataFlowAnalysis AnalyzeDataFlow(SyntaxNode firstStatement, SyntaxNode lastStatement) 711protected abstract DataFlowAnalysis AnalyzeDataFlowCore(SyntaxNode firstStatement, SyntaxNode lastStatement); 723internal DataFlowAnalysis AnalyzeDataFlow(SyntaxNode statementOrExpression) 738protected abstract DataFlowAnalysis AnalyzeDataFlowCore(SyntaxNode statementOrExpression);
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (2)
149var dataFlow = semanticModel.AnalyzeDataFlow( 162var exprDataFlow = semanticModel.AnalyzeDataFlow(assignmentExpression.Target.Syntax);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (2)
35public static DataFlowAnalysis AnalyzeRequiredDataFlow(this SemanticModel semanticModel, SyntaxNode statementOrExpression) 38public static DataFlowAnalysis AnalyzeRequiredDataFlow(this SemanticModel semanticModel, SyntaxNode firstStatement, SyntaxNode lastStatement)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
194var dataFlow = operation.SemanticModel.AnalyzeDataFlow(operation.Syntax);
Microsoft.CodeAnalysis.CSharp (16)
Compilation\CSharpSemanticModel.cs (7)
2440public virtual DataFlowAnalysis AnalyzeDataFlow(ConstructorInitializerSyntax constructorInitializer) 2451public virtual DataFlowAnalysis AnalyzeDataFlow(PrimaryConstructorBaseTypeSyntax primaryConstructorBaseType) 2462public virtual DataFlowAnalysis AnalyzeDataFlow(ExpressionSyntax expression) 2475public virtual DataFlowAnalysis AnalyzeDataFlow(StatementSyntax firstStatement, StatementSyntax lastStatement) 2486public virtual DataFlowAnalysis AnalyzeDataFlow(StatementSyntax statement) 5344protected sealed override DataFlowAnalysis AnalyzeDataFlowCore(SyntaxNode firstStatement, SyntaxNode lastStatement) 5369protected sealed override DataFlowAnalysis AnalyzeDataFlowCore(SyntaxNode statementOrExpression)
Compilation\SyntaxTreeSemanticModel.cs (4)
2234public override DataFlowAnalysis AnalyzeDataFlow(ExpressionSyntax expression) 2251public override DataFlowAnalysis AnalyzeDataFlow(ConstructorInitializerSyntax constructorInitializer) 2268public override DataFlowAnalysis AnalyzeDataFlow(PrimaryConstructorBaseTypeSyntax primaryConstructorBaseType) 2285public override DataFlowAnalysis AnalyzeDataFlow(StatementSyntax firstStatement, StatementSyntax lastStatement)
CSharpExtensions.cs (5)
1065public static DataFlowAnalysis? AnalyzeDataFlow(this SemanticModel? semanticModel, ConstructorInitializerSyntax constructorInitializer) 1074public static DataFlowAnalysis? AnalyzeDataFlow(this SemanticModel? semanticModel, PrimaryConstructorBaseTypeSyntax primaryConstructorBaseType) 1083public static DataFlowAnalysis? AnalyzeDataFlow(this SemanticModel? semanticModel, ExpressionSyntax expression) 1092public static DataFlowAnalysis? AnalyzeDataFlow(this SemanticModel? semanticModel, StatementSyntax firstStatement, StatementSyntax lastStatement) 1101public static DataFlowAnalysis? AnalyzeDataFlow(this SemanticModel? semanticModel, StatementSyntax statement)
Microsoft.CodeAnalysis.CSharp.CodeStyle (10)
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.Analyzer.cs (1)
44var dataFlow = semanticModel.AnalyzeDataFlow(nextStatement);
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (2)
202var dataFlow = semanticModel.AnalyzeDataFlow(outArgumentScope); 297var dataFlow = semanticModel.AnalyzeDataFlow(
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
292var analysis = semanticModel.AnalyzeDataFlow(localDeclarationStatement, ifStatement);
src\Analyzers\CSharp\Analyzers\MakeLocalFunctionStatic\MakeLocalFunctionStaticHelper.cs (4)
17private static bool TryGetDataFlowAnalysis(LocalFunctionStatementSyntax localFunction, SemanticModel semanticModel, [NotNullWhen(returnValue: true)] out DataFlowAnalysis? dataFlow) 23private static bool CanBeCalledFromStaticContext(LocalFunctionStatementSyntax localFunction, DataFlowAnalysis dataFlow) 39=> TryGetDataFlowAnalysis(localFunction, semanticModel, out var dataFlow) 45if (TryGetDataFlowAnalysis(localFunction, semanticModel, out var dataFlow) &&
src\Analyzers\CSharp\Analyzers\UseAutoProperty\CSharpUseAutoPropertyAnalyzer.cs (1)
140var dataFlow = semanticModel.AnalyzeDataFlow(memberAccess.Expression);
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
416var dataFlow = _semanticModel.AnalyzeDataFlow(firstStatement, lastStatement);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AbstractAssignOutParametersCodeFixProvider.cs (2)
39var dataFlow = semanticModel.AnalyzeDataFlow(location); 121var dataFlow = semanticModel.AnalyzeDataFlow(exprOrStatement);
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
138var dataFlow = semanticModel.AnalyzeDataFlow(localDeclaration);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (5)
SymbolKey\SymbolKeyMetadataVsSourceTests.cs (1)
261var df = model.AnalyzeDataFlow(body.Statements.First(), body.Statements.Last());
SymbolKey\SymbolKeyTestBase.cs (4)
286var df = model.AnalyzeDataFlow(declarator.Initializer.Value); 312var df = model.AnalyzeDataFlow(body); 325var df = model.AnalyzeDataFlow(a.Expression); 336private static void GetLocalAndType(DataFlowAnalysis df, List<ISymbol> list)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (495)
FlowAnalysis\FlowTestBase.cs (9)
87protected DataFlowAnalysis CompileAndAnalyzeDataFlowExpression(string program, params MetadataReference[] references) 92protected DataFlowAnalysis CompileAndAnalyzeDataFlowExpression(string program, TargetFramework targetFramework, params MetadataReference[] references) 97protected DataFlowAnalysis CompileAndAnalyzeDataFlowConstructorInitializer(string program, params MetadataReference[] references) 102protected DataFlowAnalysis CompileAndAnalyzeDataFlowPrimaryConstructorInitializer(string program, params MetadataReference[] references) 107protected DataFlowAnalysis CompileAndAnalyzeDataFlowStatements(string program) 112protected (ControlFlowAnalysis controlFlowAnalysis, DataFlowAnalysis dataFlowAnalysis) CompileAndAnalyzeControlAndDataFlowStatements(string program) 249protected IEnumerable<DataFlowAnalysis> CompileAndAnalyzeMultipleDataFlowStatements(string program, int treeindex = 0, int which = -1) 254protected IEnumerable<DataFlowAnalysis> CompileAndAnalyzeDataFlowMultipleExpressions(string program, int treeindex = 0, int which = -1) 259protected (IEnumerable<ControlFlowAnalysis>, IEnumerable<DataFlowAnalysis>) CompileAndAnalyzeControlAndDataFlowMultipleStatements(string program, int treeindex = 0, int which = -1)
FlowAnalysis\IterationJumpYieldStatementTests.cs (30)
41var dataFlowAnalysisResults = analysisResults.Item2; 75var dataFlowAnalysisResults = analysisResults.Item2; 105var dataFlowAnalysisResults = analysisResults.Item2; 135var dataFlowAnalysisResults = analysisResults.Item2; 165var dataFlowAnalysisResults = analysisResults.Item2; 194var dataFlowAnalysisResults = analysisResults.Item2; 224var dataFlowAnalysisResults = analysisResults.Item2; 253var dataFlowAnalysisResults = analysisResults.Item2; 299var dataFlowAnalysisResults = analysisResults.Item2; 328var dataFlowAnalysisResults = analysisResults.Item2; 357var dataFlowAnalysisResults = analysisResults.Item2; 386var dataFlowAnalysisResults = analysisResults.Item2; 415var dataFlowAnalysisResults = analysisResults.Item2; 444var dataFlowAnalysisResults = analysisResults.Item2; 568var dataFlowAnalysisResults = analysisResults.Item2; 624var analysis = CompileAndAnalyzeDataFlowStatements(@" 644var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 687var dataFlowAnalysisResults = analysisResults.Item2; 732var analysis = CompileAndAnalyzeDataFlowStatements(@" 752var analysis = CompileAndAnalyzeDataFlowStatements(@" 773var analysis = CompileAndAnalyzeDataFlowStatements(@" 805var analysis = CompileAndAnalyzeDataFlowStatements(@" 837var analysis = CompileAndAnalyzeDataFlowStatements(@" 883var dataFlowAnalysisResults = analysisResults.Item2; 915var flow = semanticModel.AnalyzeDataFlow(foreachNode); 974var dataFlowAnalysisResults = analysisResults.Item2; 1002var dataFlowAnalysisResults = analysisResults.Item2; 1030var dataFlowAnalysisResults = analysisResults.Item2; 1058var dataFlowAnalysisResults = analysisResults.Item2; 1101var dataFlowAnalysisResults = analysisResults.Item2;
FlowAnalysis\PatternMatchingTest5.cs (1)
23var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@"
FlowAnalysis\PatternsVsRegions.cs (5)
26var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression( 52var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression( 78var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression( 104var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression( 130var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(
FlowAnalysis\RegionAnalysisTests.cs (403)
37var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 75var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 111var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 152var analysis = CompileAndAnalyzeDataFlowExpression(@" 174var analysis = CompileAndAnalyzeDataFlowStatements(@" 247var analysis = CompileAndAnalyzeDataFlowExpression(@" 266var analysis = CompileAndAnalyzeDataFlowExpression(@" 288var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 313var results = CompileAndAnalyzeDataFlowExpression(@" 329var results = CompileAndAnalyzeDataFlowExpression(@" 353var results = CompileAndAnalyzeDataFlowExpression(@" 377var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 397var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 418var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 447var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 475var analysis = CompileAndAnalyzeDataFlowStatements(@" 494var analysis = CompileAndAnalyzeDataFlowExpression(@" 514var analysis = CompileAndAnalyzeDataFlowExpression(@" 535var analysis = CompileAndAnalyzeDataFlowExpression(@" 556var analysis = CompileAndAnalyzeDataFlowExpression(@" 577var analysis = CompileAndAnalyzeDataFlowExpression(@" 598var analysis = CompileAndAnalyzeDataFlowExpression(@" 619var analysis = CompileAndAnalyzeDataFlowExpression(@" 640var analysis = CompileAndAnalyzeDataFlowExpression(@" 661var analysis = CompileAndAnalyzeDataFlowExpression(@" 682var analysis = CompileAndAnalyzeDataFlowExpression(@" 703var analysis = CompileAndAnalyzeDataFlowExpression(@" 720var analysis = CompileAndAnalyzeDataFlowExpression(@" 737var analysis = CompileAndAnalyzeDataFlowExpression(@" 754var analysis = CompileAndAnalyzeDataFlowExpression(@" 771var analysis = CompileAndAnalyzeDataFlowExpression(@" 788var analysis = CompileAndAnalyzeDataFlowExpression(@" 805var analysis = CompileAndAnalyzeDataFlowExpression(@" 822var analysis = CompileAndAnalyzeDataFlowExpression(@" 842var analysis = CompileAndAnalyzeDataFlowExpression(@" 862var analysis = CompileAndAnalyzeDataFlowExpression(@" 881var analysis = CompileAndAnalyzeDataFlowExpression(@" 900var analysis = CompileAndAnalyzeDataFlowExpression(@" 920var analysis = CompileAndAnalyzeDataFlowExpression(@" 940var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 967var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 995var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 1023var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 1055var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 1071var analysis = CompileAndAnalyzeDataFlowExpression(@" 1089var dataFlows = CompileAndAnalyzeDataFlowExpression(@" 1112var dataFlows = CompileAndAnalyzeDataFlowExpression(@" 1135var dataFlows = CompileAndAnalyzeDataFlowExpression(@" 1155var dataFlows = CompileAndAnalyzeDataFlowExpression(@" 1180var dataFlows = CompileAndAnalyzeDataFlowExpression(@" 1205var dataFlows = CompileAndAnalyzeDataFlowExpression(@" 1232var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 1260var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 1290var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 1321var results1 = CompileAndAnalyzeDataFlowExpression(@" 1337var results2 = CompileAndAnalyzeDataFlowExpression(@" 1383var results1 = CompileAndAnalyzeDataFlowExpression(@" 1391var results2 = CompileAndAnalyzeDataFlowExpression(@" 1432var dataFlows = CompileAndAnalyzeDataFlowExpression(@" 1449var dataFlows = CompileAndAnalyzeDataFlowExpression(@" 1468var dataFlows = CompileAndAnalyzeDataFlowExpression(@" 1486var dataFlows = CompileAndAnalyzeDataFlowExpression(@" 1505var dataFlows = CompileAndAnalyzeDataFlowExpression(@" 1522var dataFlows = CompileAndAnalyzeDataFlowExpression(@" 1545var dataFlows = CompileAndAnalyzeDataFlowExpression(@" 1559var analysis = CompileAndAnalyzeDataFlowStatements(@" 1578var analysis = CompileAndAnalyzeDataFlowExpression(@" 1612var analysis = CompileAndAnalyzeDataFlowExpression(@" 1646var analysis = CompileAndAnalyzeDataFlowExpression(@" 1686var analysis = CompileAndAnalyzeDataFlowExpression(@" 1726var analysis = CompileAndAnalyzeDataFlowExpression(@" 1768var analysis = CompileAndAnalyzeDataFlowExpression(@" 1806var analysis = CompileAndAnalyzeDataFlowExpression(@" 1843var analysis = CompileAndAnalyzeDataFlowExpression(@" 1877var analysis = CompileAndAnalyzeDataFlowExpression(@" 1912var analysis = CompileAndAnalyzeDataFlowExpression(@" 1947var analysis = CompileAndAnalyzeDataFlowExpression(@" 1982var analysis = CompileAndAnalyzeDataFlowExpression(@" 2021var analysis = CompileAndAnalyzeDataFlowExpression(@" 2061var analysis = CompileAndAnalyzeDataFlowExpression(@" 2095var analysis = CompileAndAnalyzeDataFlowExpression(@" 2133var analysis = CompileAndAnalyzeDataFlowExpression(@" 2169var analysis = CompileAndAnalyzeDataFlowExpression(@" 2206var analysis = CompileAndAnalyzeDataFlowExpression(@" 2228var analysis = CompileAndAnalyzeDataFlowExpression(@" 2266var dataFlows = CompileAndAnalyzeDataFlowExpression(@" 2295var dataFlows = CompileAndAnalyzeDataFlowExpression(@" 2324var dataFlows = CompileAndAnalyzeDataFlowExpression(@" 2358var dataFlows = CompileAndAnalyzeDataFlowExpression( 2379var dataFlows = CompileAndAnalyzeDataFlowExpression( 2413var dataFlows = CompileAndAnalyzeDataFlowExpression( 2447var dataFlows = CompileAndAnalyzeDataFlowExpression( 2481var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 2536var propertyDataFlowAnalysis = dataFlowAnalysisResults.First(); 2537var fieldDataFlowAnalysis = dataFlowAnalysisResults.Skip(1).Single(); 2542void assertAllInfo(DataFlowAnalysis dataFlowAnalysis, string currentX, string currentY, string otherX, string otherY) 2562var dataFlowAnalysis = CompileAndAnalyzeDataFlowExpression(@" 2592var dataFlowAnalysis = CompileAndAnalyzeDataFlowExpression(@" 2628var dataFlowAnalysis = CompileAndAnalyzeDataFlowExpression(@" 2673var analysis = CompileAndGetModelAndConstructorInitializer(program, 2693var analysis = CompileAndGetModelAndConstructorInitializer(program, 2703var analysis = CompileAndAnalyzeDataFlowConstructorInitializer(@" 2718var analysis = CompileAndAnalyzeDataFlowConstructorInitializer(@" 2738var analysis = CompileAndAnalyzeDataFlowConstructorInitializer(@" 2784var analysis = CompileAndAnalyzeDataFlowConstructorInitializer(@" 2808var analysis = CompileAndGetModelAndPrimaryConstructorInitializer(program, 2823var analysis = CompileAndGetModelAndPrimaryConstructorInitializer(program, 2833var analysis = CompileAndAnalyzeDataFlowPrimaryConstructorInitializer(@" 2844var analysis = CompileAndAnalyzeDataFlowPrimaryConstructorInitializer(@" 2873var dataFlowAnalysisResults = analysisResults.Item2; 2906var dataFlowAnalysisResults = analysisResults.Item2; 2925var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements( 2946var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements( 2979var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression( 3006var dataFlowAnalysisResults = analysisResults.Item2; 3035var dataFlowAnalysisResults = analysisResults.Item2; 3068var dataFlowAnalysisResults = analysisResults.Item2; 3116var analysis = CompileAndAnalyzeDataFlowStatements(@" 3237var analysis = CompileAndAnalyzeDataFlowStatements(@" 3256var analysis = CompileAndAnalyzeDataFlowStatements(@" 3275var analysis = CompileAndAnalyzeDataFlowStatements(@" 3302var analysis = CompileAndAnalyzeDataFlowStatements(@" 3322var analysis = CompileAndAnalyzeDataFlowStatements(@" 3343var analysis = CompileAndAnalyzeDataFlowStatements(@" 3367var analysis = CompileAndAnalyzeDataFlowStatements(@" 3384var analysis = CompileAndAnalyzeDataFlowStatements(@" 3405var analysis = CompileAndAnalyzeDataFlowStatements(@" 3423var analysis = CompileAndAnalyzeDataFlowStatements(@"class Program 3441var analysis = CompileAndAnalyzeDataFlowStatements( 3462var analysis = CompileAndAnalyzeDataFlowStatements(@"class Program 3479var analysis = CompileAndAnalyzeDataFlowStatements(@"class Program 3497var analysis = CompileAndAnalyzeDataFlowStatements(@"class Program 3518var analysis = CompileAndAnalyzeDataFlowStatements(@"class Program 3540var analysis = CompileAndAnalyzeDataFlowStatements(@"class Program 3563var analysis = CompileAndAnalyzeDataFlowStatements(@"class Program 3580var analysis = CompileAndAnalyzeDataFlowStatements(@" 3601var analysis = CompileAndAnalyzeDataFlowStatements(@" 3620var analysis = CompileAndAnalyzeDataFlowStatements(@" 3636var analysis = CompileAndAnalyzeDataFlowStatements(@" 3654var analysis = CompileAndAnalyzeDataFlowStatements(@" 3674var analysis = CompileAndAnalyzeDataFlowStatements(@" 3690var analysis = CompileAndAnalyzeDataFlowStatements(@" 3714var analysis = CompileAndAnalyzeDataFlowStatements(@" 3732var analysis = CompileAndAnalyzeDataFlowStatements(@" 3749var analysis = CompileAndAnalyzeDataFlowStatements(@" 3769var analysis = CompileAndAnalyzeDataFlowStatements(@" 3787var analysis = CompileAndAnalyzeDataFlowStatements(@" 3820var dataFlowAnalysisResults = analysisResults.Item2; 3852var dataFlowAnalysisResults = analysisResults.Item2; 3884var dataFlowAnalysisResults = analysisResults.Item2; 3916var dataFlowAnalysisResults = analysisResults.Item2; 3981var dataFlowAnalysisResults = analysisResults.Item2; 4014var dataFlowAnalysisResults = analysisResults.Item2; 4032var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 4103var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 4132var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 4157var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 4202var dataFlowAnalysisResults = analysisResults.Item2; 4295var dataFlowAnalysisResults = analysisResults.Item2; 4314var analysis = CompileAndAnalyzeDataFlowStatements(@" 4357var dataFlows = results.Item2; 4383var dataFlows = results.Item2; 4406var dataFlows = results.Item2; 4448var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 4481var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 4529var dataFlowAnalysisResults = model.AnalyzeDataFlow(stmt1, stmt2); 4555var dataFlow = CompileAndAnalyzeDataFlowExpression(@" 4697var dataFlow = results.dataFlowAnalysis; 4989var analysis = CompileAndAnalyzeDataFlowExpression(@" 5011var analysis = CompileAndAnalyzeDataFlowExpression(@" 5029var analysis = CompileAndAnalyzeDataFlowExpression(@" 5047var analysis = CompileAndAnalyzeDataFlowExpression(@" 5078var dataFlowAnalysisResults = analysisResults.Item2; 5116var dataFlowAnalysisResults = analysisResults.Item2; 5145var dataFlowAnalysisResults = analysisResults.Item2; 5173var dataFlowAnalysisResults = analysisResults.Item2; 5183var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 5205var analysis = CompileAndAnalyzeDataFlowStatements(@" 5248var dataFlowAnalysisResults = analysisResults.Item2; 5277var dataFlowAnalysisResults = analysisResults.Item2; 5288var results1 = CompileAndAnalyzeDataFlowStatements(@" 5324var results1 = CompileAndAnalyzeDataFlowExpression(@" 5357var dataFlows = CompileAndAnalyzeDataFlowExpression(@" 5404var dataFlows = results.Item2; 5425var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 5493var flowAnalysis = model.AnalyzeDataFlow(methodBlock); 5538var flowAnalysis = model.AnalyzeDataFlow(node); 5582var flowAnalysis = model.AnalyzeDataFlow(node); 5625var flowAnalysis = model.AnalyzeDataFlow(node); 5657var dataFlowAnalysisResults = analysisResults.Item2; 5673var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 5703var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 5731var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 5758var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 5786var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 5821var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 5868var dataFlowAnalysisResults = analysisResults.Item2; 5887var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 5920var analysisResults = CompileAndAnalyzeDataFlowExpression(@" 5933var dataFlowAnalysisResults = analysisResults; 5941var analysisResults = CompileAndAnalyzeDataFlowExpression(@" 5959var dataFlowAnalysisResults = analysisResults; 5972var dataFlows = CompileAndAnalyzeDataFlowExpression( 5997var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 6033var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 6069var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 6106var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 6146var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 6218var flowAnalysis = model.AnalyzeDataFlow(invocation); 6242var analysisResults = CompileAndAnalyzeDataFlowExpression(@" 6249var dataFlowAnalysisResults = analysisResults; 6285var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowExpression(@" 6316var analysis = model.AnalyzeDataFlow(statement); 6356var analysis = model.AnalyzeDataFlow(statement); 6383var analysis = model.AnalyzeDataFlow(statement); 6427var analysis = model.AnalyzeDataFlow(statement); 6448var analysis = model.AnalyzeDataFlow(statement); 6483var analysis = model.AnalyzeDataFlow(expression); 6492var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 6529var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 6552var results = CompileAndAnalyzeDataFlowStatements(@" 6581var results = CompileAndAnalyzeDataFlowStatements(@" 6612var results = CompileAndAnalyzeDataFlowStatements(@" 6642var results = CompileAndAnalyzeDataFlowStatements(@" 6672var results = CompileAndAnalyzeDataFlowStatements(@" 6707var results = CompileAndAnalyzeDataFlowStatements(@" 6745var results = CompileAndAnalyzeDataFlowStatements(@" 6773var results = CompileAndAnalyzeDataFlowStatements(@" 6807var results = CompileAndAnalyzeDataFlowStatements(@" 6835var results = CompileAndAnalyzeDataFlowStatements(@" 6865var results = CompileAndAnalyzeDataFlowStatements(@" 6895var results = CompileAndAnalyzeDataFlowStatements(@" 6927var results = CompileAndAnalyzeDataFlowStatements(@" 6956var results = CompileAndAnalyzeDataFlowStatements(@" 6993var results = CompileAndAnalyzeDataFlowStatements(@" 7027var analysis = CompileAndAnalyzeDataFlowStatements(@" 7058var analysis = CompileAndAnalyzeDataFlowStatements(@" 7090var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 7121var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 7155var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 7191var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 7224var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 7260var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 7291var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 7322var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 7362var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(@" 7449var analysisResults = CompileAndAnalyzeDataFlowExpression(@" 7460var dataFlowAnalysisResults = analysisResults; 7479var analysisResults = CompileAndAnalyzeDataFlowExpression(@" 7490var dataFlowAnalysisResults = analysisResults; 7509var analysisResults = CompileAndAnalyzeDataFlowExpression(@" 7520var dataFlowAnalysisResults = analysisResults; 7539var analysisResults = CompileAndAnalyzeDataFlowExpression(@" 7553var dataFlowAnalysisResults = analysisResults; 7572var analysisResults = CompileAndAnalyzeDataFlowExpression(@" 7583var dataFlowAnalysisResults = analysisResults; 7602var analysisResults = CompileAndAnalyzeDataFlowExpression(@" 7613var dataFlowAnalysisResults = analysisResults; 7632var analysisResults = CompileAndAnalyzeDataFlowExpression(@" 7643var dataFlowAnalysisResults = analysisResults; 7662var analysisResults = CompileAndAnalyzeDataFlowExpression(@" 7673var dataFlowAnalysisResults = analysisResults; 7692var analysisResults = CompileAndAnalyzeDataFlowExpression(@" 7703var dataFlowAnalysisResults = analysisResults; 7722var analysisResults = CompileAndAnalyzeDataFlowExpression(@" 7733var dataFlowAnalysisResults = analysisResults; 7752var analysisResults = CompileAndAnalyzeDataFlowExpression(@" 7763var dataFlowAnalysisResults = analysisResults; 7782var analysisResults = CompileAndAnalyzeDataFlowExpression(@" 7793var dataFlowAnalysisResults = analysisResults; 7813var analysisResults = CompileAndAnalyzeDataFlowExpression(@" 7822var dataFlowAnalysisResults = analysisResults; 7842var analysisResults = CompileAndAnalyzeDataFlowExpression(@" 7851var dataFlowAnalysisResults = analysisResults; 7871var analysisResults = CompileAndAnalyzeDataFlowExpression(@" 7876var dataFlowAnalysisResults = analysisResults; 7912var dataFlowAnalysisResults = model.AnalyzeDataFlow(stmt); 7961var dataFlowAnalysisResults = analysisResults.Item2; 8019var analysisResults = CompileAndAnalyzeDataFlowStatements(s); 8020var dataFlowAnalysisResults = analysisResults; 8048var analysis = CompileAndAnalyzeDataFlowExpression(@" 8100var analysis = model.AnalyzeDataFlow(expr); 8128var analysis = model.AnalyzeDataFlow(expr); 8139var results = CompileAndAnalyzeDataFlowStatements(@" 8169var results = CompileAndAnalyzeDataFlowStatements(@" 8200var results = CompileAndAnalyzeDataFlowStatements(@" 8232var results = CompileAndAnalyzeDataFlowStatements(@" 8268var results = CompileAndAnalyzeDataFlowStatements(@" 8302var results = CompileAndAnalyzeDataFlowStatements(@" 8337var results = CompileAndAnalyzeDataFlowStatements(@" 8377var results = CompileAndAnalyzeDataFlowStatements(@" 8418var results = CompileAndAnalyzeDataFlowStatements(@" 8453var results = CompileAndAnalyzeDataFlowStatements(@" 8488var results = CompileAndAnalyzeDataFlowStatements(@" 8523var results = CompileAndAnalyzeDataFlowStatements(@" 8555var results = CompileAndAnalyzeDataFlowStatements(@" 8587var results = CompileAndAnalyzeDataFlowStatements(@" 8623var results = CompileAndAnalyzeDataFlowStatements(@" 8659var results = CompileAndAnalyzeDataFlowStatements(@" 8691var results = CompileAndAnalyzeDataFlowStatements(@" 8723var results = CompileAndAnalyzeDataFlowStatements(@" 8759var results = CompileAndAnalyzeDataFlowStatements(@" 8795var results = CompileAndAnalyzeDataFlowStatements(@" 8826var results = CompileAndAnalyzeDataFlowStatements(@" 8861var results = CompileAndAnalyzeDataFlowStatements(@" 8892var results = CompileAndAnalyzeDataFlowStatements(@" 8944var dataFlowAnalysisResults = analysisResults.Item2; 8970var dataFlowAnalysisResults = analysisResults.Item2; 8995var dataFlowAnalysisResults = analysisResults.Item2; 9117var analysis = CompileAndAnalyzeDataFlowExpression(@" 9132var analysis = CompileAndAnalyzeDataFlowExpression(@" 9147var analysis = CompileAndAnalyzeDataFlowExpression(@" 9163var analysis = CompileAndAnalyzeDataFlowExpression(@" 9179var analysis = CompileAndAnalyzeDataFlowExpression(@" 9195var analysis = CompileAndAnalyzeDataFlowExpression(@" 9210var analysis = CompileAndAnalyzeDataFlowExpression(@" 9226var analysis = CompileAndAnalyzeDataFlowExpression(@" 9266var results = CompileAndAnalyzeDataFlowExpression(@" 9305var analysis = CompileAndAnalyzeDataFlowExpression(@" 9339var analysis = CompileAndAnalyzeDataFlowExpression(@" 9641static void verify(DataFlowAnalysis analysis, string dataFlowsIn = null) 9696static void verify(DataFlowAnalysis analysis, bool thisIsAssignedOnEntry = true) 9750static void verify(DataFlowAnalysis analysis, string dataFlowsIn = null) 9908static void verify(DataFlowAnalysis analysis, string dataFlowsIn = null) 10081static void verify(DataFlowAnalysis analysis) 10121static void verify(DataFlowAnalysis analysis) 10160static void verify(DataFlowAnalysis analysis) 10200static void verify(DataFlowAnalysis analysis) 10280static void verify(DataFlowAnalysis analysis) 10360static void verify(DataFlowAnalysis analysis) 10475static void verify(DataFlowAnalysis analysis) 10528static void verify(DataFlowAnalysis analysis) 10581static void verify(DataFlowAnalysis analysis) 10757static void verify(DataFlowAnalysis analysis, string dataFlowsOut = "x") 10941static void verify(DataFlowAnalysis analysis, bool xIsAssignedOnEntry = true) 11021static void verify(DataFlowAnalysis analysis, string dataFlowsOut = "x") 11107static void verify(DataFlowAnalysis analysis) 11160static void verify(DataFlowAnalysis analysis, string dataFlowsOut = "x") 11213static void verify(DataFlowAnalysis analysis) 11340static void verify(DataFlowAnalysis analysis) 11407static void verify(DataFlowAnalysis analysis) 11474static void verify(DataFlowAnalysis analysis) 11541static void verify(DataFlowAnalysis analysis) 11582static void verify(DataFlowAnalysis analysis) 11745static void verify(DataFlowAnalysis analysis) 11826static void verify(DataFlowAnalysis analysis) 11950static void verify(DataFlowAnalysis analysis) 12074static void verify(DataFlowAnalysis analysis) 12135static void verify(DataFlowAnalysis analysis) 12207static void verify(DataFlowAnalysis analysis) 12340static void verify(DataFlowAnalysis analysis) 12393DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 12443DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 12477DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 12527DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 12562DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 12597DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 12632DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 12667DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 12702DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 12737DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 12772DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 12807DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 12842DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 12877DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 12912DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 12947DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 12982DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13017DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13052DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13087DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13122DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13157DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13192DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13236DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13271DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13306DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13341DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13376DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13414DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13449DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13484DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13519DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13554DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13589DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13624DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13659DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13693DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13731DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13766DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13801DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13836DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13871DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13911DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13946DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 13989DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 14029DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 14069DataFlowAnalysis analysis = CompileAndAnalyzeDataFlowExpression( 14123var flowAnalysis = model.AnalyzeDataFlow(assignment); 14146var flowAnalysis = model.AnalyzeDataFlow(assignment); 14173var flowAnalysis = model.AnalyzeDataFlow(decl); 14209var flowAnalysis = model.AnalyzeDataFlow(decl); 14254var flowAnalysis = model.AnalyzeDataFlow(decl);
FlowAnalysis\StructTests.cs (1)
111var dataFlowAnalysisResults = CompileAndAnalyzeDataFlowStatements(
FlowAnalysis\TryLockUsingStatementTests.cs (42)
47var dataFlowAnalysisResults = analysisResults.Item2; 85var dataFlowAnalysisResults = analysisResults.Item2; 141var dataFlowAnalysisResults = analysisResults.Item2; 199var dataFlowAnalysisResults = analysisResults.Item2; 257var dataFlowAnalysisResults = analysisResults.Item2; 295var dataFlowAnalysisResults = analysisResults.Item2; 340var dataFlowAnalysisResults = analysisResults.Item2; 401var dataFlowAnalysisResults = analysisResults.Item2; 446var dataFlowAnalysisResults = analysisResults.Item2; 488var dataFlowAnalysisResults = analysisResults.Item2; 532var dataFlowAnalysisResults = analysisResults.Item2; 575var dataFlowAnalysisResults = analysisResults.Item2; 615var dataFlowAnalysisResults = analysisResults.Item2; 660var dataFlowAnalysisResults = analysisResults.Item2; 707var dataFlowAnalysisResults = analysisResults.Item2; 742var dataFlowAnalysisResults = analysisResults.Item2; 779var dataFlowAnalysisResults = analysisResults.Item2; 816var dataFlowAnalysisResults = analysisResults.Item2; 862var dataFlowAnalysisResults = analysisResults.Item2; 901var dataFlowAnalysisResults = analysisResults.Item2; 945var dataFlowAnalysisResults = analysisResults.Item2; 993var dataFlowAnalysisResults = analysisResults.Item2; 1050var dataFlowResults01 = analysisResults01.Item2; 1051var dataFlowResults02 = analysisResults02.Item2; 1092var dataFlowAnalysisResults = analysisResults.Item2; 1135var dataFlowAnalysisResults = analysisResults.Item2; 1182var dataFlowAnalysisResults = analysisResults.Item2; 1229var dataFlowAnalysisResults = analysisResults.Item2; 1273var dataFlowAnalysisResults = analysisResults.Item2; 1313var dataFlowAnalysisResults = analysisResults.Item2; 1353var dataFlowAnalysisResults = analysisResults.Item2; 1393var dataFlowAnalysisResults = analysisResults.Item2; 1418var dataFlowAnalysisResults = analysisResults.Item2; 1428var analysis = CompileAndAnalyzeDataFlowStatements(@" 1455var analysis = CompileAndAnalyzeDataFlowStatements(@" 1524var analysis = CompileAndAnalyzeDataFlowStatements(@" 1552var analysis = CompileAndAnalyzeDataFlowStatements(@" 1580var analysis = CompileAndAnalyzeDataFlowStatements( 1610var analysis = CompileAndAnalyzeDataFlowStatements( 1641var analysis = CompileAndAnalyzeDataFlowStatements( 1691var analysisDataflow = analysis.Item2; 1730var analysisDataflow = analysis.Item2;
Semantics\OutVarTests.cs (3)
1108var dataFlow = model.AnalyzeDataFlow(dataFlowParent); 17751var dataFlow = model.AnalyzeDataFlow(x2Decl); 32795var dataFlow = model.AnalyzeDataFlow(dataFlowParent);
Semantics\PatternMatchingTestBase.cs (1)
331var dataFlow = model.AnalyzeDataFlow(dataFlowParent);
Microsoft.CodeAnalysis.CSharp.Features (14)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
79var dataFlow = semanticModel.AnalyzeDataFlow(
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.Analyzer.cs (1)
44var dataFlow = semanticModel.AnalyzeDataFlow(nextStatement);
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (2)
202var dataFlow = semanticModel.AnalyzeDataFlow(outArgumentScope); 297var dataFlow = semanticModel.AnalyzeDataFlow(
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
292var analysis = semanticModel.AnalyzeDataFlow(localDeclarationStatement, ifStatement);
src\Analyzers\CSharp\Analyzers\MakeLocalFunctionStatic\MakeLocalFunctionStaticHelper.cs (4)
17private static bool TryGetDataFlowAnalysis(LocalFunctionStatementSyntax localFunction, SemanticModel semanticModel, [NotNullWhen(returnValue: true)] out DataFlowAnalysis? dataFlow) 23private static bool CanBeCalledFromStaticContext(LocalFunctionStatementSyntax localFunction, DataFlowAnalysis dataFlow) 39=> TryGetDataFlowAnalysis(localFunction, semanticModel, out var dataFlow) 45if (TryGetDataFlowAnalysis(localFunction, semanticModel, out var dataFlow) &&
src\Analyzers\CSharp\Analyzers\UseAutoProperty\CSharpUseAutoPropertyAnalyzer.cs (1)
140var dataFlow = semanticModel.AnalyzeDataFlow(memberAccess.Expression);
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.Analyzer.cs (1)
416var dataFlow = _semanticModel.AnalyzeDataFlow(firstStatement, lastStatement);
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AbstractAssignOutParametersCodeFixProvider.cs (2)
39var dataFlow = semanticModel.AnalyzeDataFlow(location); 121var dataFlow = semanticModel.AnalyzeDataFlow(exprOrStatement);
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
138var dataFlow = semanticModel.AnalyzeDataFlow(localDeclaration);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\LambdaTests.cs (1)
7647var dataFlow = model.AnalyzeDataFlow(methodSyntax.Body);
Microsoft.CodeAnalysis.Features (9)
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
402var dataFlow = semanticModel.AnalyzeDataFlow(start, end);
ExtractMethod\MethodExtractor.Analyzer.cs (5)
96var dataFlowAnalysisData = GetDataFlowAnalysisData(model); 261DataFlowAnalysis dataFlowAnalysisData, 384private static bool ContainsVariableUnsafeAddressTaken(DataFlowAnalysis dataFlowAnalysisData, IEnumerable<ISymbol> symbols) 391private DataFlowAnalysis GetDataFlowAnalysisData(SemanticModel model) 509DataFlowAnalysis dataFlowAnalysisData,
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
253var analysis = semanticModel.AnalyzeDataFlow(syntax);
src\Analyzers\Core\Analyzers\UseThrowExpression\AbstractUseThrowExpressionDiagnosticAnalyzer.cs (2)
149var dataFlow = semanticModel.AnalyzeDataFlow( 162var exprDataFlow = semanticModel.AnalyzeDataFlow(assignmentExpression.Target.Syntax);
Microsoft.CodeAnalysis.VisualBasic (10)
Compilation\SemanticModel.vb (5)
2112Public Overridable Shadows Function AnalyzeDataFlow(expression As ExpressionSyntax) As DataFlowAnalysis 2123Public Overridable Shadows Function AnalyzeDataFlow(firstStatement As StatementSyntax, lastStatement As StatementSyntax) As DataFlowAnalysis 2132Public Overridable Shadows Function AnalyzeDataFlow(statement As StatementSyntax) As DataFlowAnalysis 3376Protected NotOverridable Overrides Function AnalyzeDataFlowCore(firstStatement As SyntaxNode, lastStatement As SyntaxNode) As DataFlowAnalysis 3381Protected NotOverridable Overrides Function AnalyzeDataFlowCore(statementOrExpression As SyntaxNode) As DataFlowAnalysis
Compilation\SyntaxTreeSemanticModel.vb (2)
1508Public Overrides Function AnalyzeDataFlow(firstStatement As StatementSyntax, lastStatement As StatementSyntax) As DataFlowAnalysis 1526Public Overrides Function AnalyzeDataFlow(expression As ExpressionSyntax) As DataFlowAnalysis
VisualBasicExtensions.vb (3)
1784Public Function AnalyzeDataFlow(semanticModel As SemanticModel, expression As ExpressionSyntax) As DataFlowAnalysis 1797Public Function AnalyzeDataFlow(semanticModel As SemanticModel, firstStatement As StatementSyntax, lastStatement As StatementSyntax) As DataFlowAnalysis 1810Public Function AnalyzeDataFlow(semanticModel As SemanticModel, statement As StatementSyntax) As DataFlowAnalysis
Microsoft.CodeAnalysis.VisualBasic.Features (1)
ExtractMethod\VisualBasicSelectionValidator.vb (1)
186Dim result As DataFlowAnalysis
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (8)
FlowAnalysis\FlowTestBase.vb (3)
65Protected Function CompileAndAnalyzeDataFlow(program As XElement, Optional ilSource As XCData = Nothing, Optional errors As XElement = Nothing) As DataFlowAnalysis 69Protected Function CompileAndAnalyzeControlAndDataFlow(program As XElement, Optional ilSource As XCData = Nothing, Optional errors As XElement = Nothing) As Tuple(Of ControlFlowAnalysis, DataFlowAnalysis) 124startNodes As List(Of VisualBasicSyntaxNode), endNodes As List(Of VisualBasicSyntaxNode)) As DataFlowAnalysis
Semantics\ForeachTest.vb (1)
1324Optional index As Integer = 1) As DataFlowAnalysis
Semantics\ForLoopTest.vb (1)
590Optional index As Integer = 1) As DataFlowAnalysis
Semantics\IFOperatorTest.vb (1)
1184Optional index As Integer = 1) As DataFlowAnalysis
Semantics\MultiDimensionalTest.vb (2)
334Optional index As Integer = 1) As DataFlowAnalysis 353Optional index As Integer = 1) As DataFlowAnalysis
Microsoft.CodeAnalysis.Workspaces (5)
ReassignedVariable\AbstractReassignedVariableService.cs (2)
336var dataFlow = semanticModel.AnalyzeDataFlow(id); 373bool DefinitelyAssignedOnEntry(DataFlowAnalysis? analysis, ISymbol? localOrParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (2)
35public static DataFlowAnalysis AnalyzeRequiredDataFlow(this SemanticModel semanticModel, SyntaxNode statementOrExpression) 38public static DataFlowAnalysis AnalyzeRequiredDataFlow(this SemanticModel semanticModel, SyntaxNode firstStatement, SyntaxNode lastStatement)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
194var dataFlow = operation.SemanticModel.AnalyzeDataFlow(operation.Syntax);