Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source generated formatters that support private members #1802

Merged
merged 5 commits into from
May 7, 2024
Merged

Commits on Apr 27, 2024

  1. Add private member serialization support for source generated formatters

    As the formatter must have access (per C# rules) to the private members, the formatter must be nested under the data type.
    This requires the data type (and any nesting types of that data type) to be declared as `partial` so that the source generated code can add the formatter as an `internal` member of it.
    Since traditionally data types haven't been required to be partial, we only nest the formatter under the data type when private members must be serialized; otherwise we continue to generate the formatter as nested under the generated resolver.
    
    Closes #1745
    AArnott committed Apr 27, 2024
    Configuration menu
    Copy the full SHA
    01d6388 View commit details
    Browse the repository at this point in the history
  2. Report MsgPack011 diagnostics

    AArnott committed Apr 27, 2024
    Configuration menu
    Copy the full SHA
    7a74a25 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6fa30a0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    74c7a54 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2024

  1. Configuration menu
    Copy the full SHA
    c76d56c View commit details
    Browse the repository at this point in the history