Exemplo n.º 1
0
 protected virtual void WritePrintfWidth(CiInterpolatedPart part)
 {
     if (part.WidthExpr != null)
     {
         Write(part.Width);
     }
     if (part.Precision >= 0)
     {
         Write('.');
         Write(part.Precision);
     }
 }
Exemplo n.º 2
0
 protected override void WritePrintfWidth(CiInterpolatedPart part)
 {
     if (part.Precision >= 0 && part.Argument.Type is CiIntegerType)
     {
         if (part.WidthExpr != null)
         {
             throw new NotImplementedException("Cannot format integer with both width and precision");
         }
         Write('0');
         Write(part.Precision);
     }
     else
     {
         base.WritePrintfWidth(part);
     }
 }