This feature would replace the following code:
| returnwhen (val frame = continuation.frame) { |
| isFrameEvaluate-> sequenceOf( |
| toVariable("Code", frame.list, sourceLine), |
| toVariable("IsMetacasting", frame.isMetacasting.toString()), |
| ) |
| |
| isFrameForEach-> sequenceOf( |
| toVariable("Code", frame.code, sourceLine), |
| toVariable("Data", frame.data), |
| frame.baseStack?.let { toVariable("BaseStack", it) }, |
| toVariable("Result", frame.acc), |
| ).filterNotNull() |
| |
| isFrameBreakpoint-> sequenceOf( |
| toVariable("StopBefore", frame.stopBefore.toString()), |
| toVariable("IsFatal", frame.isFatal.toString()), |
| ) |
| |
| else->if (sourceLine.isNotEmpty()) sequenceOf( |
| toVariable("Code", sourceLine), |
| ) elsenull |
| } |
This feature would replace the following code:
HexDebug/Common/src/main/kotlin/gay/object/hexdebug/debugger/HexDebugger.kt
Lines 224 to 245 in 3a4f473