JS: Autoformat

This commit is contained in:
Asger Feldthaus
2020-11-23 16:17:22 +00:00
parent c146e044ca
commit 85f0a627c4
2 changed files with 15 additions and 7 deletions

View File

@@ -822,7 +822,10 @@ module API {
class InvokeNode extends DataFlow::InvokeNode {
API::Node callee;
InvokeNode() { this = callee.getReturn().getAnImmediateUse() or this = callee.getInstance().getAnImmediateUse() }
InvokeNode() {
this = callee.getReturn().getAnImmediateUse() or
this = callee.getInstance().getAnImmediateUse()
}
/** Gets the API node for the `i`th parameter of this invocation. */
Node getParameter(int i) {
@@ -844,12 +847,10 @@ module API {
}
/** A call connected to the API graph. */
class CallNode extends InvokeNode, DataFlow::CallNode {
}
class CallNode extends InvokeNode, DataFlow::CallNode { }
/** A `new` call connected to the API graph. */
class NewNode extends InvokeNode, DataFlow::NewNode {
}
class NewNode extends InvokeNode, DataFlow::NewNode { }
}
private module Label {

View File

@@ -673,7 +673,13 @@ private module Minimongo {
QueryCall() {
exists(string m |
this = API::moduleImport("minimongo").getAMember().getReturn().getAMember().getMember(m).getACall() and
this =
API::moduleImport("minimongo")
.getAMember()
.getReturn()
.getAMember()
.getMember(m)
.getACall() and
CollectionMethodSignatures::interpretsArgumentAsQuery(m, queryArgIdx)
)
}
@@ -707,7 +713,8 @@ private module MarsDB {
QueryCall() {
exists(string m |
this = API::moduleImport("marsdb").getMember("Collection").getInstance().getMember(m).getACall() and
this =
API::moduleImport("marsdb").getMember("Collection").getInstance().getMember(m).getACall() and
// implements parts of the Minimongo interface
Minimongo::CollectionMethodSignatures::interpretsArgumentAsQuery(m, queryArgIdx)
)