mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[groovy] don't try to get name indentifier of method in another file
Given: reference in file A is resolved to method in file B. Before change: file B AST was loaded, in particular all reference files ASTs were loaded.
This commit is contained in:
+1
-3
@@ -124,9 +124,6 @@ public class GrHighlightUtil {
|
||||
return isStatic ? GroovySyntaxHighlighter.STATIC_PROPERTY_REFERENCE : GroovySyntaxHighlighter.INSTANCE_PROPERTY_REFERENCE;
|
||||
}
|
||||
else if (resolved instanceof PsiMethod) {
|
||||
|
||||
if (isMethodWithLiteralName((PsiMethod)resolved)) return null; //don't highlight method with literal name
|
||||
|
||||
if (((PsiMethod)resolved).isConstructor()) {
|
||||
if (refElement != null) {
|
||||
if (refElement.getNode().getElementType() == GroovyTokenTypes.kTHIS || //don't highlight this() or super()
|
||||
@@ -152,6 +149,7 @@ public class GrHighlightUtil {
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (isMethodWithLiteralName((PsiMethod)resolved)) return null; //don't highlight method with literal name
|
||||
return GroovySyntaxHighlighter.METHOD_DECLARATION;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user