protected virtual void WritePrintfWidth(CiInterpolatedPart part) { if (part.WidthExpr != null) { Write(part.Width); } if (part.Precision >= 0) { Write('.'); Write(part.Precision); } }
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); } }