public static string Format(ICodeNode node, string format, IFormatProvider formatProvider) { var writer = new SyntaxWriter(); writer.Write(node, format); return(writer.ToString()); }
public static void ToWriter(IAssembly asm, string lang, TextWriter writer) { string format = string.Format("lang = {0}; mode = full", lang); var swr = new SyntaxWriter(writer); swr.Init(format); swr.Write(asm); }