@agentix-e/spel-ts - v1.2.2
    Preparing search index...

    Interface AstVisitor

    Visitor interface for SpEL AST traversal.

    Usage pattern:

    AstWalker.walk(ast, {
    enterNode(node, ancestors) {
    // Called before traversing children.
    // Return false to skip this node's subtree.
    return true;
    },
    leaveNode(node, ancestors) {
    // Called after all children have been traversed.
    },
    });

    The ancestors parameter provides the full path from the root node to the current node's parent (current node NOT included).

    interface AstVisitor {
        enterNode?: (
            node: SpelNodeImpl,
            ancestors: SpelNodeImpl[],
        ) => boolean | undefined;
        leaveNode?: (node: SpelNodeImpl, ancestors: SpelNodeImpl[]) => void;
    }
    Index
    enterNode?: (
        node: SpelNodeImpl,
        ancestors: SpelNodeImpl[],
    ) => boolean | undefined

    Called when entering a node (pre-order).

    Type Declaration

      • (node: SpelNodeImpl, ancestors: SpelNodeImpl[]): boolean | undefined
      • Parameters

        • node: SpelNodeImpl

          The current AST node

        • ancestors: SpelNodeImpl[]

          Path from root to parent (current node NOT included)

        Returns boolean | undefined

        false to skip traversing this node's children, otherwise continue

    leaveNode?: (node: SpelNodeImpl, ancestors: SpelNodeImpl[]) => void

    Called when leaving a node (post-order).

    Type Declaration