mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Merge pull request #19961 from geoffw0/locspeed
Rust: Speed up use of Location.contains
This commit is contained in:
@@ -133,7 +133,8 @@ module LocationImpl {
|
||||
* Holds if this location contains location `that`, meaning that it starts
|
||||
* before and ends after it.
|
||||
*/
|
||||
pragma[inline]
|
||||
bindingset[this, that]
|
||||
pragma[inline_late]
|
||||
predicate contains(Location that) { this.startsBefore(that) and this.endsAfter(that) }
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user