AutoMovie API
    Preparing search index...

    Variable validateBuiltBuildingsConst

    validateBuiltBuildings: (
        environment: IAutoMovieBuiltEnvironment,
        root: string,
        collector: IAutoMovieViolationCollector,
    ) => void = ...

    Validate a work's building units and that they own every element and space exactly once.

    A work needs at least one unit, each with a unique non-blank id. A unit's root element and root space must resolve and have no parent, and no two units may share a root. Then every element and every space must reach, through its parents, a topmost record that is some unit's root; one that does not is reported on its own parent path, naming its topmost record. A walk that hits a dangling or cyclic parent stops silently, because that defect is reported on its own path. Findings are pushed under <root>.buildings, <root>.elements and <root>.spaces.

    Type Declaration