private void AppendElementKind([CanBeNull] IDeclaredElement element, Context context, bool stylized) { PresenterOptions options = context.Options; string kind = element.GetElementKindString( options.UseExtensionMethodKind, options.UseAttributeClassKind, options.UseClassModifiersInKind, options.UseMethodModifiersInKind); if (stylized) { AppendText("(" + kind + ") ", new TextStyle(FontStyle.Italic)); } else { AppendText(kind + " ", null); } }
public static void AppendElementKind([NotNull] this CSharpColorizer colorizer, [CanBeNull] IDeclaredElement element) => colorizer.AppendText(element.GetElementKindString(false, false, false, false, false), null);
private void AppendElementKindStylized([CanBeNull] IDeclaredElement element) { AppendText("(" + element.GetElementKindString() + ") ", new TextStyle(FontStyle.Italic)); }