mirror of
https://github.com/apple/pkl.git
synced 2026-07-10 23:22:46 +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
|
@Override
|
||||||
protected boolean acceptTypeNode(boolean visitTypeArguments, TypeNodeConsumer consumer) {
|
protected boolean acceptTypeNode(boolean visitTypeArguments, TypeNodeConsumer consumer) {
|
||||||
|
if (visitTypeArguments) {
|
||||||
|
return consumer.accept(this) && elementTypeNode.acceptTypeNode(true, consumer);
|
||||||
|
}
|
||||||
return consumer.accept(this);
|
return consumer.accept(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user