mirror of
https://github.com/konsoletyper/teavm.git
synced 2024-11-27 01:30:35 +08:00
Fix bug in generation of block labels
This commit is contained in:
parent
b28f5a6b71
commit
299485eb96
@ -315,7 +315,7 @@ public class StatementRenderer implements ExprVisitor, StatementVisitor {
|
||||
private String generateBlockId(int index) {
|
||||
int mappedIndex;
|
||||
while (blockIds.size() <= index) {
|
||||
mappedIndex = blockIndexMap.isEmpty() ? -1 : blockIndexMap.get(blockIds.size());
|
||||
mappedIndex = blockIndexMap.isEmpty() ? -1 : blockIndexMap.get(blockIds.size() - 1);
|
||||
mappedIndex++;
|
||||
while (RenderingUtil.KEYWORDS.contains(RenderingUtil.indexToId(mappedIndex))) {
|
||||
mappedIndex++;
|
||||
|
Loading…
Reference in New Issue
Block a user