resolve invoke on any kind of expressions, not only on simple name expressions