Skip to content

New versions of Fantomas require trivia to have some value #44

@UnoSD

Description

@UnoSD

Is your feature request related to a problem? Please describe.
After updating Myriad (and consequently Fantomas), all the generated code misses keywords, turns out new Fantomas versions require a non-None value for trivia, but most of the helpers generate it with None, causing all the generated AST to produce nonsense code.

Describe the solution you'd like
Can all the default record and helper methods generate trivia with Some Range.Zero by default?

Describe alternatives you've considered
Dropping FsAst and re-writing all the code to create unions directly
Cloning the repository and making the changes myself and reference locally

Additional context
Please see here: MoiraeSoftware/Myriad#154
Started playing with it here: a6649ec

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions