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 authored and GitHub committed 2026-06-10 06:53:26 -07:00
1 parent ac822f11eb
commit 44f8706616
1 file changed
+3
@@ -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);
}