예제 #1
0
 /// <summary>
 /// Generates the text for an Addition builder.
 /// </summary>
 /// <param name="item">The Addition builder to generate the text for.</param>
 protected internal override void VisitAddition(Addition item)
 {
     visitArithmeticExpression(item, "+");
 }
예제 #2
0
 private object buildAdditiveOperator(MatchResult result, IProjectionItem leftHand, IProjectionItem rightHand, bool wrap)
 {
     MatchResult plusResult = result.Matches[SqlGrammar.AdditiveOperator.PlusOperator];
     if (plusResult.IsMatch)
     {
         Addition addition = new Addition(leftHand, rightHand);
         addition.WrapInParentheses = wrap;
         return addition;
     }
     MatchResult minusResult = result.Matches[SqlGrammar.AdditiveOperator.MinusOperator];
     if (minusResult.IsMatch)
     {
         Subtraction subtraction = new Subtraction(leftHand, rightHand);
         subtraction.WrapInParentheses = wrap;
         return subtraction;
     }
     throw new InvalidOperationException();
 }
예제 #3
0
 /// <summary>
 /// Visits an Addition builder.
 /// </summary>
 /// <param name="item">The item to visit.</param>
 protected internal virtual void VisitAddition(Addition item)
 {
 }
예제 #4
0
 /// <summary>
 /// Visits an Addition builder.
 /// </summary>
 /// <param name="item">The item to visit.</param>
 protected internal virtual void VisitAddition(Addition item)
 {
 }