Skip to main content

Module completion

Module completion 

Source

Structs§

CompletionCtx
Optional context for completion requests that enables richer results (e.g. auto-import edits, -> scoping to a class).

Functions§

builtin_completions
builtin_completions_matching
Like builtin_completions but only materializes items whose label passes keep — completion builds these per request, and constructing hundreds of builtin items just for a prefix retain to drop them dominated the request’s allocations.
filtered_completions_at
Completions filtered by trigger character, with optional context so that -> completions can be scoped to the variable’s class.
keyword_completions
keyword_completions_matching
magic_constant_completions
magic_constant_completions_matching
superglobal_completions
superglobal_completions_matching
symbol_completions
symbol_completions_before
Like symbol_completions but only includes variables declared at or before line. Non-variable items (functions, classes, etc.) are always included.

Type Aliases§

ClassDocLookup
Workspace-index-backed class lookup: maps a short class name to the ParsedDoc that defines it. Used by all_instance_members and all_static_members to avoid scanning all workspace docs linearly.
WorkspaceClassSearch
Workspace-index-backed class name search: given a typed prefix, returns (short_name, kind, fqn) for every workspace class whose short name starts with it — including classes defined in files that are not open in the editor (e.g. vendor/). Complements other_docs, which only covers currently open documents.