KT element: KtForExpression
FIR element: FirWhileLoopImpl
FIR source kind: KtRealSourceElementKind

FIR element rendered:
while(R|<local>/<iterator>|.hasNext#()) {
    [ResolvedTo(RAW_FIR)] lval x: <implicit> = R|<local>/<iterator>|.next#()
     {
    }

}

FIR FILE:
FILE: [ResolvedTo(IMPORTS)] forExpressionScript.kts
    context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
    SCRIPT: [ResolvedTo(BODY_RESOLVE)] 
        [ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|

        public? final? [ResolvedTo(RAW_FIR)] fun foo(): R|kotlin/Unit| {
             {
                [ResolvedTo(RAW_FIR)] lval <iterator>: <implicit> = IntegerLiteral(0).rangeTo#(IntegerLiteral(1)).iterator#()
                while(R|<local>/<iterator>|.hasNext#()) {
                    [ResolvedTo(RAW_FIR)] lval x: <implicit> = R|<local>/<iterator>|.next#()
                     {
                    }

                }

            }

        }