@ericwhitedev/lcsts
    Preparing search index...

    Class CorrelatedSequence

    A pair of token subsequences together with their CorrelationStatus.

    The compare function returns an array of CorrelatedSequence objects. Each entry describes a contiguous run of tokens that are equal, deleted, or inserted.

    For equal sequences both lists contain the matched tokens. For deletions only comparisonUnitList1 is populated; for insertions only comparisonUnitList2 is populated.

    Index

    Constructors

    Properties

    comparisonUnitList1: readonly ComparisonUnitToken[] | null

    Tokens from the first input, or null for insertions.

    comparisonUnitList2: readonly ComparisonUnitToken[] | null

    Tokens from the second input, or null for deletions.

    correlationStatus: CorrelationStatus

    The relationship between the two subsequences.

    Methods

    • Returns a multi-line, human-readable representation of this sequence.

      Returns string

      A formatted string showing the correlation status and token lists.