in instrumentation/src/com/intellij/rt/coverage/instrumentation/filters/lines/KotlinCoroutinesFilter.java [195:212]
public void visitInsn(int opcode) {
super.visitInsn(opcode);
if (myState == 1 && opcode == Opcodes.DUP) {
myState = 2;
return;
} else if (myState == 4 && opcode == Opcodes.ATHROW) {
if (!myHadLineDataBefore && !myHasInstructions) {
onIgnoredLine(myLine);
}
return;
}
myHasInstructions = true;
myState = 0;
// ignore generated return on the first line
if (opcode == Opcodes.ARETURN && myLoadCoroutinesSuspendedVisited && !myHadLineDataBefore) {
onIgnoredLine(myLine);
}
}