9 references to ReportUnusedImportsInTree
Microsoft.CodeAnalysis.CSharp (5)
Compilation\CSharpCompilation.cs (3)
2382
if (_lazyImportInfos != null && (filterTree is null ||
ReportUnusedImportsInTree
(filterTree)))
2397
if ((filterTree == null || filterTree == infoTree) &&
ReportUnusedImportsInTree
(infoTree))
2827
bool reportUnusedUsings = (!span.HasValue || span.Value == tree.GetRoot(cancellationToken).FullSpan) &&
ReportUnusedImportsInTree
(tree);
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (2)
996
if (!Compilation.
ReportUnusedImportsInTree
(alias.ExternAliasDirective!.SyntaxTree))
1020
if (Compilation.
ReportUnusedImportsInTree
(usingDirective.SyntaxTree))
Microsoft.CodeAnalysis.VisualBasic (4)
Compilation\VisualBasicCompilation.vb (2)
1697
If _lazyImportInfos IsNot Nothing AndAlso (filterTree Is Nothing OrElse
ReportUnusedImportsInTree
(filterTree)) Then
1704
If (filterTree Is Nothing OrElse filterTree Is infoTree) AndAlso
ReportUnusedImportsInTree
(infoTree) Then
Symbols\Source\SourceFile.vb (2)
364
If VisualBasicCompilation.
ReportUnusedImportsInTree
(location.PossiblyEmbeddedOrMySourceTree) Then
380
If Not VisualBasicCompilation.
ReportUnusedImportsInTree
(location.PossiblyEmbeddedOrMySourceTree) Then