未验证 提交 6c55c34f 编写于 作者: Y Youssef Victor 提交者: GitHub

Update src/VisualStudio/CSharp/Impl/LanguageService/CSharpHelpContextService.cs

Co-authored-by: NSam Harwell <sam@tunnelvisionlabs.com>
上级 f532db13
......@@ -206,7 +206,7 @@ private bool TryGetTextForSymbol(SyntaxToken token, SemanticModel semanticModel,
private static bool TryGetTextForOperator(SyntaxToken token, Document document, out string text)
{
if (token.IsKind(SyntaxKind.ExclamationToken) && token.Parent is not null &&
if (token.IsKind(SyntaxKind.ExclamationToken) &&
token.Parent.IsKind(SyntaxKind.SuppressNullableWarningExpression))
{
text = Keyword("nullForgiving");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册