in hot-reload-analysis/src/main/kotlin/org/jetbrains/compose/reload/analysis/InstructionToken.kt [480:490]
override fun nextToken(context: TokenizerContext): Either<InstructionToken, Failure>? {
val instructions = mutableListOf<AbstractInsnNode>()
var currentContext = context
while (true) {
if (priorityTokenizer.nextToken(currentContext) != null) break
instructions.add(currentContext[0] ?: break)
currentContext = currentContext.skip(1) ?: break
}
if (instructions.isEmpty()) return null
return InstructionToken.BlockToken(instructions).toLeft()
}