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