private Scope createLoopNode ( Node loopLabel , int lineno ) { Scope result = createScopeNode ( Token . LOOP , lineno ) ; if ( loopLabel != null ) { ( ( Jump ) loopLabel ) . setLoop ( result ) ; } return result ; }
Create loop node . The code generator will later call createWhile|createDoWhile|createFor|createForIn to finish loop generation .