score:1

it seems to me you need to modify code for expression visitors that are affected by this (those that evaluate to bool i assume):

  • visitbinaryexpression when expression is expression.equal
  • the case when your field is being evaluated to bool, you can substitute fieldname or `fieldname2' (i don't know the specifics of your solution).

from the code you've posted, i could do something like: * for vb-comparison case i would just create new expression, and visit it with another visitor that would handle aliases:

expr = expression.equal(left, right) // left and right i would fetch from methodcallexpression arguments property
visitequal(expr)

and then visitequal should just build or expressions basing on the aliases.


Related Query

More Query from same tag