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