Skip to content

Commit

Permalink
Fixed wrong token type.
Browse files Browse the repository at this point in the history
  • Loading branch information
TwoOfTwelve committed Nov 21, 2023
1 parent c8d5786 commit 93e9a71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public Void visitCase(CaseTree node, Void unused) {
}

if (node.getGuard() != null) {
addToken(JavaTokenType.J_IF_BEGIN, positions.getEndPosition(ast, node), 0, CodeSemantics.createControl());
addToken(JavaTokenType.J_IF_END, positions.getEndPosition(ast, node), 0, CodeSemantics.createControl());
}

return null;
Expand Down

0 comments on commit 93e9a71

Please sign in to comment.