only return token from getTokenBeforeOperand() if argument is actual right operand and make it @Nullable

This commit is contained in:
Bas Leijdekkers
2011-10-04 10:21:57 +02:00
parent dba3fd916e
commit 9f9c25cbcd
2 changed files with 4 additions and 0 deletions
@@ -17,6 +17,7 @@ package com.intellij.psi;
import com.intellij.psi.tree.IElementType;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* User: cdr
@@ -26,5 +27,7 @@ public interface PsiPolyadicExpression extends PsiExpression {
@NotNull
IElementType getOperationTokenType();
@Nullable
PsiJavaToken getTokenBeforeOperand(@NotNull PsiExpression operand);
}