提交 4c15723d 编写于 作者: J Jason Malinowski

Show Analyzers that only contain source generators

We have logic where we try to hide assemblies that were passed with the
/analyzer flag, that were really dependencies of other analyzers. This
was incorrectly firing on an assembly that only contains source
generators.
上级 28b45084
......@@ -217,10 +217,12 @@ private ImmutableArray<AnalyzerReference> GetFilteredAnalyzers(IEnumerable<Analy
// Analyzer dependency:
// 1. Must be an Analyzer file reference (we don't understand other analyzer dependencies).
// 2. Mush have no diagnostic analyzers.
// 3. Must have non-null full path.
// 4. Must not have any assembly or analyzer load failures.
// 3. Must have no source generators.
// 4. Must have non-null full path.
// 5. Must not have any assembly or analyzer load failures.
if (analyzerReference is AnalyzerFileReference &&
analyzerReference.GetAnalyzers(project.Language).IsDefaultOrEmpty &&
analyzerReference.GetGenerators().IsDefaultOrEmpty &&
analyzerReference.FullPath != null &&
!analyzersWithLoadErrors.Contains(analyzerReference.FullPath))
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册