Visitor of a semantic version range.

interface SemVerRangeVisitor {
    postVisitAnd(): void;
    postVisitOr(): void;
    preVisitAnd(): void;
    preVisitOr(): void;
    visitRange(
        low: undefined | SemVer,
        lowIsInclusive: boolean,
        up: undefined | SemVer,
        upIsInclusive: boolean,
    ): void;
}

Methods

  • post-visits an 'and' expression.

    Returns void

  • Post-visits an 'or' expression.

    Returns void

  • Pre-visits an 'and' expression.

    Returns void

  • Pre-visits an 'or' expression.

    Returns void

  • Visits a range expression.

    Parameters

    • low: undefined | SemVer

      the lower version

    • lowIsInclusive: boolean

      indicate if the lower version should be included

    • up: undefined | SemVer

      the upper version

    • upIsInclusive: boolean

      indicate if the upper version should be included

    Returns void