mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix test
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@ public class GroovyGenerationInfo<T extends PsiMember> extends PsiGenerationInfo
|
||||
}
|
||||
|
||||
final IElementType type = element.getNode().getElementType();
|
||||
if (GroovyTokenTypes.WHITE_SPACES_SET.contains(type)) {
|
||||
if (type == GroovyTokenTypes.mNLS || type == GroovyTokenTypes.mWS) {
|
||||
return element.getNextSibling();
|
||||
}
|
||||
|
||||
|
||||
@@ -520,9 +520,8 @@ public class ResolveUtil {
|
||||
return resolveResult != null && isInUseScope(resolveResult.getCurrentFileResolveContext());
|
||||
}
|
||||
|
||||
public static boolean isInUseScope(PsiElement context) {
|
||||
if (!context.isValid()) return false;
|
||||
if (context instanceof GrMethodCall) {
|
||||
public static boolean isInUseScope(@Nullable PsiElement context) {
|
||||
if (context instanceof GrMethodCall && context.isValid()) {
|
||||
final GrExpression expression = ((GrMethodCall)context).getInvokedExpression();
|
||||
if (expression instanceof GrReferenceExpression) {
|
||||
final PsiElement resolved = ((GrReferenceExpression)expression).resolve();
|
||||
|
||||
Reference in New Issue
Block a user