Skip to content

UWPSyncGenerator should generate private constructor when appropriate #6895

Closed

Description

@Youssef1313

Current behavior

If the type doesn't have a public constructor, UWPSyncGenerator doesn't generate a private constructor, causing API to diverge from UWP if the developer wasn't careful enough and added the private ctor in the non-generated partial.

Expected behavior

UWPSyncGenerator should take care of that and generate private (or internal) constructor when there is no public constructor.

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Works on UWP/WinUI

No response

Environment

No response

NuGet package version(s)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

Activity

  1. added
    difficulty/tbd
    kind/bug
    triage/untriaged
    on Aug 27, 2021
  2. jeromelaban commented on Aug 27, 2021

    @jeromelaban
    Member

    This is being addressed by @ebariche in the api alignment branch

  3. Youssef1313 commented on Aug 29, 2021

    @Youssef1313
    MemberAuthor

    @ebariche Can you please let me know when you're done with updating the sync generator?

  4. Youssef1313 commented on Sep 20, 2021

    @Youssef1313
    MemberAuthor

    Ping @ebariche. Are you working on this? If not, I can jump on it as well as other UWPSyncGenerator issues that are going to be breaking changes.

  5. jeromelaban commented on Sep 21, 2021

    @jeromelaban
    Member

    @Youssef1313 it'll be done by elie part of similar work.

  6. self-assigned this
    on Feb 1, 2023
  7. Youssef1313 commented on Feb 1, 2023

    @Youssef1313
    MemberAuthor

    @jeromelaban I believe this wasn't done in Uno 4.
    Should I do this as part of the breaking changes for Uno 5? or is it not a big deal to do in 4.x?

  8. jeromelaban commented on Feb 1, 2023

    @jeromelaban
    Member

    We can do this for an Uno 5 release, yes.

  9. added
    area/code-generation
    difficulty/medium 🤔
    and removed
    triage/untriaged
    difficulty/tbd
    on Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/code-generationdifficulty/medium 🤔kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions