17 references to VisitedNodes
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (17)
SourceGeneration\SyntaxAwareGeneratorTests.cs (17)
253Assert.Equal(21, testReceiver.VisitedNodes.Count); 254Assert.IsType<CompilationUnitSyntax>(testReceiver.VisitedNodes[0]); 292Assert.Equal(21, testReceiver.VisitedNodes.Count); 293Assert.IsType<CompilationUnitSyntax>(testReceiver.VisitedNodes[0].Node); 294Assert.NotNull(testReceiver.VisitedNodes[0].SemanticModel); 295Assert.Equal(testReceiver.VisitedNodes[0].SemanticModel.SyntaxTree, testReceiver.VisitedNodes[0].Node.SyntaxTree); 335Assert.Equal(21, testReceiver.VisitedNodes.Count); 336Assert.IsType<CompilationUnitSyntax>(testReceiver.VisitedNodes[0]); 350Assert.Equal(21, testReceiver.VisitedNodes.Count); 351Assert.IsType<CompilationUnitSyntax>(testReceiver.VisitedNodes[0]); 475Assert.DoesNotContain(receiver1.VisitedNodes, n => n is MethodDeclarationSyntax); 476Assert.Contains(receiver2.VisitedNodes, n => n is MethodDeclarationSyntax); 529Assert.Equal(21, testReceiver.VisitedNodes.Count); 696var classDeclarations = testReceiver.VisitedNodes.OfType<ClassDeclarationSyntax>().Select(c => c.Identifier.Text); 753var classDeclarations = testReceiver.VisitedNodes.OfType<ClassDeclarationSyntax>().Select(c => c.Identifier.Text); 2138VisitedNodes.Add(syntaxNode);