Skip to content

Commit 1a42c9f

Browse files
erik-kroghasgerf
andauthored
make predicates private
Co-authored-by: Asger F <[email protected]>
1 parent 8af0875 commit 1a42c9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javascript/ql/src/semmle/javascript/dataflow/Configuration.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ private string getAPropertyUsedInLoadStore(DataFlow::Configuration cfg) {
834834
* Holds if there exists a store-step from `pred` to `succ` under configuration `cfg`,
835835
* and somewhere in the program there exists a load-step that could possibly read the stored value.
836836
*/
837-
predicate exploratoryForwardStoreStep(
837+
private predicate exploratoryForwardStoreStep(
838838
DataFlow::Node pred, DataFlow::Node succ, DataFlow::Configuration cfg
839839
) {
840840
exists(string prop |
@@ -867,7 +867,7 @@ private predicate exploratoryBackwardStoreStep(
867867
*
868868
* This private predicate is only used in `exploratoryBackwardStoreStep`, and exists as a separate predicate to give the compiler a hint about join-ordering.
869869
*/
870-
string getABackwardsRelevantStoreProperty(DataFlow::Configuration cfg) {
870+
private string getABackwardsRelevantStoreProperty(DataFlow::Configuration cfg) {
871871
exists(DataFlow::Node mid | isRelevant(mid, cfg) |
872872
basicLoadStep(mid, _, result) or
873873
isAdditionalLoadStep(mid, _, result, cfg)
@@ -904,7 +904,7 @@ private predicate isRelevant(DataFlow::Node nd, DataFlow::Configuration cfg) {
904904
/**
905905
* Holds if there is backwards data-flow step from `mid` to `nd` under `cfg`.
906906
*/
907-
predicate isRelevantBackStep(DataFlow::Node mid, DataFlow::Node nd, DataFlow::Configuration cfg) {
907+
private predicate isRelevantBackStep(DataFlow::Node mid, DataFlow::Node nd, DataFlow::Configuration cfg) {
908908
isRelevantForward(nd, cfg) and
909909
(
910910
exploratoryFlowStep(nd, mid, cfg) or

0 commit comments

Comments
 (0)