mirror of
https://github.com/apple/pkl.git
synced 2026-06-11 00:02:47 +02:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user