Get enclosing property for property accessor by stub in ScopeProvider
This commit is contained in:
@@ -129,7 +129,7 @@ public class ScopeProvider {
|
|||||||
JetDeclaration parentDeclaration = JetStubbedPsiUtil.getContainingDeclaration(jetDeclaration);
|
JetDeclaration parentDeclaration = JetStubbedPsiUtil.getContainingDeclaration(jetDeclaration);
|
||||||
|
|
||||||
if (jetDeclaration instanceof JetPropertyAccessor) {
|
if (jetDeclaration instanceof JetPropertyAccessor) {
|
||||||
parentDeclaration = PsiTreeUtil.getParentOfType(parentDeclaration, JetDeclaration.class);
|
parentDeclaration = JetStubbedPsiUtil.getContainingDeclaration(parentDeclaration, JetDeclaration.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parentDeclaration == null) {
|
if (parentDeclaration == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user