Something went wrong. Try again.
Odoc docs forked from jon.recoil.org/odd
Something went wrong. Try again.
123456789101112131415(** Complete a partial odoc reference against the whole switch.
Given the start of a reference, return the full reference strings it could become — the reverse of {!Show}: rather than resolving a complete reference and rendering it, resolve the reference's parent context and list the children matching the final, incomplete component. Built on {!Refs}. *)
val complete : Switch.t -> string -> string list(** [complete sw partial] is the candidate completions of [partial], each a full reference string (the verbatim stem the user typed plus a completed final component), sorted and de-duplicated. Empty when nothing matches — an unresolvable or dead-end input is not an error. Handles dotted member references (incl. kind tags like [type-]), package-qualified path segments ([/pkg], [/lib/Unit]), and bare top-level names (with [Stdlib] open). *)