You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** A callable with a flow summary, identified by a unique string. */
9
+
/**
10
+
* A model for a function that can propagate data flow.
11
+
*
12
+
* This class makes it possible to model flow through functions, using the same mechanism as
13
+
* `summaryModel` as described in the [library customization docs](https://codeql.github.com/docs/codeql-language-guides/customizing-library-models-for-javascript).
14
+
*
15
+
* Extend this class to define summary models directly in CodeQL.
16
+
* Data extensions and `summaryModel` are usually preferred; but there are a few cases where direct use of this class may be needed:
17
+
*
18
+
* - The relevant call sites cannot be matched by the access path syntax, and require the full power of CodeQL.
19
+
* For example, complex overloading patterns might require more local reasoning at the call site.
20
+
* - The input/output behaviour cannot be described statically in the access path syntax, but the relevant access paths
21
+
* can be generated dynamically in CodeQL, based on the usages found in the codebase.
22
+
*
23
+
* Subclasses should bind `this` to a unique identifier for the function being modelled. There is no special
24
+
* interpreation of the `this` value, it should just not clash with the `this`-value used by other classes.
25
+
*
26
+
* For example, this models flow through calls such as `require("my-library").myFunction()`:
0 commit comments