DfaExpressionFactory: cleanup

This commit is contained in:
Tagir Valeev
2018-10-10 13:35:05 +07:00
parent fbdbf80da3
commit 5884c85c2c
@@ -169,11 +169,11 @@ public class DfaExpressionFactory {
return myFactory.getVarFactory().createVariableValue(var, refExpr.getType());
}
DfaVariableValue qualifier = getQualifierOrThisVariable(refExpr);
PsiType type = refExpr.getType();
if (qualifier != null) {
return myFactory.getVarFactory().createVariableValue(var, refExpr.getType(), qualifier);
return myFactory.getVarFactory().createVariableValue(var, type, qualifier);
}
PsiType type = refExpr.getType();
return myFactory.createTypeValue(type, DfaPsiUtil.getElementNullability(type, psiElement));
}