Skip to content

Stop special-casing forwarded internal types#2315

Open
Sergio0694 wants to merge 1 commit intostaging/3.0from
user/sergiopedri/remove-special-io-forwarders
Open

Stop special-casing forwarded internal types#2315
Sergio0694 wants to merge 1 commit intostaging/3.0from
user/sergiopedri/remove-special-io-forwarders

Conversation

@Sergio0694
Copy link
Member

Only forward public top-level types now by removing the previous exception that allowed certain non-public SDK types (System.IO and Windows.Storage.Streams) to be forwarded. This simplifies the filtering logic and removes the IsForwardedInternalType helper and its documentation. No longer needed after #2312.

Only forward public top-level types now by removing the previous exception that allowed certain non-public SDK types (System.IO and Windows.Storage.Streams) to be forwarded. This simplifies the filtering logic and removes the IsForwardedInternalType helper and its documentation.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR simplifies WinRT.Impl.Generator type-forwarding behavior by removing special-casing for selected internal SDK types and forwarding only public top-level types, aligning with the updated stream infrastructure after #2312.

Changes:

  • Restrict type forwarding to exportedType.IsPublic only (removes internal-namespace exceptions).
  • Remove the IsForwardedInternalType helper method and its associated documentation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants