提交 e9a73a2c 编写于 作者: C CyrusNajmabadi

Remove usage of TypeSwitch.

上级 b3d5cf3b
......@@ -191,7 +191,8 @@ private static bool CheckLocation(SourceText text, int position, SyntaxNode owni
}
// check whether using has contents
if (owningNode.TypeSwitch((UsingDirectiveSyntax u) => u.Name == null || u.Name.IsMissing))
if (owningNode is UsingDirectiveSyntax u &&
(u.Name == null || u.Name.IsMissing))
{
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册