Exemple #1
0
 public Indent(int offset, Some <NestedText> text)
 {
     Offset = offset;
     Text   = text;
 }
 public static NestedText Indent(int offset, NestedText text) => NestedText.CreateIndent(offset, text);
 public static NestedText Scope(this IEnumerable <NestedText> xs, Text separator = null) => NestedText.CreateScope(xs.ToArr(), separator ?? Environment.NewLine);
 public static NestedText Line(Text text) => NestedText.CreateLine(text);
 public static NestedText EmptyScope() => NestedText.CreateScope(Arr <NestedText> .Empty, (Text)Environment.NewLine);