We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
union(xs, ys)
1 parent 8db10ae commit c059ceaCopy full SHA for c059cea
javascript/extractor/src/com/semmle/js/extractor/CFGExtractor.java
@@ -223,6 +223,10 @@ private List<Node> flattenNestedList(Iterable<?> lists, List<Node> output) {
223
return output;
224
}
225
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
+ */
230
private static Object union(Object xs, Object ys) {
231
if (xs == null) return ys;
232
if (ys == null) return xs;
0 commit comments