Skip to content

Commit e3ecc5a

Browse files
committed
C#: Add qlDoc to the restrict predicate.
1 parent d288b3d commit e3ecc5a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

csharp/ql/src/Telemetry/ExternalApi.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ module Results<relevantUsagesSig/2 getRelevantUsages> {
132132
)
133133
}
134134

135+
/**
136+
* Holds if `api` is being used `usages` times and if it is
137+
* in the top results (guarded by resultLimit).
138+
*/
135139
predicate restrict(ExternalApi api, int usages) {
136140
getRelevantUsages(api, usages) and getOrder(api) <= resultLimit()
137141
}

0 commit comments

Comments
 (0)