Skip to content

Commit

Permalink
Fix findType exiting early when it shouldn't
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Jan 11, 2025
1 parent 41be8e5 commit 4592fb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/taumc/glsl/Transformer.java
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ else if (ctx.getParent() instanceof GLSLParser.Init_declarator_listContext) {
public int findType(String code) {
for (var ctx : singleDeclarations) {
if (ctx.typeless_declaration() == null) {
return 0;
continue;
}
if (ctx.typeless_declaration().IDENTIFIER().getSymbol() instanceof CommonToken cToken) {
if (cToken.getText().equals(code)) {
Expand Down

0 comments on commit 4592fb1

Please sign in to comment.