mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't throw an exception if try to inline foo.&bar
This commit is contained in:
+1
-1
@@ -125,7 +125,7 @@ public class GroovyMethodInliner implements InlineHandler.Inliner {
|
||||
public void inlineUsage(@NotNull UsageInfo usage, @NotNull PsiElement referenced) {
|
||||
PsiElement element=usage.getElement();
|
||||
|
||||
assert element instanceof GrExpression && element.getParent() instanceof GrCallExpression;
|
||||
if (!(element instanceof GrExpression && element.getParent() instanceof GrCallExpression)) return;
|
||||
|
||||
final Editor editor = getCurrentEditorIfApplicable(element);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user