• Recursively iterates over each expression in an ASTNode and applies a callback to each expression.

    Parameters

    • node: AstNode

      The node to traverse.

    • callback: ((expr: AstExpression) => void)

      The callback function to apply to each expression.

    • flatStmts: Partial<{
          flatStmts: boolean;
      }> = {}

      If true, only traverse statement expressions at the current level without going into nested statements.

    Returns void