Skip to content

Commit

Permalink
Include property and event return types in RequiredNamespaceCollector
Browse files Browse the repository at this point in the history
  • Loading branch information
ElektroKill committed Nov 19, 2022
1 parent bfe3914 commit cd3d23e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ICSharpCode.Decompiler/CSharp/RequiredNamespaceCollector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,13 @@ void CollectNamespaces(IEntity entity, MetadataModule module, CodeMappingInfo ma
break;
case IProperty property:
HandleAttributes(property.GetAttributes());
CollectNamespacesForTypeReference(property.ReturnType);
CollectNamespaces(property.Getter, module, mappingInfo);
CollectNamespaces(property.Setter, module, mappingInfo);
break;
case IEvent @event:
HandleAttributes(@event.GetAttributes());
CollectNamespacesForTypeReference(@event.ReturnType);
CollectNamespaces(@event.AddAccessor, module, mappingInfo);
CollectNamespaces(@event.RemoveAccessor, module, mappingInfo);
break;
Expand Down

0 comments on commit cd3d23e

Please sign in to comment.