[Macros] Optimize 'rangeContainsTokenLocWithGeneratedSource'
* Early return for the direct 'true' case.
* Instead of comparing the buffer IDs, check f the entire buffer
  contains the target range. This keeps 'LocCache.lastBufferID' and
  improves the hit rate.