swift
126ad5ce - [Macros] Optimize 'rangeContainsTokenLocWithGeneratedSource'

Commit
1 year ago
[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.
Author
Committer
Parents
Loading