Skip to main content

Module completion

Module completion 

Source
Expand description

Completion-data generation from the method catalog (§19.8).

The §19.8 acceptance criterion requires that “method completion data is generated from the same catalog used by the compiler.” This module renders the MethodCatalog into a serializable completion table for completion and signature help (§5.7: “The language server uses the same table”). No LSP wiring here — just the generation, plus a round-trip test proving the generated data covers the compiler’s catalog 1:1.

Structs§

CompletionItem
One completion item: the receiver shape, method name, parameter shapes, result shape, and doc — everything the LSP needs to offer a completion.

Functions§

completion_data
Generate the full completion table from the catalog, in catalog order. Every entry becomes one CompletionItem; the output is a 1:1 rendering.