@r47onfire/nebula - v0.0.0
    Preparing search index...

    Variable adoptConst

    adopt: <R extends string = never, P extends string = never>(
        node: GrammarCombinator<R, P>,
    ) => GrammarCombinator<NoInfer<R>, NoInfer<P>> = ...

    Parses node; if the result is an unnamed container with a direct child that was marked by donate, the container adopts that child's type as its own name (and the child dissolves into it; see donate). Named nodes, leaves, error nodes, and containers with no donated child pass through unchanged. This is how a shared parameterized rule (such as a generic binary-operator rule) can produce nodes named after the specific thing that matched inside it.

    Type Declaration