Microsoft.SourceBrowser.HtmlGenerator.ProjectGenerator.WriteProjectStats C# (CSharp) Method

WriteProjectStats() private method

private WriteProjectStats ( StringBuilder sb ) : void
sb StringBuilder
return void
        private void WriteProjectStats(StringBuilder sb)
        {
            sb.AppendLine("<p class=\"projectInfo\">");

            var namedTypes = this.DeclaredSymbols.Keys.OfType<INamedTypeSymbol>();
            sb.AppendLine("Project&nbsp;path:&nbsp;" + ProjectSourcePath + "<br>");
            sb.AppendLine("Files:&nbsp;" + DocumentCount.WithThousandSeparators() + "<br>");
            sb.AppendLine("Lines&nbsp;of&nbsp;code:&nbsp;" + LinesOfCode.WithThousandSeparators() + "<br>");
            sb.AppendLine("Bytes:&nbsp;" + BytesOfCode.WithThousandSeparators() + "<br>");
            sb.AppendLine("Declared&nbsp;symbols:&nbsp;" + this.DeclaredSymbols.Count.WithThousandSeparators() + "<br>");
            sb.AppendLine("Declared&nbsp;types:&nbsp;" + namedTypes.Count().WithThousandSeparators() + "<br>");
            sb.AppendLine("Public&nbsp;types:&nbsp;" + namedTypes.Where(t => t.DeclaredAccessibility == Accessibility.Public).Count().WithThousandSeparators() + "<br>");
            sb.AppendLine("Indexed&nbsp;on:&nbsp;" + DateTime.Now.ToString("MMMM dd", CultureInfo.InvariantCulture));

            sb.AppendLine("</p>");
        }