Add ENomatchReason for events, and properly handle them.

This commit is contained in:
Cj 2024-11-05 14:22:28 -05:00
parent 8a350c6818
commit e9d6b30e88
2 changed files with 4 additions and 2 deletions

View File

@ -26,4 +26,6 @@ public enum ENoMatchReason
NestedTypeInclude, NestedTypeInclude,
NestedTypeExclude, NestedTypeExclude,
NestedTypeCount, NestedTypeCount,
EventsInclude,
EventExclude
} }

View File

@ -393,7 +393,7 @@ public class ReCodeItRemapper
if (!types.Any()) if (!types.Any())
{ {
AllTypesFilteredOutFor(mapping, ENoMatchReason.PropertiesInclude); AllTypesFilteredOutFor(mapping, ENoMatchReason.EventsInclude);
mapping.TypeCandidates.UnionWith(types); mapping.TypeCandidates.UnionWith(types);
return false; return false;
} }
@ -402,7 +402,7 @@ public class ReCodeItRemapper
if (!types.Any()) if (!types.Any())
{ {
AllTypesFilteredOutFor(mapping, ENoMatchReason.PropertiesExclude); AllTypesFilteredOutFor(mapping, ENoMatchReason.EventExclude);
mapping.TypeCandidates.UnionWith(types); mapping.TypeCandidates.UnionWith(types);
return false; return false;
} }