public static string Format(SourceCode source, params SourceTransformation[] transformation) { SourceFormatter formatter = new SourceFormatter(source); return(formatter.format(transformation)); }
public static string WithLineNumbers(this SourceCode source) { string[] lines = source.Lines.ToArray(); return(SourcePrinter.WithLineNumbers(lines)); }
public SourceFormatter(SourceCode source) { this.source = source; }