示例#1
0
        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);
            }
        }
示例#2
0
 public static void AppendElementKind([NotNull] this CSharpColorizer colorizer, [CanBeNull] IDeclaredElement element)
 => colorizer.AppendText(element.GetElementKindString(false, false, false, false, false), null);
示例#3
0
 private void AppendElementKindStylized([CanBeNull] IDeclaredElement element)
 {
     AppendText("(" + element.GetElementKindString() + ") ", new TextStyle(FontStyle.Italic));
 }