public static void AppendLineInvariant(this IIndentedStringBuilder builder, int indentLevel, string pattern, params object[] replacements)
 {
     builder.AppendLine(CultureInfo.InvariantCulture, indentLevel, pattern, replacements);
 }
 public static void AppendLine(this IIndentedStringBuilder builder, IFormatProvider formatProvider, string pattern, params object[] replacements)
 {
     builder.AppendFormat(formatProvider, pattern, replacements);
     builder.AppendLine();
 }
Ejemplo n.º 3
0
 public void ExtendApiClientConstructor(IIndentedStringBuilder builder, ApiClientModule apiClientModule)
 {
     builder.AppendLine("foo.extendConstructor();");
 }
Ejemplo n.º 4
0
 public void ExtendApiClientClass(IIndentedStringBuilder builder, ApiClientModule apiClientModule)
 {
     builder.AppendLine("public bar() { return foo.bar(); }");
 }
Ejemplo n.º 5
0
 public void WriteCodeAfterApiClientClass(IIndentedStringBuilder builder, ApiClientModule apiClientModule)
 {
     builder.AppendLine("foo.after();");
 }
Ejemplo n.º 6
0
 public void WriteCodeBeforeApiClientClass(IIndentedStringBuilder builder, ApiClientModule apiClientModule)
 {
     builder.AppendLine("foo.before();");
 }
Ejemplo n.º 7
0
 public void WriteImports(IIndentedStringBuilder builder, ApiClientModule apiClientModule)
 {
     builder.AppendLine("import { foo } from 'bar'");
 }
 public void AppendLine()
 {
     TryWriteApply();
     _source.AppendLine();
 }
 /// <summary>
 /// Sane version of <see cref="IndentedStringBuilder.AppendLine(string)"/> that actually appends a newline.
 /// </summary>
 /// <param name="text">The string to append.</param>
 public static void AppendLine2(this IIndentedStringBuilder builder, string text)
 {
     builder.AppendLine(text);
     builder.AppendLine();
 }