Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60c310d commit deae925Copy full SHA for deae925
1 file changed
javascript/ql/src/semmle/javascript/ApiGraphs.qll
@@ -35,6 +35,17 @@ module API {
35
)
36
}
37
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
+
49
/**
50
* Gets a data-flow node corresponding to the right-hand side of a definition of the API
51
* component represented by this node.
0 commit comments