autoformat

This commit is contained in:
Erik Krogh Kristensen
2020-03-31 18:11:18 +02:00
parent cec2cd3b14
commit 49a8a48a72
2 changed files with 5 additions and 3 deletions

View File

@@ -621,10 +621,10 @@ class ArrayCreationNode extends DataFlow::ValueNode, DataFlow::SourceNode {
result = this.(ArrayConstructorInvokeNode).getSize()
}
/**
/**
* Gets a data flow node corresponding to an array of values being passed as
* individual arguments to this array creation.
*/
*/
DataFlow::Node getASpreadArgument() {
exists(SpreadElement arg | arg = getAnElement().getEnclosingExpr() |
result = DataFlow::valueNode(arg.getOperand())

View File

@@ -4,7 +4,9 @@ private import semmle.javascript.dataflow.internal.StepSummary
class Config extends DataFlow::Configuration {
Config() { this = "Config" }
override predicate isSource(DataFlow::Node source) { source.(DataFlow::CallNode).getCalleeName() = "source" }
override predicate isSource(DataFlow::Node source) {
source.(DataFlow::CallNode).getCalleeName() = "source"
}
override predicate isSink(DataFlow::Node sink) {
exists(DataFlow::CallNode call | call.getCalleeName() = "sink" | call.getAnArgument() = sink)