Skip to content

Commit 4964d81

Browse files
committed
JS: Add interface for isBarrier in/out
1 parent a4c0063 commit 4964d81

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,26 @@ abstract class Configuration extends string {
166166
)
167167
}
168168

169+
/**
170+
* Holds if flow into `node` is prohibited.
171+
*/
172+
predicate isBarrierIn(DataFlow::Node node) { none() }
173+
174+
/**
175+
* Holds if flow out `node` is prohibited.
176+
*/
177+
predicate isBarrierOut(DataFlow::Node node) { none() }
178+
179+
/**
180+
* Holds if flow into `node` is prohibited for the flow label `lbl`.
181+
*/
182+
predicate isBarrierIn(DataFlow::Node node, FlowLabel lbl) { none() }
183+
184+
/**
185+
* Holds if flow out `node` is prohibited for the flow label `lbl`.
186+
*/
187+
predicate isBarrierOut(DataFlow::Node node, FlowLabel lbl) { none() }
188+
169189
/**
170190
* Holds if flow from `pred` to `succ` is prohibited.
171191
*/

0 commit comments

Comments
 (0)