public static StringBuilder RenderAttributeStringBuilder(this StringBuilder sb, IGAttribute gAttribute, StringBuilder indent, string eol, CancellationToken?ct = default) { ct?.ThrowIfCancellationRequested(); sb.Append($"{indent}[{gAttribute.GName}]{eol}"); return(sb); }
public static IR1Top RAttribute(this IR1Top r1Top, IGAttribute gAttribute) { r1Top.RComment(gAttribute.GComment); r1Top.Sb.RenderAttributeStringBuilder(gAttribute, r1Top.Indent, r1Top.Eol, r1Top.Ct); return(r1Top); }