Add REWRITE_WITH_LOCATION
Add __HAS_REWRITE_WITH_LOCATION__