提交 7703ec0a 编写于 作者: A Andrew Hall (METAL)

Use WithNullability instead, since it's more descriptive of what we actually want and futureproof

上级 3b29b4e6
......@@ -78,9 +78,9 @@ protected override (string displayText, string suffix, string insertionText) Get
return (symbol.Name, "", symbol.Name);
}
if (symbol is INamespaceOrTypeSymbol namespaceOrTypeSymbol)
if (symbol is ITypeSymbol typeSymbol)
{
return base.GetDisplayAndSuffixAndInsertionText(namespaceOrTypeSymbol.WithoutNullability(), context);
return base.GetDisplayAndSuffixAndInsertionText(typeSymbol.WithNullability(NullableAnnotation.None), context);
}
return base.GetDisplayAndSuffixAndInsertionText(symbol, context);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册