Apply suggestions from code review

Co-authored-by: Max Schaefer <54907921+max-schaefer@users.noreply.github.com>
This commit is contained in:
Erik Krogh Kristensen
2020-10-05 15:11:04 +02:00
committed by GitHub
parent 856ad07694
commit 2753a4f379
2 changed files with 5 additions and 5 deletions

View File

@@ -302,7 +302,7 @@ module API {
/** Gets a data-flow node that defines this entry point. */
abstract DataFlow::Node getARhs();
/** Gets a API-node for this entry point. */
/** Gets an API-graph node for this entry point. */
API::Node getNode() { result = root().getASuccessor(this) }
}

View File

@@ -33,13 +33,13 @@ private module MongoDB {
not result.getAnImmediateUse().(DataFlow::ParameterNode).getName() = "db" // mongodb v2 provides a `Db` here
}
/** Gets an api node that refers to a `connect` callback. */
/** Gets an API-graph node that refers to a `connect` callback. */
private API::Node getAMongoDbCallback() {
result = getAMongoClient().getMember("connect").getLastParameter()
}
/**
* Gets an API node that may refer to a MongoDB database connection.
* Gets an API-graph node that may refer to a MongoDB database connection.
*/
private API::Node getAMongoDb() {
result = getAMongoClient().getMember("db").getReturn()
@@ -183,7 +183,7 @@ private module Mongoose {
*/
private class MongooseFunction extends API::Node {
/**
* Gets the API node for the result from this function (if the function returns a Query).
* Gets the API-graph node for the result from this function (if the function returns a `Query`).
*/
abstract API::Node getQueryReturn();
@@ -237,7 +237,7 @@ private module Mongoose {
}
/**
* Gets a API node referring to a Mongoose Model object.
* Gets a API-graph node referring to a Mongoose Model object.
*/
private API::Node getModelObject() {
result = getAMongooseInstance().getMember("model").getReturn()