提交 ec3967ef 编写于 作者: C CyrusNajmabadi

Remove usage of TypeSwitch.

上级 2f2e5172
......@@ -431,7 +431,8 @@ public override IEnumerable<SyntaxNode> GetOuterReturnStatements(SyntaxNode comm
}
// make sure this method doesn't have return type.
return method.ReturnType.TypeSwitch((PredefinedTypeSyntax p) => p.Keyword.Kind() == SyntaxKind.VoidKeyword);
return method.ReturnType is PredefinedTypeSyntax p &&
p.Keyword.Kind() == SyntaxKind.VoidKeyword;
}
private static TextSpan GetAdjustedSpan(SourceText text, TextSpan textSpan)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册