Skip to content

Commit 6827b84

Browse files
committed
change docstring to inline comment, and refer directly to array class
1 parent 845020d commit 6827b84

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

javascript/ql/src/semmle/javascript/Collections.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,9 @@ private module CollectionDataFlow {
159159
* A step for a `for of` statement on a Map, Set, or Iterator.
160160
* For Sets and iterators the l-value are the elements of the set/iterator.
161161
* For Maps the l-value is a tuple containing a key and a value.
162-
*
163-
* This is partially duplicated behavior with the `for of` step for Arrays (in Arrays.qll).
164-
* This duplication is required for the type-tracking steps defined in `CollectionsTypeTracking`.
165162
*/
163+
// This is partially duplicated behavior with the `for of` step for Arrays (`ArrayDataFlow::ForOfStep`).
164+
// This duplication is required for the type-tracking steps defined in `CollectionsTypeTracking`.
166165
private class ForOfStep extends CollectionFlowStep, DataFlow::ValueNode {
167166
ForOfStmt forOf;
168167
DataFlow::Node element;

0 commit comments

Comments
 (0)