INNER CODE UNIT · Python

next_next_line

Kotlin/kandy · util/kandy-samples-utils/nb_to_doc.py:339

                next_next_line = lines[i + 1].strip()
                if next_next_line.startswith('.') or '.into(' in next_next_line:
                    # Include the comment line and continue extraction
                    current_lines.append(next_line)
                    i += 1
                    continue

            break

        if not is_continuation:
            # Check if this is a new declaration or statement
            if (next_line_stripped.startswith(('val ', 'var ', 'fun ', 'class ', 'if ', 'for ', 'while ')) or 
                next_line_stripped == ''):
                break

            # If this is a comment, include it and continue
            if is_comment:
                current_lines.append(next_line)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…