Skip to content

Add option to merge partial classes #33

@maxijonson

Description

@maxijonson

Is your feature request related to a problem? Please describe.
Currently, the output file contains a bunch of partial class directives, often one after the other, but sometimes scattered around the output. This makes the outputted file harder to read (e.g: especially for plugin reviewers who don't have access to the full structured repository).

Describe the solution you'd like
An option to merge partial classes into one non-partial class. This would also make plugins look more like most plugins where there's no evidence of a merge tool having been used.

The ultimate goal of this is to make the output plugin more readable. While it's common in software to have outputs not human-readable, the use-case for Rust plugins has a different reality. A lot of people who consume the final merged plugin may find it more enjoyable to look and edit for their own needs if they're working in a structured file, without needing to track down all the partial classes.

Describe alternatives you've considered
Nothing.

Additional context

  • This would probably come into conflict with orderings. Just something to keep in mind.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions