File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
javascript/ql/src/semmle/javascript Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,17 @@ module API {
3535 )
3636 }
3737
38+ /**
39+ * Gets a source-node corresponding to a use of the API component represented by this node.
40+ *
41+ * For example, `require('fs').readFileSync` is a use of the function `readFileSync` from the
42+ * `fs` module, and `require('fs').readFileSync(file)` is a use of the result of that function.
43+ *
44+ * As another example, in the assignment `exports.plusOne = (x) => x+1` the two references to
45+ * `x` are uses of the first parameter of `plusOne`.
46+ */
47+ DataFlow:: SourceNode getASourceUse ( ) { Impl:: use ( this , result ) }
48+
3849 /**
3950 * Gets a data-flow node corresponding to the right-hand side of a definition of the API
4051 * component represented by this node.
You can’t perform that action at this time.
0 commit comments