5 references to ReportUnusedImportsInTree
Microsoft.CodeAnalysis.CSharp (5)
Compilation\CSharpCompilation.cs (3)
2702
if (_lazyImportInfos != null && (filterTree is null ||
ReportUnusedImportsInTree
(filterTree)))
2717
if ((filterTree == null || filterTree == infoTree) &&
ReportUnusedImportsInTree
(infoTree))
3150
bool reportUnusedUsings = (!span.HasValue || span.Value == tree.GetRoot(cancellationToken).FullSpan) &&
ReportUnusedImportsInTree
(tree);
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (2)
1044
if (!Compilation.
ReportUnusedImportsInTree
(alias.ExternAliasDirective!.SyntaxTree))
1068
if (Compilation.
ReportUnusedImportsInTree
(usingDirective.SyntaxTree))