diagnostics

This commit is contained in:
Alexey Kudravtsev
2010-11-23 18:49:23 +03:00
parent 8945c3d82c
commit 20358ebbdf
@@ -36,7 +36,7 @@ public class PsiExpressionStatementImpl extends CompositePsiElement implements P
public PsiExpression getExpression() {
PsiExpression expression = (PsiExpression)SourceTreeToPsiMap.treeElementToPsi(findChildByType(ElementType.EXPRESSION_BIT_SET));
if (expression != null) return expression;
LOG.error("Illegal PSI. Children: " + DebugUtil.psiToString(this, false));
LOG.error("Illegal PSI: \n" + DebugUtil.psiToString(getParent(), false));
return null;
}