Skip to content

Stop walking all of AST on every pass #1204

Closed
@marijnh

Description

@marijnh

Most passes aren't interested in, for example, types, yet the default visitor runs through all type nodes on every walk anyway.

We could provide several variants of default_visitor(), which descend into different subsets of the AST, and make sure each pass uses the right variant.

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