protected LightweightTypeReference getExpectedType ( XExpression expr ) { final IResolvedTypes resolvedTypes = getTypeResolver ( ) . resolveTypes ( expr ) ; final LightweightTypeReference actualType = resolvedTypes . getActualType ( expr ) ; return actualType ; }
Compute the expected type of the given expression .