Metreeca Keep
    Preparing search index...

    Function getFlakeVariant

    • Slices a node's entry-major branch index down to the branches one variant shape contributes.

      A node's Entries index every union variant's branches by property name; this cross-cuts that index along the shape axis, keeping at each name the branches whose name shape declares. A path crossing the union under a shared predicate folds to a single branch (§5.8.1) contributed by every variant declaring that name, so such a branch surfaces under each of them.

      Parameters

      • flake: Flake

        The node whose branch index to slice: any Flake, a collection flake root as well as a Branch

      • shape: Shape

        One of the range variants to slice by

      Returns readonly Branch[]

      The branches shape contributes, in property declaration order