Skip to content

Commit

Permalink
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -137,6 +137,26 @@ public RubyString dumpString(RubyString string) {

}

@CoreMethod(names = "source_attribution_tree", onSingleton = true)
public abstract static class SourceAttributionTreeNode extends CoreMethodNode {

public SourceAttributionTreeNode(RubyContext context, SourceSection sourceSection) {
super(context, sourceSection);
}

public SourceAttributionTreeNode(SourceAttributionTreeNode prev) {
super(prev);
}

@Specialization
public RubyString sourceAttributionTree() {
notDesignedForCompilation();

return getContext().makeString(NodeUtil.printSourceAttributionTree(Truffle.getRuntime().getCallerFrame().getCallNode().getRootNode()));
}

}

@CoreMethod(names = "storage_class", onSingleton = true, required = 1)
public abstract static class StorageClassNode extends CoreMethodNode {

0 comments on commit 54efaca

Please sign in to comment.