Fixed 'sout' before a function invocation.

#KT-1315 fixed
This commit is contained in:
Evgeny Gerashchenko
2012-02-29 12:56:38 +04:00
parent 8bcd70e822
commit 1968b941e7
@@ -136,6 +136,10 @@ public abstract class JetTemplateContextType extends TemplateContextType {
if (parent instanceof JetSimpleNameExpression) {
parent = parent.getParent();
}
if (parent instanceof JetBinaryExpression) {
// Example: sout<caret> foo()
parent = parent.getParent();
}
return parent instanceof JetBlockExpression;
}
}