Browse Source

Return valid modules only

pull/2496/head
Oleksandr Povar 4 years ago
parent
commit
be7d6a38af
  1. 3
      ILSpy/Analyzers/AnalyzerScope.cs

3
ILSpy/Analyzers/AnalyzerScope.cs

@ -77,7 +77,8 @@ namespace ICSharpCode.ILSpy.Analyzers
public IEnumerable<PEFile> GetAllModules() public IEnumerable<PEFile> GetAllModules()
{ {
return AssemblyList.GetAllAssemblies().GetAwaiter().GetResult() return AssemblyList.GetAllAssemblies().GetAwaiter().GetResult()
.Select(asm => asm.GetPEFileOrNull()); .Select(asm => asm.GetPEFileOrNull())
.Where(x => x != null);
} }
public IEnumerable<ITypeDefinition> GetTypesInScope(CancellationToken ct) public IEnumerable<ITypeDefinition> GetTypesInScope(CancellationToken ct)

Loading…
Cancel
Save