internal override void AppendCodeString(StringBuilder res, PythonAst ast, CodeFormattingOptions format) { SliceStart?.AppendCodeString(res, ast, format); if (!this.IsIncompleteNode(ast)) { format.Append(res, format.SpaceBeforeSliceColon, " ", string.Empty, this.GetPreceedingWhiteSpaceDefaultNull(ast) ?? ""); res.Append(':'); if (SliceStop != null) { string ws = null; if (format.SpaceAfterSliceColon.HasValue) { ws = string.Empty; format.Append(res, format.SpaceAfterSliceColon, " ", string.Empty, string.Empty); } SliceStop.AppendCodeString(res, ast, format, ws); } if (StepProvided) { format.Append(res, format.SpaceBeforeSliceColon, " ", string.Empty, this.GetSecondWhiteSpaceDefaultNull(ast) ?? ""); res.Append(':'); if (SliceStep != null) { string ws = null; if (format.SpaceAfterSliceColon.HasValue) { ws = string.Empty; format.Append(res, format.SpaceAfterSliceColon, " ", string.Empty, string.Empty); } SliceStep.AppendCodeString(res, ast, format, ws); } } } }