Remove a contains() call that is always false.
It's false because overloadStack is not a Node, and processedOverloads is a Set<Node>
Closes
@@ -426,7 +426,6 @@ public final class Es6TypedToEs6Converter implements NodeTraversal.Callback, Hot
n.detach();
NodeUtil.markFunctionsDeleted(n, compiler);
}
- if (!processedOverloads.contains(overloadStack)) {
Node original = overloadStack.peek().get(name);
processedOverloads.add(original);
Node paramList = original.getSecondChild();
@@ -438,7 +437,6 @@ public final class Es6TypedToEs6Converter implements NodeTraversal.Callback, Hot
builder.recordType(new JSTypeExpression(
convertWithLocation(TypeDeclarationsIR.namedType("Function")), n.getSourceFileName()));
originalJsDocNode.setJSDocInfo(builder.build());
- }
return;
}
overloadStack.peek().put(name, n);
