AutoMovie API
    Preparing search index...

    Variable validatePropAffordanceTargetConst

    validatePropAffordanceTarget: (
        props: IAutoMovieValidatePropAffordanceTarget.IProps,
        out: IAutoMovieViolationCollector,
    ) => void = ...

    Gate one relation that cites another prop's declared contact point.

    The cited prop must differ from the citing one and be declared exactly once, its model must declare the cited affordance, and that affordance must have the kind the relation needs: stack-top to rest on (on-support), socket to attach, hook to hang (suspended). The first failing rule is reported under <path>.target.prop or <path>.target.affordance and the rest are not judged, because each depends on the one before.

    Type Declaration

      • (
            props: IAutoMovieValidatePropAffordanceTarget.IProps,
            out: IAutoMovieViolationCollector,
        ): void
      • Parameters

        • props: IAutoMovieValidatePropAffordanceTarget.IProps

          Gate one relation that cites another prop's declared contact point.

          The cited prop must differ from the citing one and be declared exactly once, its model must declare the cited affordance, and that affordance must have the kind the relation needs: stack-top to rest on (on-support), socket to attach, hook to hang (suspended). The first failing rule is reported under <path>.target.prop or <path>.target.affordance and the rest are not judged, because each depends on the one before.

          • matches: readonly { value: IAutoMoviePropSpec }[]

            All registry entries whose node equals target.prop, including duplicates. Exactly one is required; the validator does not rebuild or filter this caller-supplied match set.

          • node: string

            Node id of the citing prop, used to reject targeting itself.

          • path: string

            Diagnostic path to the relation; failures append .target.prop or .target.affordance.

          • relation: IAutoMoviePropRelation

            Borrowed citing relation; attached requires socket, suspended requires hook, and the support branch requires stack-top. The caller pairs this with its prop-affordance target.

          • target: IPropAffordance

            Borrowed prop-affordance target to admit. Self-reference is refused before registry or affordance lookup.

        • out: IAutoMovieViolationCollector

          Collector the violations are appended to.

        Returns void