Skip to content

Traverse generic nodes #1

@dy

Description

@dy

Is there a sense to add generic nodes to traversing, such as Expression, Function, Node, Statement, Declaration, Pattern?

That is done in ast-types, and that feature seems to be quite useful.

For example:

visit(ast, {
  //walk into any node
  Node: function(node){
  }
});

Just an idea.

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