Skip to content

Commit

Permalink
#112 - AllReferencedTypes - SearchIn.Interfaces, change to check all…
Browse files Browse the repository at this point in the history
… the types
  • Loading branch information
NeVeSpl committed Mar 23, 2024
1 parent 01e16a0 commit ef61aed
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public enum SearchIn
/// </summary>
BaseClass = 8,
/// <summary>
/// Interfaces
/// Implemented interfaces
/// </summary>
Interfaces = 16,
/// <summary>
Expand Down Expand Up @@ -74,17 +74,9 @@ public static IEnumerable<IType> AllReferencedTypes(this IType type, SearchIn se
InspectType(foundTypes, @class.BaseClass);
}
}

if (searchIn.HasFlag(SearchIn.Interfaces))
{
foreach (var @interface in @class.Interfaces)
{
InspectType(foundTypes, @interface);
}
}
}

if (type is IInterface)
if (type is IType)
{
if (searchIn.HasFlag(SearchIn.Interfaces))
{
Expand Down

0 comments on commit ef61aed

Please sign in to comment.