proposit-core
    Preparing search index...

    Interface TFormulaTreeWalking

    Generic formula tree traversal via visitor pattern.

    interface TFormulaTreeWalking {
        walkFormulaTree<T>(visitor: TFormulaTreeVisitor<T>): T;
    }

    Implemented by

    Index

    Methods

    • Walks the premise's expression tree, invoking the visitor for each node, and returns the visitor's result for the root. Returns the result of visitor.empty() when the premise has no root expression.

      Type Parameters

      • T

      Parameters

      Returns T

      The visitor's result for the root node, or visitor.empty() if the premise is empty.