Skip to content

Commit c059cea

Browse files
committed
add qldoc to union(xs, ys)
1 parent 8db10ae commit c059cea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

javascript/extractor/src/com/semmle/js/extractor/CFGExtractor.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@ private List<Node> flattenNestedList(Iterable<?> lists, List<Node> output) {
223223
return output;
224224
}
225225

226+
/**
227+
* Creates an order preserving concatenation of the nodes in `xs` and `ys` without duplicates.
228+
* Returns `null`, or an `INode` or a `List<Node>`.
229+
*/
226230
private static Object union(Object xs, Object ys) {
227231
if (xs == null) return ys;
228232
if (ys == null) return xs;

0 commit comments

Comments
 (0)