提交 b1d8fc6b 编写于 作者: C CyrusNajmabadi

Use patterns in more places.

上级 ac2fea43
......@@ -234,9 +234,8 @@ private SyntaxNode GetContainer(SemanticModel semanticModel, SyntaxNode paramete
ordinal, property.Parameters);
}
}
else if (containingSymbol is IPropertySymbol)
else if (containingSymbol is IPropertySymbol containingProperty)
{
var containingProperty = (IPropertySymbol)containingSymbol;
if (containingProperty.GetMethod != null && ordinal < containingProperty.GetMethod.Parameters.Length)
{
results.Add(parameterAndProjectId.WithSymbol(containingProperty.GetMethod.Parameters[ordinal]));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册