mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
JS: Rename FlowSteps::callback -> exploratoryCallbackStep
This commit is contained in:
@@ -947,7 +947,7 @@ private predicate exploratoryFlowStep(
|
||||
isAdditionalLoadStoreStep(pred, succ, _, _, cfg) or
|
||||
// the following three disjuncts taken together over-approximate flow through
|
||||
// higher-order calls
|
||||
callback(pred, succ) or
|
||||
exploratoryCallbackStep(pred, succ) or
|
||||
succ = pred.(DataFlow::FunctionNode).getAParameter() or
|
||||
exploratoryBoundInvokeStep(pred, succ)
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ private module NodeTracking {
|
||||
or
|
||||
basicLoadStep(mid, nd, _)
|
||||
or
|
||||
callback(mid, nd)
|
||||
exploratoryCallbackStep(mid, nd)
|
||||
or
|
||||
nd = mid.(DataFlow::FunctionNode).getAParameter()
|
||||
)
|
||||
|
||||
@@ -434,7 +434,7 @@ private module CachedSteps {
|
||||
* invocation.
|
||||
*/
|
||||
cached
|
||||
predicate callback(DataFlow::Node arg, DataFlow::SourceNode cb) {
|
||||
predicate exploratoryCallbackStep(DataFlow::Node arg, DataFlow::SourceNode cb) {
|
||||
Stages::TypeTracking::ref() and
|
||||
exists(DataFlow::InvokeNode invk, DataFlow::ParameterNode cbParm, DataFlow::Node cbArg |
|
||||
arg = invk.getAnArgument() and
|
||||
@@ -444,7 +444,7 @@ private module CachedSteps {
|
||||
)
|
||||
or
|
||||
exists(DataFlow::ParameterNode cbParm, DataFlow::Node cbArg |
|
||||
callback(arg, cbParm) and
|
||||
exploratoryCallbackStep(arg, cbParm) and
|
||||
callStep(cbArg, cbParm) and
|
||||
cb.flowsTo(cbArg)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user