Skip to content

Commit 8da96ed

Browse files
committed
JS: Update doc comment
1 parent 1ae97d9 commit 8da96ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

javascript/ql/lib/semmle/javascript/ApiGraphs.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ module API {
2828
* The most basic use of API graphs is typically as follows:
2929
* 1. Start with `API::moduleImport` for the relevant library.
3030
* 2. Follow up with a chain of accessors such as `getMember` describing how to get to the relevant API function.
31-
* 3. Map the resulting API graph nodes to data-flow nodes, using `getAnImmediateUse` or `getARhs`.
31+
* 3. Map the resulting API graph nodes to data-flow nodes, using `getASource` or `getASink`.
3232
*
3333
* For example, a simplified way to get arguments to `underscore.extend` would be
3434
* ```codeql
35-
* API::moduleImport("underscore").getMember("extend").getParameter(0).getARhs()
35+
* API::moduleImport("underscore").getMember("extend").getParameter(0).getASink()
3636
* ```
3737
*
3838
* The most commonly used accessors are `getMember`, `getParameter`, and `getReturn`.

0 commit comments

Comments
 (0)