2 overrides of Captured
Microsoft.CodeAnalysis.CSharp (1)
FlowAnalysis\CSharpDataFlowAnalysis.cs (1)
285public override ImmutableArray<ISymbol> Captured
Microsoft.CodeAnalysis.VisualBasic (1)
Analysis\FlowAnalysis\VisualBasicDataFlowAnalysis.vb (1)
237Public Overrides ReadOnly Property Captured As ImmutableArray(Of ISymbol)
481 references to Captured
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
195builder.AddRange(dataFlow.Captured.OfType<ILocalSymbol>());
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\MakeAnonymousFunctionStatic\MakeAnonymousFunctionStaticDiagnosticAnalyzer.cs (1)
49if (context.SemanticModel.AnalyzeDataFlow(anonymousFunction) is { Succeeded: true, Captured.IsEmpty: true })
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
141var capturedVariables = dataFlow.Captured.Remove(localSymbol);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (221)
FlowAnalysis\PatternMatchingTest5.cs (1)
43Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured));
FlowAnalysis\PatternsVsRegions.cs (5)
43Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 69Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 95Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 121Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 146Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured));
FlowAnalysis\RegionAnalysisTests.cs (211)
67Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 103Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 143Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 229Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 1355Assert.Equal(GetSymbolNamesJoined(results1.Captured), 1356GetSymbolNamesJoined(results2.Captured)); 1406Assert.Equal(GetSymbolNamesJoined(results1.Captured), 1407GetSymbolNamesJoined(results2.Captured)); 1589Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 1623Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 1663Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 1704Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 1745Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 1785Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 1821Assert.Equal("p", GetSymbolNamesJoined(analysis.Captured)); 1856Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 1891Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 1926Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 1961Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 2000Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 2040Assert.Equal("z", GetSymbolNamesJoined(analysis.Captured)); 2074Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 2112Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 2148Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 2185Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 2245Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 2279Assert.Null(GetSymbolNamesJoined(dataFlows.Captured)); 2308Assert.Null(GetSymbolNamesJoined(dataFlows.Captured)); 2341Assert.Null(GetSymbolNamesJoined(dataFlows.Captured)); 2502Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 2552Assert.Null(GetSymbolNamesJoined(dataFlowAnalysis.Captured)); 2582Assert.Null(GetSymbolNamesJoined(dataFlowAnalysis.Captured)); 2618Assert.Null(GetSymbolNamesJoined(dataFlowAnalysis.Captured)); 2652Assert.Null(GetSymbolNamesJoined(dataFlowAnalysis.Captured)); 3082Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 4533Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 4653Assert.Null(GetSymbolNamesJoined(dataFlow.Captured)); 4699Assert.Null(GetSymbolNamesJoined(dataFlow.Captured)); 5001Assert.Equal("this, i", GetSymbolNamesJoined(analysis.Captured)); 5021Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 5039Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 5057Assert.Equal("this", GetSymbolNamesJoined(analysis.Captured)); 5219Assert.Equal("this, x", GetSymbolNamesJoined(analysis.Captured)); 5307Assert.Null(GetSymbolNamesJoined(results1.Captured)); 5340Assert.Null(GetSymbolNamesJoined(results1.Captured)); 5372Assert.Null(GetSymbolNamesJoined(dataFlows.Captured)); 5409Assert.Equal("i", GetSymbolNamesJoined(dataFlows.Captured)); 5442Assert.Equal("num", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 5804Assert.Equal("num", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 5839Assert.Equal("num", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 5871Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 5903Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 5960Assert.Equal("y, x, b", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 6014Assert.Equal("i", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 6051Assert.Empty(dataFlowAnalysisResults.Captured); 6088Assert.Empty(dataFlowAnalysisResults.Captured); 6127Assert.Empty(dataFlowAnalysisResults.Captured); 6166Assert.Empty(dataFlowAnalysisResults.Captured); 6219Assert.Empty(flowAnalysis.Captured); 6230Assert.Equal("MyClass this", flowAnalysis.Captured.Single().ToTestDisplayString()); 6252Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 6320Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 6565Assert.Null(GetSymbolNamesJoined(results.Captured)); 6596Assert.Null(GetSymbolNamesJoined(results.Captured)); 6626Assert.Null(GetSymbolNamesJoined(results.Captured)); 6656Assert.Null(GetSymbolNamesJoined(results.Captured)); 6691Assert.Null(GetSymbolNamesJoined(results.Captured)); 6729Assert.Null(GetSymbolNamesJoined(results.Captured)); 6759Assert.Null(GetSymbolNamesJoined(results.Captured)); 6791Assert.Equal("x", GetSymbolNamesJoined(results.Captured)); 6818Assert.Equal("arg", GetSymbolNamesJoined(results.Captured)); 6848Assert.Equal("x", GetSymbolNamesJoined(results.Captured)); 6878Assert.Equal("x", GetSymbolNamesJoined(results.Captured)); 6908Assert.Equal("x", GetSymbolNamesJoined(results.Captured)); 6940Assert.Equal("this", GetSymbolNamesJoined(results.Captured)); 6974Assert.Equal("x, y", GetSymbolNamesJoined(results.Captured)); 7010Assert.Equal("x", GetSymbolNamesJoined(results.Captured)); 7042Assert.Equal("this, x, y", GetSymbolNamesJoined(analysis.Captured)); 7074Assert.Equal("this, x, y", GetSymbolNamesJoined(analysis.Captured)); 7115Assert.Equal("x", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7149Assert.Equal("x", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7185Assert.Equal("x", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7217Assert.Equal("x", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7254Assert.Equal("x", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7285Assert.Equal("x", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7316Assert.Equal("x", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7356Assert.Equal("x, y", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7399Assert.Equal("x, y", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7463Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7493Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7523Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7556Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7586Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7616Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7646Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7676Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7706Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7736Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7766Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7796Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7825Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7854Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7879Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7915Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 7965Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 8024Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 8060Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 8152Assert.Null(GetSymbolNamesJoined(results.Captured)); 8183Assert.Null(GetSymbolNamesJoined(results.Captured)); 8215Assert.Null(GetSymbolNamesJoined(results.Captured)); 8251Assert.Null(GetSymbolNamesJoined(results.Captured)); 8285Assert.Null(GetSymbolNamesJoined(results.Captured)); 8320Assert.Null(GetSymbolNamesJoined(results.Captured)); 8360Assert.Null(GetSymbolNamesJoined(results.Captured)); 8401Assert.Null(GetSymbolNamesJoined(results.Captured)); 8436Assert.Null(GetSymbolNamesJoined(results.Captured)); 8471Assert.Null(GetSymbolNamesJoined(results.Captured)); 8506Assert.Null(GetSymbolNamesJoined(results.Captured)); 8538Assert.Null(GetSymbolNamesJoined(results.Captured)); 8570Assert.Null(GetSymbolNamesJoined(results.Captured)); 8606Assert.Null(GetSymbolNamesJoined(results.Captured)); 8642Assert.Null(GetSymbolNamesJoined(results.Captured)); 8674Assert.Null(GetSymbolNamesJoined(results.Captured)); 8706Assert.Null(GetSymbolNamesJoined(results.Captured)); 8742Assert.Null(GetSymbolNamesJoined(results.Captured)); 8778Assert.Null(GetSymbolNamesJoined(results.Captured)); 8809Assert.Null(GetSymbolNamesJoined(results.Captured)); 8844Assert.Null(GetSymbolNamesJoined(results.Captured)); 8875Assert.Null(GetSymbolNamesJoined(results.Captured)); 8910Assert.Null(GetSymbolNamesJoined(results.Captured)); 9288Assert.Null(GetSymbolNamesJoined(results.Captured)); 9323Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 9358Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 9644Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 9699Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 9753Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 9911Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 10084Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 10124Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 10163Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 10203Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 10283Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 10363Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 10478Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 10531Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 10584Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 10760Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 10944Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 11024Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 11110Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 11163Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 11216Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 11343Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 11410Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 11477Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 11544Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 11585Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 11748Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 11829Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 11953Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 12077Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 12138Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 12210Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 12343Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 12405Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 12455Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 12489Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 12540Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 12575Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 12610Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 12645Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 12680Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 12715Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 12750Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 12785Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 12820Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 12855Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 12890Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 12925Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 12960Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 12995Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13030Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13065Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13100Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13135Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13170Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13215Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13249Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13284Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13319Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13354Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13392Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 13427Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13462Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13497Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13532Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13567Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13602Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13637Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13672Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13709Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 13744Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13779Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13814Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13849Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13884Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13924Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 13962Assert.Equal("x", GetSymbolNamesJoined(analysis.Captured)); 14002Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 14042Assert.Null(GetSymbolNamesJoined(analysis.Captured)); 14082Assert.Null(GetSymbolNamesJoined(analysis.Captured));
FlowAnalysis\TryLockUsingStatementTests.cs (4)
1097Assert.Equal("e", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 1140Assert.Equal("e", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 1187Assert.Equal("p, local, e", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)); 1234Assert.Equal("p, local, e", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured));
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\MakeAnonymousFunctionStatic\MakeAnonymousFunctionStaticDiagnosticAnalyzer.cs (1)
49if (context.SemanticModel.AnalyzeDataFlow(anonymousFunction) is { Succeeded: true, Captured.IsEmpty: true })
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
141var capturedVariables = dataFlow.Captured.Remove(localSymbol);
Microsoft.CodeAnalysis.Features (1)
ExtractMethod\MethodExtractor.Analyzer.cs (1)
522using var _0 = GetPooledSymbolSet(dataFlowAnalysisData.Captured, out var capturedMap);
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (253)
FlowAnalysis\FlowTestBase.vb (1)
229AssertEx.Equal(If(captured, {}), analysis.Captured.Select(Function(s) s.Name).ToArray())
FlowAnalysis\IterationJumpYieldStatementTests.vb (6)
793Assert.Empty(dataFlowAnalysisResults.Captured) 833Assert.Empty(dataFlowAnalysisResults.Captured) 869Assert.Empty(dataFlowAnalysisResults.Captured) 901Assert.Empty(dataFlowAnalysisResults.Captured) 988Assert.Empty(dataFlowAnalysisResults.Captured) 1204Assert.Equal("x", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured))
FlowAnalysis\RegionAnalysisTests.vb (92)
460Assert.Equal(Nothing, GetSymbolNamesJoined(analysis.Captured)) 492Assert.Equal(Nothing, GetSymbolNamesJoined(analysis.Captured)) 730Assert.Equal(Nothing, GetSymbolNamesJoined(analysis.Captured)) 1158Assert.Equal(Nothing, GetSymbolNamesJoined(analysis.Captured)) 1193Assert.Equal(Nothing, GetSymbolNamesJoined(analysis.Item2.Captured)) 1224Assert.Equal("Me, c", GetSymbolNamesJoined(analysis.Captured)) 1442Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysis.Captured)) 2236Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 2273Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 2630Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3559Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3646Assert.Equal(Nothing, GetSymbolNamesJoined(dataResults1.Captured)) 3680Assert.Equal(Nothing, GetSymbolNamesJoined(dataResults1.Captured)) 3725Assert.Equal("Me", GetSymbolNamesJoined(dataResults1.Captured)) 3796Assert.Equal(GetSymbolNamesJoined(dataResults1.Captured), 3797GetSymbolNamesJoined(dataResults2.Captured)) 3897Assert.Equal(GetSymbolNamesJoined(dataResults1.Captured), 3898GetSymbolNamesJoined(dataResults2.Captured)) 5530Assert.Equal("local", GetSymbolNamesJoined(analysisResult.Captured)) 5569Assert.Equal("mp, local", GetSymbolNamesJoined(analysisResult.Captured)) 5747Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 5791Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 5834Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 6041Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 6080Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 6120Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 6158Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 6243Assert.Equal("a, b", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 6294Assert.Equal("a, b", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 6341Assert.Equal("a, b", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 6387Assert.Equal("a, b", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 6433Assert.Equal("b", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 6478Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 6513Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 6556Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 6599Assert.Equal("localint", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 6644Assert.Equal("localint", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 6784Assert.Equal("goo, x", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 6856Assert.Empty(dataFlowResults.Captured) 6907Assert.Empty(dataFlowResults.Captured) 6953Assert.Equal("args, x, bb", GetSymbolNamesJoined(dataFlowResults.Captured)) 7002Assert.Equal("p, local", GetSymbolNamesJoined(dataFlowResults.Captured)) 7047Assert.Empty(dataFlowResults.Captured) 7304Assert.Empty(dataFlowResults.Captured) 7340Assert.Empty(dataFlowResults.Captured) 7378Assert.Empty(dataFlowResults.Captured) 7416Assert.Empty(dataFlowResults.Captured) 7450Assert.Empty(dataFlowResults.Captured) 7484Assert.Empty(dataFlowResults.Captured) 7624Assert.Equal("Me, x, y", GetSymbolNamesJoined(analysis.Captured)) 7655Assert.Equal("Me, x, y", GetSymbolNamesJoined(analysis.Captured)) 7813Assert.Equal("local", GetSymbolNamesJoined(dataFlowResults.Captured)) 7862Assert.Equal("args", GetSymbolNamesJoined(dataFlowResults.Captured)) 7903Assert.Equal("args", GetSymbolNamesJoined(dataFlowResults.Captured)) 7939Assert.Equal("Me", GetSymbolNamesJoined(dataFlowResults.Captured)) 7972Assert.Null(GetSymbolNamesJoined(dataFlowResults.Captured)) 8019Assert.Equal("Me", GetSymbolNamesJoined(dataFlowResults.Captured)) 8064Assert.Equal("Me", GetSymbolNamesJoined(dataFlowResults.Captured)) 8127Assert.Equal("Me", GetSymbolNamesJoined(dataFlowResults.Captured)) 8338Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 8375Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 8416Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 8480Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 8521Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 8559Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 8597Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 8639Assert.Equal("x", GetSymbolNamesJoined(dataFlowResults.Captured)) 8682Assert.Equal("x", GetSymbolNamesJoined(dataFlowResults.Captured)) 8725Assert.Equal("x", GetSymbolNamesJoined(dataFlowResults.Captured)) 8769Assert.Equal("x", GetSymbolNamesJoined(dataFlowResults.Captured)) 8813Assert.Equal("x", GetSymbolNamesJoined(dataFlowResults.Captured)) 8870Assert.Equal("x", GetSymbolNamesJoined(dataFlowResults.Captured)) 8927Assert.Equal("x", GetSymbolNamesJoined(dataFlowResults.Captured)) 8979Assert.Equal("x", GetSymbolNamesJoined(dataFlowResults.Captured)) 9031Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 9083Assert.Equal("Me", GetSymbolNamesJoined(dataFlowResults.Captured)) 9135Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 9187Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 9241Assert.Equal("Me", GetSymbolNamesJoined(dataFlowResults.Captured)) 9296Assert.Equal("Me", GetSymbolNamesJoined(dataFlowResults.Captured)) 9337Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 9380Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 9423Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 9474Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 9526Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 9570Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 9616Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 9667Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 9713Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 9746Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 9796Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 9835Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured))
FlowAnalysis\RegionAnalysisTestsWithStaticLocals.vb (68)
141Assert.Equal(Nothing, GetSymbolNamesJoined(analysis.Captured)) 253Assert.Equal(Nothing, GetSymbolNamesJoined(analysis.Captured)) 344Assert.Equal(Nothing, GetSymbolNamesJoined(analysis.Captured)) 1327Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1613Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 2258Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 2989Assert.Equal("local", GetSymbolNamesJoined(analysisResult.Captured)) 3027Assert.Equal("mp, local", GetSymbolNamesJoined(analysisResult.Captured)) 3188Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3232Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3275Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3346Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3385Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3425Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3463Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3548Assert.Equal("a, b", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3599Assert.Equal("a, b", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3646Assert.Equal("a, b", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3692Assert.Equal("a, b", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3738Assert.Equal("b", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3783Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3819Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3865Assert.Null(GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3909Assert.Equal("localint", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3955Assert.Equal("localint", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 4072Assert.Equal("goo, x", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 4144Assert.Empty(dataFlowResults.Captured) 4189Assert.Equal("args, x, bb", GetSymbolNamesJoined(dataFlowResults.Captured)) 4237Assert.Equal("p, local", GetSymbolNamesJoined(dataFlowResults.Captured)) 4281Assert.Empty(dataFlowResults.Captured) 4477Assert.Equal("Me, x, y", GetSymbolNamesJoined(analysis.Captured)) 4639Assert.Equal("local", GetSymbolNamesJoined(dataFlowResults.Captured)) 4689Assert.Equal("args", GetSymbolNamesJoined(dataFlowResults.Captured)) 4731Assert.Equal("args", GetSymbolNamesJoined(dataFlowResults.Captured)) 4768Assert.Equal("Me", GetSymbolNamesJoined(dataFlowResults.Captured)) 4802Assert.Null(GetSymbolNamesJoined(dataFlowResults.Captured)) 4850Assert.Equal("Me", GetSymbolNamesJoined(dataFlowResults.Captured)) 4896Assert.Equal("Me", GetSymbolNamesJoined(dataFlowResults.Captured)) 4960Assert.Equal("Me", GetSymbolNamesJoined(dataFlowResults.Captured)) 5132Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 5198Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 5240Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 5279Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 5318Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 5361Assert.Equal("x", GetSymbolNamesJoined(dataFlowResults.Captured)) 5405Assert.Equal("x", GetSymbolNamesJoined(dataFlowResults.Captured)) 5449Assert.Equal("x", GetSymbolNamesJoined(dataFlowResults.Captured)) 5494Assert.Equal("x", GetSymbolNamesJoined(dataFlowResults.Captured)) 5539Assert.Equal("x", GetSymbolNamesJoined(dataFlowResults.Captured)) 5597Assert.Equal("x", GetSymbolNamesJoined(dataFlowResults.Captured)) 5655Assert.Equal("x", GetSymbolNamesJoined(dataFlowResults.Captured)) 5708Assert.Equal("x", GetSymbolNamesJoined(dataFlowResults.Captured)) 5761Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 5814Assert.Equal("Me", GetSymbolNamesJoined(dataFlowResults.Captured)) 5869Assert.Equal("Me", GetSymbolNamesJoined(dataFlowResults.Captured)) 5925Assert.Equal("Me", GetSymbolNamesJoined(dataFlowResults.Captured)) 5966Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 6010Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 6054Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 6106Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 6159Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 6204Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 6251Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 6303Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 6350Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 6384Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 6435Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured)) 6475Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowResults.Captured))
FlowAnalysis\TryLockUsingStatementTests.vb (13)
1376Assert.Equal("e", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1426Assert.Equal("e", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1475Assert.Equal("p, local, e", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1524Assert.Equal("p, local, e", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1571Assert.Equal("p, local, e", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1606Assert.Equal("e", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1740Assert.Equal(0, dataFlowAnalysisResults.Captured.Count) 1789Assert.Equal(0, dataFlowAnalysisResults.Captured.Count) 1840Assert.Equal(0, dataFlowAnalysisResults.Captured.Count) 2207Assert.Equal(0, dataFlowAnalysisResults.Captured.Count) 2271Assert.Equal(0, dataFlowAnalysisResults.Captured.Count) 2329Assert.Equal(0, dataFlowAnalysisResults.Captured.Count) 2387Assert.Equal(0, dataFlowAnalysisResults.Captured.Count)
Semantics\IteratorTests.vb (1)
200Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured))
Semantics\MeMyBaseMyClassTests.vb (1)
155Assert.Equal("Me", GetSymbolNamesJoined(dataFlowResults.Captured))
Semantics\QueryExpressions_FlowAnalysis.vb (71)
215Assert.Equal("y, s1", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 266Assert.Equal("y, s1", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 317Assert.Equal("y", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 369Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 411Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 453Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 494Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 535Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 576Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 617Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 658Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 699Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 763Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 827Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 891Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1026Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1227Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1282Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1337Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1392Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1447Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1502Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1557Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1613Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1657Assert.Equal("y", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1707Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1763Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1819Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1875Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1927Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 1979Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 2031Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 2083Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 2135Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 2185Assert.Equal("q", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 2244Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 2303Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 2362Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 2420Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 2478Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 2536Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 2601Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 2666Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 2731Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 2795Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 2866Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 2937Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3008Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3079Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3150Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3221Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3276Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3331Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3386Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3441Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3496Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3551Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3606Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3661Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3718Assert.Equal("qi", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3775Assert.Equal("qi", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3832Assert.Equal("qi", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3889Assert.Equal("qi", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 3946Assert.Equal("qi", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 4003Assert.Equal("qi", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 4060Assert.Equal("qi", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 4117Assert.Equal("qi", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 4174Assert.Equal("qi", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 4231Assert.Equal("qi", GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 4267Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured)) 4300Assert.Equal(Nothing, GetSymbolNamesJoined(dataFlowAnalysisResults.Captured))
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.DataFlowAnalyzer.FlowGraphAnalysisData.cs (1)
195builder.AddRange(dataFlow.Captured.OfType<ILocalSymbol>());