Remove check for invalid ASTs.
Comma AST nodes always must have exactly two children, so this check is redundant.
@@ -2784,7 +2784,7 @@ public final class NodeUtil {
public static Node getCallTargetResolvingIndirectCalls(Node call) {
checkArgument(call.isCall() || call.isNew(), "must be call or new expression, got %s", call);
Node target = call.getFirstChild();
- if (target.isComma() && target.hasTwoChildren() && target.getSecondChild().isQualifiedName()) {
+ if (target.isComma() && target.getSecondChild().isQualifiedName()) {
return target.getSecondChild();
}
return target;
