提交 ea794c49 编写于 作者: B Brett V. Forsgren

remove unnecessary null check; a semantic model will always have a compilation

上级 1054a8a0
......@@ -196,7 +196,7 @@ private static void AppendTextFromAttribute(FormatterState state, XElement eleme
internal static IEnumerable<SymbolDisplayPart> CrefToSymbolDisplayParts(string crefValue, int position, SemanticModel semanticModel, SymbolDisplayFormat format = null)
{
// first try to parse the symbol
if (semanticModel?.Compilation != null)
if (semanticModel != null)
{
var symbol = DocumentationCommentId.GetFirstSymbolForDeclarationId(crefValue, semanticModel.Compilation);
if (symbol != null)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册