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)
129var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 130ControlFlowGraphVerifier.VerifyGraph(comp, """ 335var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 336ControlFlowGraphVerifier.VerifyGraph(comp, """ 422var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 423ControlFlowGraphVerifier.VerifyGraph(comp, """ 509var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 510ControlFlowGraphVerifier.VerifyGraph(comp, """ 693var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 694ControlFlowGraphVerifier.VerifyGraph(comp, """ 1618var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 1619ControlFlowGraphVerifier.VerifyGraph(comp, """ 1811var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 1812ControlFlowGraphVerifier.VerifyGraph(comp, """ 2347var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 2348ControlFlowGraphVerifier.VerifyGraph(comp, """ 2681var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 2682ControlFlowGraphVerifier.VerifyGraph(comp, """ 2844var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 2845ControlFlowGraphVerifier.VerifyGraph(comp, """ 3022var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 3023ControlFlowGraphVerifier.VerifyGraph(comp, """ 3136var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 3137ControlFlowGraphVerifier.VerifyGraph(comp, """ 3357var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 3358ControlFlowGraphVerifier.VerifyGraph(comp, """ 3644var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 3645ControlFlowGraphVerifier.VerifyGraph(comp, """ 3734var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 3735ControlFlowGraphVerifier.VerifyGraph(comp, """ 3820var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 3821ControlFlowGraphVerifier.VerifyGraph(comp, """ 3893var (graph, symbol) = ControlFlowGraphVerifier.GetControlFlowGraph(node.Parent.Parent, model); 3894ControlFlowGraphVerifier.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)
29371ControlFlowGraphVerifier.VerifyGraph(comp, 29425ControlFlowGraphVerifier.VerifyGraph(comp,
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CSharpTestBase.cs (2)
2674(ControlFlowGraph graph, ISymbol associatedSymbol) = ControlFlowGraphVerifier.GetControlFlowGraph(syntaxNode, model); 2675ControlFlowGraphVerifier.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);