Skip to content

Removing AST Node in Compiler Pass #396

Description

@beastbytes

Version: 3.0.21

Bug Description

The Removing Nodes section of the Compiler Passes page states:

"You can remove a node entirely from the AST by returning the special constant NodeTraverser::RemoveNode from a visitor."

However, NodeTraverser::RemoveNode is not defined.

Steps To Reproduce

Return NodeTraverser::RemoveNode from a compiler pass.

Expected Behavior

Node to be removed from AST.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions