File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/main/java/org/truffleruby/language Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 21
21
import com .oracle .truffle .api .frame .VirtualFrame ;
22
22
import com .oracle .truffle .api .source .SourceSection ;
23
23
import org .truffleruby .language .methods .Split ;
24
+ import org .truffleruby .parser .ParentFrameDescriptor ;
24
25
25
26
public class RubyRootNode extends RubyBaseRootNode {
26
27
@@ -65,6 +66,16 @@ public Object execute(VirtualFrame frame) {
65
66
return body .execute (frame );
66
67
}
67
68
69
+ @ Override
70
+ public FrameDescriptor getParentFrameDescriptor () {
71
+ var info = getFrameDescriptor ().getInfo ();
72
+ if (info instanceof ParentFrameDescriptor ) {
73
+ return ((ParentFrameDescriptor ) info ).getDescriptor ();
74
+ } else {
75
+ return null ;
76
+ }
77
+ }
78
+
68
79
@ Override
69
80
public boolean isCloningAllowed () {
70
81
return split != Split .NEVER ;
You can’t perform that action at this time.
0 commit comments