* @return true if expression is a Var that refers to Parameter (assuming that there are
* no intermediate same-name bindings between parameter's scope and expression's).
*/
private boolean isParameterVar(Parameter parameter, Expr expression) {
if(expression instanceof Var) {
Var var = (Var)expression;
return (var.getVarName().getUnqualifiedName().equals(parameter.getName()) &&
(var.getVarName().getModuleName() == null || super.resolveModuleName(var.getVarName().getModuleName()).equals(super.currentModule)));
}
return false;
}