Пример #1
0
 /// <summary>
 /// Accepts a visitor counting some specific property of the logical expression.
 /// </summary>
 /// <param name="visitor">Property counting visitor.</param>
 /// <returns>Number of expression nodes fulfilling and non-fulfilling specified condition.</returns>
 public Tuple <int, int> Accept(IExpressionPropCountVisitor visitor)
 {
     return(Child.Accept(visitor));
 }
Пример #2
0
 /// <summary>
 /// Accepts a visitor counting some specific property of the logical expression.
 /// </summary>
 /// <param name="visitor">Property counting visitor.</param>
 /// <returns>Number of expression nodes fulfilling and non-fulfilling specified condition.</returns>
 public Tuple <int, int> Accept(IExpressionPropCountVisitor visitor)
 {
     return(visitor.Visit(this));
 }
Пример #3
0
        /// <summary>
        /// Accepts a visitor counting some specific property of the logical expression.
        /// </summary>
        /// <param name="visitor">Property counting visitor.</param>
        /// <returns>Number of expression nodes fulfilling and non-fulfilling specified condition.</returns>
        public Tuple <int, int> Accept(IExpressionPropCountVisitor visitor)
        {
            var childPropCounts = Child.Accept(visitor);

            return(Tuple.Create(childPropCounts.Item2, childPropCounts.Item1));
        }