@Nullable public PsiExpression getElementToAssert() { if (mySyntheticFieldName != null) return myExpression; return myExpression instanceof PsiArrayAccessExpression ? ((PsiArrayAccessExpression)myExpression).getArrayExpression() : ((PsiReferenceExpression)myExpression).getQualifierExpression(); }
@Nullable public PsiExpression getElementToAssert() { if(mySyntheticFieldName != null) { return myExpression; } return myExpression instanceof PsiArrayAccessExpression ? ((PsiArrayAccessExpression) myExpression).getArrayExpression() : ( (PsiReferenceExpression) myExpression).getQualifierExpression(); }
@Override public void visitArrayAccessExpression(PsiArrayAccessExpression expression) { mVisitor.report("PsiArrayAccessExpression", expression.getText(), expression); super.visitExpression(expression); }
public ArrayAccessInstruction(@NotNull DfaValue value, @NotNull PsiArrayAccessExpression expression) { myValue = value; myExpression = expression; }
@NotNull public PsiArrayAccessExpression getExpression() { return myExpression; }