From 3f6d6631057174d4da498057a01e9e779b4281e3 Mon Sep 17 00:00:00 2001 From: Stephan Brandauer Date: Tue, 19 Apr 2022 16:54:50 +0200 Subject: [PATCH] documentation for calleeImports ATM feature --- .../adaptivethreatmodeling/EndpointFeatures.qll | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointFeatures.qll b/javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointFeatures.qll index f48f7b96dea..ead5f28e57f 100644 --- a/javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointFeatures.qll +++ b/javascript/ql/experimental/adaptivethreatmodeling/lib/experimental/adaptivethreatmodeling/EndpointFeatures.qll @@ -440,6 +440,19 @@ class FileImports extends EndpointFeature, TFileImports { } } +/** + * The feature for the imports used in the callee of an invocation. + * + * ### Example + * + * ```javascript + * import * as _ from 'lodash'; + * + * // ... + * _.deepClone(someObject); + * // ^^^^^^^^^^ will have the value `lodash` for the feature `calleeImports`. + * ``` + */ class CalleeImports extends EndpointFeature, TCalleeImports { override string getName() { result = "calleeImports" }