Skip to content

proposal: run stage2 astgen when using stage1 #8970

Closed
@g-w1

Description

@g-w1

Stage2 has some desirable features that are missing in stage1 in astgen (and I plan to add more like unused variables). This proposal is to run astgen unconditionally on any zig file that is being compiled, c++ or zig implementation.
Pros:
catch more errors earlier
Cons:
a tiny bit slower

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThis proposal is planned.frontendTokenization, parsing, AstGen, Sema, and Liveness.proposalThis issue suggests modifications. If it also has the "accepted" label then it is planned.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions