• 
      

    Add DiffOpcodeBuffer for peeking and mutating an opcode buffer stream.

    Review Request #15204 — Created July 29, 2026 and updated

    Information

    Review Board
    release-8.x

    Reviewers

    DiffOpcodeBuffer wraps a stream of opcodes, yielding them one at a
    time, but with buffering capabilities. These enable callers to peek at
    the next opcode without consuming it or to queue up an opcode to return
    before the next from the buffer.

    This will be used in the upcoming work for the interdiff filtering
    algorithm.

    It also backports some of the diff opcode typing from Review Board 9.

    Unit tests pass.

    Summary ID
    Add DiffOpcodeBuffer for peeking and mutating an opcode buffer stream.
    `DiffOpcodeBuffer` wraps a stream of opcodes, yielding them one at a time, but with buffering capabilities. These enable callers to peek at the next opcode without consuming it or to queue up an opcode to return before the next from the buffer. This will be used in the upcoming work for the interdiff filtering algorithm.
    b16602a5018a6e708831b44543dc17d1c1964524
    Checks run (2 succeeded)
    flake8 passed.
    JSHint passed.
    david
    1. Ship It!
    2.