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