Member Junction
    Preparing search index...

    A set of edits to one text, kept as a value: every method returns a new set and leaves this one unchanged. Edits are made by node or span against the original text; overlapping edits are refused with an EditConflictError. Apply applies them back to front, so each edit's offsets stay those of the original text.

    Index

    Accessors

    Methods

    • Replaces each of targets with text, checking all of them against each other and the existing edits in one sorted pass, so a large batch (every reference to a renamed name) costs O(n log n) rather than O(n²).

      Parameters

      Returns EditSet