mirror of
https://github.com/apple/pkl.git
synced 2026-06-28 16:26:20 +02:00
Fix compile error (#857)
PRs https://github.com/apple/pkl/pull/789 and https://github.com/apple/pkl/pull/837 being merged caused a compile error; this fixes them.
This commit is contained in:
@@ -49,7 +49,7 @@ public abstract class ElementOrEntryNode extends RegularMemberNode {
|
|||||||
VirtualFrame frame,
|
VirtualFrame frame,
|
||||||
VmListing receiver,
|
VmListing receiver,
|
||||||
@Cached("create()") @Shared("callNode") IndirectCallNode callNode) {
|
@Cached("create()") @Shared("callNode") IndirectCallNode callNode) {
|
||||||
var result = executeBody(frame);
|
var result = bodyNode.executeGeneric(frame);
|
||||||
return VmUtils.shouldRunTypeCheck(frame)
|
return VmUtils.shouldRunTypeCheck(frame)
|
||||||
? receiver.executeTypeCasts(result, VmUtils.getOwner(frame), callNode, null, null)
|
? receiver.executeTypeCasts(result, VmUtils.getOwner(frame), callNode, null, null)
|
||||||
: result;
|
: result;
|
||||||
@@ -60,7 +60,7 @@ public abstract class ElementOrEntryNode extends RegularMemberNode {
|
|||||||
VirtualFrame frame,
|
VirtualFrame frame,
|
||||||
VmMapping receiver,
|
VmMapping receiver,
|
||||||
@Cached("create()") @Shared("callNode") IndirectCallNode callNode) {
|
@Cached("create()") @Shared("callNode") IndirectCallNode callNode) {
|
||||||
var result = executeBody(frame);
|
var result = bodyNode.executeGeneric(frame);
|
||||||
return VmUtils.shouldRunTypeCheck(frame)
|
return VmUtils.shouldRunTypeCheck(frame)
|
||||||
? receiver.executeTypeCasts(result, VmUtils.getOwner(frame), callNode, null, null)
|
? receiver.executeTypeCasts(result, VmUtils.getOwner(frame), callNode, null, null)
|
||||||
: result;
|
: result;
|
||||||
@@ -68,6 +68,6 @@ public abstract class ElementOrEntryNode extends RegularMemberNode {
|
|||||||
|
|
||||||
@Specialization
|
@Specialization
|
||||||
protected Object evalDynamic(VirtualFrame frame, VmDynamic ignored) {
|
protected Object evalDynamic(VirtualFrame frame, VmDynamic ignored) {
|
||||||
return executeBody(frame);
|
return bodyNode.executeGeneric(frame);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user