Skip to content

Commit f60af2c

Browse files
authored
Merge pull request #1683 from asger-semmle/type-tracking-non-exp
Approved by xiemaisi
2 parents 77ae2bc + eb543c1 commit f60af2c

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

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

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

165165
/**
166-
* EXPERIMENTAL.
167-
*
168166
* Gets a node that this node may flow to using one heap and/or interprocedural step.
169167
*
170168
* See `TypeTracker` for more details about how to use this.
@@ -175,8 +173,6 @@ class SourceNode extends DataFlow::Node {
175173
}
176174

177175
/**
178-
* EXPERIMENTAL.
179-
*
180176
* Gets a node that may flow into this one using one heap and/or interprocedural step.
181177
*
182178
* See `TypeBackTracker` for more details about how to use this.

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,10 @@ module StepSummary {
9292
private newtype TTypeTracker = MkTypeTracker(Boolean hasCall, OptionalPropertyName prop)
9393

9494
/**
95-
* EXPERIMENTAL.
96-
*
9795
* Summary of the steps needed to track a value to a given dataflow node.
9896
*
9997
* This can be used to track objects that implement a certain API in order to
100-
* recognize calls to that API. Note that type-tracking does not provide a
98+
* recognize calls to that API. Note that type-tracking does not by itself provide a
10199
* source/sink relation, that is, it may determine that a node has a given type,
102100
* but it won't determine where that type came from.
103101
*
@@ -210,14 +208,15 @@ class TypeTracker extends TTypeTracker {
210208
}
211209

212210
module TypeTracker {
211+
/**
212+
* Gets a valid end point of type tracking.
213+
*/
213214
TypeTracker end() { result.end() }
214215
}
215216

216217
private newtype TTypeBackTracker = MkTypeBackTracker(Boolean hasReturn, OptionalPropertyName prop)
217218

218219
/**
219-
* EXPERIMENTAL.
220-
*
221220
* Summary of the steps needed to back-track a use of a value to a given dataflow node.
222221
*
223222
* This can be used to track callbacks that are passed to a certian API call, and are
@@ -334,5 +333,8 @@ class TypeBackTracker extends TTypeBackTracker {
334333
}
335334

336335
module TypeBackTracker {
336+
/**
337+
* Gets a valid end point of type back-tracking.
338+
*/
337339
TypeBackTracker end() { result.end() }
338340
}

0 commit comments

Comments
 (0)