Skip to content

Commit f8353d3

Browse files
author
James May
committed
MethodUsedByAnalyzer: Hide for unresolved methods
1 parent 4a1f79a commit f8353d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ILSpy/Analyzers/Builtin/MethodUsedByAnalyzer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class MethodUsedByAnalyzer : IAnalyzer
3838
{
3939
const GetMemberOptions Options = GetMemberOptions.IgnoreInheritedMembers | GetMemberOptions.ReturnMemberDefinitions;
4040

41-
public bool Show(ISymbol symbol) => symbol is IMethod method && !method.IsVirtual;
41+
public bool Show(ISymbol symbol) => symbol is IMethod method && !method.IsVirtual && method.ParentModule is not null;
4242

4343
public IEnumerable<ISymbol> Analyze(ISymbol analyzedSymbol, AnalyzerContext context)
4444
{

0 commit comments

Comments
 (0)