private RichText TryGetDescription([NotNull] IDeclaredElement element, [NotNull] IPsiModule psiModule, [NotNull] PsiLanguageType languageType, [NotNull] DeclaredElementDescriptionStyle style) { RichTextBlock description = _declaredElementDescriptionPresenter.GetDeclaredElementDescription(element, style, languageType, psiModule); return(description != null ? description.RichText : null); }
private RichText TryGetDescription( [NotNull] IDeclaredElement element, [CanBeNull] XmlNode xmlDoc, [NotNull] IPsiModule psiModule, [NotNull] PsiLanguageType languageType) { RichText richText = TryPresentDocNode(xmlDoc, "summary", languageType, psiModule); if (richText != null) { return(richText); } return(_declaredElementDescriptionPresenter .GetDeclaredElementDescription(element, DeclaredElementDescriptionStyle.NO_OBSOLETE_SUMMARY_STYLE, languageType, psiModule) ?.RichText); }
private RichText TryGetDescription( [NotNull] IDeclaredElement element, [NotNull] IPsiModule psiModule, [NotNull] PsiLanguageType languageType, [NotNull] DeclaredElementDescriptionStyle style) => _declaredElementDescriptionPresenter .GetDeclaredElementDescription(element, style, languageType, psiModule) ?.RichText;