Skip to content

Commit

Permalink
add storage collector
Browse files Browse the repository at this point in the history
  • Loading branch information
ferriarnus committed Oct 28, 2024
1 parent 85fbb44 commit 7ed010b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/org/taumc/glsl/Transformer.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,10 @@ public void rewriteStructArrays() {
ParseTreeWalker.DEFAULT.walk(new StructArrayRewriter(), root);
}

public List<TerminalNode> collectStorage() {
List<TerminalNode> tokens = new ArrayList<>();
ParseTreeWalker.DEFAULT.walk(new StorageCollector(tokens), root);
return tokens;
}

}

0 comments on commit 7ed010b

Please sign in to comment.