Handle break/continue in loop header (condition for 'while', range for 'for').
This commit is contained in:
committed by
Dmitry Petrov
parent
b3866d53cd
commit
d623c70778
@@ -162,10 +162,10 @@ class RenderIrElementVisitor : IrElementVisitor<String, Nothing?> {
|
||||
"DO_WHILE label=${loop.label} operator=${loop.operator}"
|
||||
|
||||
override fun visitBreak(jump: IrBreak, data: Nothing?): String =
|
||||
"BREAK label=${jump.label} depth=${jump.getDepth()}"
|
||||
"BREAK label=${jump.label} loop.label=${jump.loop.label} depth=${jump.getDepth()}"
|
||||
|
||||
override fun visitContinue(jump: IrContinue, data: Nothing?): String =
|
||||
"CONTINUE label=${jump.label} depth=${jump.getDepth()}"
|
||||
"CONTINUE label=${jump.label} loop.label=${jump.loop.label} depth=${jump.getDepth()}"
|
||||
|
||||
override fun visitThrow(expression: IrThrow, data: Nothing?): String =
|
||||
"THROW type=${expression.type.render()}"
|
||||
|
||||
Reference in New Issue
Block a user