mirror of
https://github.com/github/codeql.git
synced 2026-07-20 18:58:36 +02:00
C#: Add qlDoc to the restrict predicate.
This commit is contained in:
@@ -132,6 +132,10 @@ module Results<relevantUsagesSig/2 getRelevantUsages> {
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if `api` is being used `usages` times and if it is
|
||||
* in the top results (guarded by resultLimit).
|
||||
*/
|
||||
predicate restrict(ExternalApi api, int usages) {
|
||||
getRelevantUsages(api, usages) and getOrder(api) <= resultLimit()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user