Skip to content

Commit 5f00b62

Browse files
raph-amiardHugoGGuerrier
authored andcommitted
Perf/debug: Add debug info to ListComprehensionRootNode
Add proper toString method so that we can identify those root nodes in logs and in the Ideal Graph Visualizer
1 parent c521658 commit 5f00b62

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lkql_jit/language/src/main/java/com/adacore/lkql_jit/nodes/root_nodes/ListComprehensionRootNode.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,14 @@ public Object execute(VirtualFrame frame) {
7373
return null;
7474
}
7575
}
76+
77+
@Override
78+
public String toString() {
79+
return (
80+
"<listcomp>:" +
81+
this.result.getLocation().fileName() +
82+
":" +
83+
this.result.getLocation().startLine()
84+
);
85+
}
7686
}

0 commit comments

Comments
 (0)