83 references to ControlFlowGraphVerifier
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\ObjectAndCollectionInitializerTests.cs (4)
1110var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 1111ControlFlowGraphVerifier.VerifyGraph(comp, """ 3592var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 3593ControlFlowGraphVerifier.VerifyGraph(comp, """
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (34)
CodeGen\IndexAndRangeTests.cs (34)
134var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 135ControlFlowGraphVerifier.VerifyGraph(comp, """ 340var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 341ControlFlowGraphVerifier.VerifyGraph(comp, """ 427var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 428ControlFlowGraphVerifier.VerifyGraph(comp, """ 514var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 515ControlFlowGraphVerifier.VerifyGraph(comp, """ 698var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 699ControlFlowGraphVerifier.VerifyGraph(comp, """ 1623var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 1624ControlFlowGraphVerifier.VerifyGraph(comp, """ 1816var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 1817ControlFlowGraphVerifier.VerifyGraph(comp, """ 2352var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 2353ControlFlowGraphVerifier.VerifyGraph(comp, """ 2686var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 2687ControlFlowGraphVerifier.VerifyGraph(comp, """ 2849var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 2850ControlFlowGraphVerifier.VerifyGraph(comp, """ 3027var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 3028ControlFlowGraphVerifier.VerifyGraph(comp, """ 3141var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 3142ControlFlowGraphVerifier.VerifyGraph(comp, """ 3362var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 3363ControlFlowGraphVerifier.VerifyGraph(comp, """ 3649var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 3650ControlFlowGraphVerifier.VerifyGraph(comp, """ 3739var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 3740ControlFlowGraphVerifier.VerifyGraph(comp, """ 3825var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 3826ControlFlowGraphVerifier.VerifyGraph(comp, """ 3898var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 3899ControlFlowGraphVerifier.VerifyGraph(comp, """
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (11)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
2771ControlFlowGraphVerifier.VerifyGraph(compilation, expectedFlowGraph, actualFlowGraph, associatedSymbol);
Semantics\CollectionExpressionTests_WithElement_Constructor.cs (4)
441var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(root.DescendantNodes().OfType<BlockSyntax>().ToArray()[1], semanticModel); 442ControlFlowGraphVerifier.VerifyGraph(compilation, """ 553var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(root.DescendantNodes().OfType<BlockSyntax>().ToArray()[1], semanticModel); 554ControlFlowGraphVerifier.VerifyGraph(compilation, """
Semantics\CollectionExpressionTests_WithElement_Extra.cs (2)
1687var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(root.DescendantNodes().OfType<BlockSyntax>().Single(), semanticModel); 1688ControlFlowGraphVerifier.VerifyGraph(compilation, """
Semantics\PatternMatchingTests.cs (4)
11456var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(syntax, model); 11457ControlFlowGraphVerifier.VerifyGraph(comp, 11513var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(syntax, model); 11514ControlFlowGraphVerifier.VerifyGraph(comp,
Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests (1)
EndToEndTests.cs (1)
504ControlFlowGraphVerifier.VerifyGraph(comp, """
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (20)
IOperation\IOperationTests_ICollectionExpressionOperation.cs (14)
2587var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(root.DescendantNodes().OfType<BlockSyntax>().Single(), semanticModel); 2588ControlFlowGraphVerifier.VerifyGraph(compilation, """ 2709var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(root.DescendantNodes().OfType<BlockSyntax>().Single(), semanticModel); 2710ControlFlowGraphVerifier.VerifyGraph(compilation, """ 2834var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(root.DescendantNodes().OfType<BlockSyntax>().Single(), semanticModel); 2835ControlFlowGraphVerifier.VerifyGraph(compilation, """ 2956var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(root.DescendantNodes().OfType<BlockSyntax>().Single(), semanticModel); 2957ControlFlowGraphVerifier.VerifyGraph(compilation, """ 3107var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(root.DescendantNodes().OfType<BlockSyntax>().Single(), semanticModel); 3108ControlFlowGraphVerifier.VerifyGraph(compilation, """ 3261var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(root.DescendantNodes().OfType<BlockSyntax>().Single(), semanticModel); 3262ControlFlowGraphVerifier.VerifyGraph(compilation, """ 3415var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(root.DescendantNodes().OfType<BlockSyntax>().Single(), semanticModel); 3416ControlFlowGraphVerifier.VerifyGraph(compilation, """
IOperation\IOperationTests_IInterpolatedStringOperation.cs (6)
6509var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(mainDeclaration.Body, model); 6510ControlFlowGraphVerifier.VerifyGraph(comp, """ 6647var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(mainDeclaration.Body, model); 6648ControlFlowGraphVerifier.VerifyGraph(comp, """ 6784var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(mainDeclaration.Body, model); 6785ControlFlowGraphVerifier.VerifyGraph(comp, """
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\NullConditionalAssignmentTests.cs (4)
2742var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(methodDecl.Body, model); 2743ControlFlowGraphVerifier.VerifyGraph(comp, """ 2836var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(methodDecl.Body, model); 2837ControlFlowGraphVerifier.VerifyGraph(comp, """
Semantics\RefFieldTests.cs (2)
29380ControlFlowGraphVerifier.VerifyGraph(comp, 29434ControlFlowGraphVerifier.VerifyGraph(comp,
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CSharpTestBase.cs (2)
2718(ControlFlowGraph graph, ISymbol associatedSymbol) = ControlFlowGraphVerifier.GetControlFlowGraph(syntaxNode, model); 2719ControlFlowGraphVerifier.VerifyGraph(compilation, expectedFlowGraph, graph, associatedSymbol);
Microsoft.CodeAnalysis.Test.Utilities (3)
Compilation\CompilationExtensions.cs (3)
373ControlFlowGraphVerifier.GetFlowGraph(compilation, ControlFlowGraphBuilder.Create(blockOperation), associatedSymbol); 382ControlFlowGraphVerifier.GetFlowGraph(compilation, ControlFlowGraphBuilder.Create(root), associatedSymbol); 389ControlFlowGraphVerifier.GetFlowGraph(compilation, ControlFlowGraphBuilder.Create(root), associatedSymbol);
Microsoft.CodeAnalysis.UnitTests (2)
Diagnostics\OperationTests.cs (2)
356ControlFlowGraphVerifier.VerifyGraph(compilation, expectedCfg, cfgFromSyntax, cfgSymbol); 357ControlFlowGraphVerifier.VerifyGraph(compilation, expectedCfg, cfgFromOperation, cfgSymbol);