AutoMovie API
    Preparing search index...

    Function validateDeclaredReferences

    • Report each reference in a list that resolves to no declared id or repeats an earlier one.

      Reference i is checked at <path>[i]: one that is not in targets gets a type violation <label> "<id>" does not resolve, and one equal to an earlier entry gets a type violation <label> "<id>" is duplicated. A reference that is both gets both.

      Parameters

      • references: readonly string[]

        Referenced ids, in authored order.

      • targets: ReadonlySet<string>

        Ids the references may name, usually from collectDeclaredIds.

      • path: string

        Violation path of the reference list itself.

      • label: string

        Name of the referenced record in the messages.

      • collector: IAutoMovieViolationCollector

        Sink that receives the violations.

      Returns void