don't throw an exception if try to inline foo.&bar

This commit is contained in:
Max Medvedev
2013-03-14 11:55:56 +04:00
parent 99c48ae086
commit 7b96f5945e
@@ -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);