add qldoc to union(xs, ys)

This commit is contained in:
Erik Krogh Kristensen
2020-08-19 12:50:58 +02:00
parent 8db10aeb9d
commit c059ceaee9

View File

@@ -223,6 +223,10 @@ public class CFGExtractor {
return output;
}
/**
* Creates an order preserving concatenation of the nodes in `xs` and `ys` without duplicates.
* Returns `null`, or an `INode` or a `List<Node>`.
*/
private static Object union(Object xs, Object ys) {
if (xs == null) return ys;
if (ys == null) return xs;