mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
add inlines
This commit is contained in:
@@ -13,6 +13,7 @@ import EndpointScoring
|
|||||||
*
|
*
|
||||||
* This is a single string containing a space-separated list of tokens.
|
* This is a single string containing a space-separated list of tokens.
|
||||||
*/
|
*/
|
||||||
|
pragma[inline]
|
||||||
private string getTokenFeature(DataFlow::Node endpoint, string featureName) {
|
private string getTokenFeature(DataFlow::Node endpoint, string featureName) {
|
||||||
// Features for endpoints that are contained within a function.
|
// Features for endpoints that are contained within a function.
|
||||||
exists(DatabaseFeatures::Entity entity | entity = getRepresentativeEntityForEndpoint(endpoint) |
|
exists(DatabaseFeatures::Entity entity | entity = getRepresentativeEntityForEndpoint(endpoint) |
|
||||||
@@ -275,6 +276,7 @@ private string getASupportedFeatureName() {
|
|||||||
* This predicate holds if the generic token-based feature named `featureName` has the value
|
* This predicate holds if the generic token-based feature named `featureName` has the value
|
||||||
* `featureValue` for the endpoint `endpoint`.
|
* `featureValue` for the endpoint `endpoint`.
|
||||||
*/
|
*/
|
||||||
|
pragma[inline]
|
||||||
predicate tokenFeatures(DataFlow::Node endpoint, string featureName, string featureValue) {
|
predicate tokenFeatures(DataFlow::Node endpoint, string featureName, string featureValue) {
|
||||||
ModelScoring::endpoints(endpoint) and
|
ModelScoring::endpoints(endpoint) and
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user