Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 732ddbc

Browse files
committed
JS: Mark API as experimental
1 parent 81476cf commit 732ddbc

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ class SourceNode extends DataFlow::Node {
156156
}
157157

158158
/**
159+
* EXPERIMENTAL.
160+
*
159161
* Gets a node that this node may flow to using one heap and/or interprocedural step.
160162
*
161163
* See `TypeTracker` for more details about how to use this.
@@ -168,6 +170,8 @@ class SourceNode extends DataFlow::Node {
168170
}
169171

170172
/**
173+
* EXPERIMENTAL.
174+
*
171175
* Gets a node that may flow into this one using one heap and/or interprocedural step.
172176
*
173177
* See `TypeBackTracker` for more details about how to use this.

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ private newtype TStepSummary = MkStepSummary(boolean hasReturn, boolean hasCall)
2020
}
2121

2222
/**
23+
* INTERNAL: Use `TypeTracker` or `TypeBackTracker` instead.
24+
*
2325
* Summary of the steps needed to track a value to a given dataflow node.
2426
*/
2527
class StepSummary extends TStepSummary {
@@ -84,7 +86,7 @@ module StepSummary {
8486
StepSummary return() { result = MkStepSummary(true, false) }
8587

8688
/**
87-
* INTERNAL: Use `SourceNode.track()` instead.
89+
* INTERNAL: Use `SourceNode.track()` or `SourceNode.backtrack()` instead.
8890
*/
8991
predicate step(DataFlow::SourceNode pred, DataFlow::SourceNode succ, StepSummary summary) {
9092
exists (DataFlow::Node predNode | pred.flowsTo(predNode) |
@@ -136,6 +138,8 @@ private newtype TTypeTracker = MkTypeTracker(boolean hasCall) {
136138
}
137139

138140
/**
141+
* EXPERIMENTAL.
142+
*
139143
* Summary of the steps needed to track a value to a given dataflow node.
140144
*
141145
* This can be used to track objects that implement a certain API in order to
@@ -194,6 +198,8 @@ private newtype TTypeBackTracker = MkTypeBackTracker(boolean hasReturn) {
194198
}
195199

196200
/**
201+
* EXPERIMENTAL.
202+
*
197203
* Summary of the steps needed to back-track a use of a value to a given dataflow node.
198204
*
199205
* This can be used to track callbacks that are passed to a certian API call, and are

0 commit comments

Comments
 (0)