Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,20 @@ public static void ValidateHandlerMethod(
}
}

private static IEnumerable<IMethodSymbol> GetAllMethodsIncludingInherited(ITypeSymbol type, string methodName)
private static IReadOnlyList<IMethodSymbol> GetAllMethodsIncludingInherited(ITypeSymbol type, string methodName)
{
var methods = new List<IMethodSymbol>();
var currentType = type;
while (currentType is not null)
{
foreach (var member in currentType.GetMembers(methodName))
{
if (member is IMethodSymbol method)
yield return method;
methods.Add(method);
}
currentType = currentType.BaseType;
}
return methods;
}

private static bool SignatureMatches(IMethodSymbol method, bool hasPreImage, bool hasPostImage)
Expand Down