Skip to content

Visitor does not support enter and leave for the root node #299

Closed
@dminkovsky

Description

@dminkovsky

Hi,

I encountered a problem with Visitor.visit() today. It does not support using both enter and leave on the root node. Here is a pull request that demonstrates the problem: #298. If I understand the problem correctly, this only happens to the root node because the isLeaving() tree that processes edits is never hit upon the final exit from the root node.

The visitor is a complex bunch of procedural code. Not sure how to proceed.

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