if ( expr == null )
return ;
// expr not null
if ( scope.contains(var) )
throw new QueryParseException("Variable used when already in-scope: "+var+" in "+fmtAssignment(expr, var), -1 , -1) ;
// test for impossible variables - bound() is a bit odd.
if ( false )
{
Set<Var> vars = expr.getVarsMentioned() ;
for ( Var v : vars )
{
if ( !scope.contains(v) )
throw new QueryParseException("Variable used in expression is not in-scope: "+v+" in "+expr, -1 , -1) ;
}
}
}