Skip to content

Use value equatable types #816

Description

@tautropfli

The cookbook recommends that source generators should pass along value equatable values so that the generator can short-circuit as soon as possible.

Our model (DiscriminatedUnion) currently includes lists without value equality and syntax nodes.
This prevents us from splitting the Emit function in two which would allow short-circuiting at that step.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions