提交 cb7b2ffb 编写于 作者: Š Šimon Koníček

Minor fix

上级 7612ffb4
......@@ -1126,7 +1126,7 @@ public static bool IsParameterTypeContext(this SyntaxTree syntaxTree, int positi
public static bool IsPossibleExtensionMethodContext(this SyntaxTree syntaxTree, SyntaxToken tokenOnLeftOfPosition)
{
var method = tokenOnLeftOfPosition.Parent.GetAncestor<MethodDeclarationSyntax>();
var method = tokenOnLeftOfPosition.Parent.GetAncestorOrThis<MethodDeclarationSyntax>();
var typeDecl = method.GetAncestorOrThis<TypeDeclarationSyntax>();
return method != null && typeDecl != null &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册