Minor: added annotation, used util method
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
package org.jetbrains.jet.lang.psi;
|
package org.jetbrains.jet.lang.psi;
|
||||||
|
|
||||||
import com.intellij.lang.ASTNode;
|
import com.intellij.lang.ASTNode;
|
||||||
import com.intellij.psi.PsiElement;
|
import com.intellij.psi.util.PsiTreeUtil;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
@@ -31,12 +31,9 @@ public class JetPrefixExpression extends JetUnaryExpression {
|
|||||||
return visitor.visitPrefixExpression(this, data);
|
return visitor.visitPrefixExpression(this, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
@Nullable @IfNotParsed
|
@Nullable @IfNotParsed
|
||||||
public JetExpression getBaseExpression() {
|
public JetExpression getBaseExpression() {
|
||||||
PsiElement expression = getOperationReference().getNextSibling();
|
return PsiTreeUtil.getNextSiblingOfType(getOperationReference(), JetExpression.class);
|
||||||
while (expression != null && !(expression instanceof JetExpression)) {
|
|
||||||
expression = expression.getNextSibling();
|
|
||||||
}
|
|
||||||
return (JetExpression) expression;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user