mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Allow stub->AST in TypeEvalContext only if explicitly allowed or in the origin file
This commit is contained in:
@@ -159,7 +159,7 @@ public class TypeEvalContext {
|
||||
}
|
||||
|
||||
public boolean maySwitchToAST(@NotNull StubBasedPsiElement element) {
|
||||
return myAllowStubToAST || (element.getStub() == null && (myOrigin == null || myOrigin == element.getContainingFile()));
|
||||
return myAllowStubToAST || myOrigin == element.getContainingFile();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user