cxx-frontend
    Preparing search index...

    Class ASTCursor

    AST cursor.

    A cursor is used to traverse the AST.

    Index
    root: AST

    The root node.

    • Pre-order traversal of the AST as a readable stream.

      Yields the same visits as preVisit, for use with pipeThrough, pipeTo, and for await...of.

      The stream must be consumed, or cancelled, before the parser that owns the AST is disposed.

      Returns ReadableStream<ASTVisit>

      a stream of the nodes in pre-order.