mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Grails 2.0.0.M1: Completion for parameter of method LinkGenerator.link().
This commit is contained in:
@@ -92,6 +92,14 @@ public class PsiUtil {
|
||||
private PsiUtil() {
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static String getMethodName(GrMethodCall methodCall) {
|
||||
GrExpression invokedExpression = methodCall.getInvokedExpression();
|
||||
if (!(invokedExpression instanceof GrReferenceExpression)) return null;
|
||||
|
||||
return ((GrReferenceExpression)invokedExpression).getReferenceName();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static String getQualifiedReferenceText(GrCodeReferenceElement referenceElement) {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
|
||||
Reference in New Issue
Block a user