Skip to main content

Module completion

Module completion 

Source
Expand description

Completion (ADR-0091 Phase 6).

Trigger characters: ., @, :, (. The phase-6 model:

  • After . on a receiver expression: fields and methods on the receiver’s type (when we have it from the AIR side-table).
  • After @: intrinsic names from the gruel_intrinsics registry.
  • Otherwise: locals in the enclosing function (from RIR’s Local sites — recovered via AST walk), plus every top-level item.

Structs§

CompletionItem

Enums§

CompletionKind

Functions§

complete_at
Completion at the given byte position. trigger is Some('.') / Some('@') if the editor invoked us via a trigger character.