Пример #1
0
 //******************************************************************
 /// <summary>
 /// Compares the trees dominated by the CurrentParseTreeNode and the
 /// FindPatternRoot. If these trees match, true is returned and the
 /// MatchingNodes stack contains the list of matching node pairs.
 /// Otherwise, false is returned.
 /// </summary>
 private bool CurrentBranchMatchesPattern()
 {
     MatchAlgorithm oAlgorithm = new MatchAlgorithm(moTreeTransfer);
     return oAlgorithm.CurrentBranchMatchesPattern();
 }
Пример #2
0
        //******************************************************************
        #region [CurrentBranchMatchesPattern() Method]
        //******************************************************************
        /// <summary>
        /// Compares the trees dominated by the CurrentParseTreeNode and the
        /// FindPatternRoot. If these trees match, true is returned and the
        /// MatchingNodes stack contains the list of matching node pairs.
        /// Otherwise, false is returned.
        /// </summary>
        private bool CurrentBranchMatchesPattern()
        {
            MatchAlgorithm oAlgorithm = new MatchAlgorithm(moTreeTransfer);

            return(oAlgorithm.CurrentBranchMatchesPattern());
        }