CodeQL library for C#
codeql/csharp-all 4.0.1-dev (changelog, source)
Search

Module Results

Given a predicate to count relevant API usages, this module provides a predicate for restricting the number or returned results based on a certain limit.

Import path

import semmle.code.csharp.telemetry.ExternalApi

Predicates

restrict

Holds if there exists an API with apiName that is being used usages times and if it is in the top results (guarded by resultLimit).

Parameters

getRelevantUsagesrelevantApi