示例#1
0
 public MultiLineBinaryConditionTranslation(
     BinaryExpression binaryCondition,
     ITranslation conditionTranslation,
     ITranslationContext context)
 {
     NodeType = binaryCondition.NodeType;
     _binaryConditionLeftTranslation  = For(binaryCondition.Left, context);
     _binaryConditionOperator         = BinaryTranslation.GetOperator(binaryCondition);
     _binaryConditionRightTranslation = For(binaryCondition.Right, context);
     EstimatedSize = conditionTranslation.EstimatedSize;
 }
 public MultiLineBinaryConditionTranslation(
     BinaryExpression binaryCondition,
     ITranslatable conditionTranslatable,
     ITranslationContext context)
 {
     _context = context;
     NodeType = binaryCondition.NodeType;
     _binaryConditionLeftTranslation  = For(binaryCondition.Left, context);
     _binaryConditionOperator         = BinaryTranslation.GetOperator(binaryCondition);
     _binaryConditionRightTranslation = For(binaryCondition.Right, context);
     TranslationSize = conditionTranslatable.TranslationSize;
     FormattingSize  = conditionTranslatable.FormattingSize;
 }