Skip to content

New optimizer stage: collect unused statements #39

@rrdelaney

Description

@rrdelaney

If a statement is unused after some other optimizer stage, we should remove it. For example:

/* union type shim... */
external something a::[ | `String string | `Number float ] => float = "" [@bs.module "m"];

The union type shim should be removed because the union was inlined already.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions