Skip to content

Commit c349fe3

Browse files
author
Killian Perlin
committed
Add all_nodes to prelude
1 parent 410c3d6 commit c349fe3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lkql_jit/language/src/main/java/com/adacore/lkql_jit/LKQLLanguage.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ public final class LKQLLanguage extends TruffleLanguage<LKQLContext> {
8080
|" Yields all the previous siblings of the given node
8181
| AdaNode => rec(this.previous_sibling())
8282
| * => ()
83+
84+
val all_nodes = units().flat_map((unit) => children(unit.root))
8385
""";
8486

8587
// ----- Static variables -----

0 commit comments

Comments
 (0)