fix end detecting of ELSE block and sub structures in the THEN block.

This commit is contained in:
Volker Berlin 2019-09-25 22:32:41 +02:00
parent 40375316e2
commit 432baef4b4

View File

@ -333,9 +333,6 @@ class BranchManger {
BranchNode branch = null;
for( ; i < parsedOperations.size(); i++ ) {
ParsedBlock parsedBlock = parsedOperations.get( i );
if( parsedBlock.nextPosition > positions.elsePos ) {
break;
}
if( parsedBlock.nextPosition == positions.elsePos && parsedBlock.op == JavaBlockOperator.GOTO && parsedBlock.startPosition < parsedBlock.endPosition ) {
parsedOperations.remove( i );
// end position can not be outside of the parent
@ -375,7 +372,9 @@ class BranchManger {
}
break;
}
if( parsedBlock.nextPosition >= positions.elsePos ) {
break;
}
}
if( branch == null ) {