add inlines

This commit is contained in:
Ian Wright
2021-12-10 15:00:31 +00:00
parent a46787ea07
commit 0f022b1827

View File

@@ -13,6 +13,7 @@ import EndpointScoring
*
* This is a single string containing a space-separated list of tokens.
*/
pragma[inline]
private string getTokenFeature(DataFlow::Node endpoint, string featureName) {
// Features for endpoints that are contained within a function.
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
* `featureValue` for the endpoint `endpoint`.
*/
pragma[inline]
predicate tokenFeatures(DataFlow::Node endpoint, string featureName, string featureValue) {
ModelScoring::endpoints(endpoint) and
(