Skip to content

Commit

Permalink
Merge pull request #2843 from ElektroKill/fix/issue2842
Browse files Browse the repository at this point in the history
fixes #2842
  • Loading branch information
siegfriedpammer authored Nov 19, 2022
2 parents bfe3914 + cd3d23e commit 426d362
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 426d362

Please sign in to comment.