public StringListApiView Render(AssemblyApiView assembly) { var list = new StringListApiView(); Render(assembly.GlobalNamespace, list); return(list); }
static void Main(string[] args) { try { var renderer = new TextRendererApiView(); Console.WriteLine(renderer.Render(AssemblyApiView.AssemblyFromFile(args[0]))); } catch (Exception e) { Console.WriteLine(e.Message); Console.WriteLine(e.StackTrace); } }
static void Main(string[] args) { try { var assemblySymbol = AssemblyApiView.GetCompilation(args[0]); var renderer = new CodeFileRenderer(); var codeNode = new CodeFileBuilder().Build(assemblySymbol); Console.WriteLine(renderer.Render(codeNode)); } catch (Exception e) { Console.WriteLine(e.ToString()); } }