Fix visiting element type node of Collection (#1675)

This is a bug in the visitor logic, but currently doesn't impact any
language behavior.
This commit is contained in:
Daniel Chao
2026-06-10 06:53:26 -07:00
committed by GitHub
parent ac822f11eb
commit 44f8706616
@@ -1217,6 +1217,9 @@ public abstract class TypeNode extends PklNode {
@Override
protected boolean acceptTypeNode(boolean visitTypeArguments, TypeNodeConsumer consumer) {
if (visitTypeArguments) {
return consumer.accept(this) && elementTypeNode.acceptTypeNode(true, consumer);
}
return consumer.accept(this);
}