Elex.Autocomplete (Elex v0.3.3)
View SourceCompletes identifiers in an Elex expression without requiring a successful parse.
Elex.autocomplete/4 delegates here after validating options.
The scanner classifies the token under the cursor and the syntactic slot, then
prefix-filters candidates from the context.
Summary
Functions
@spec complete(String.t(), term(), Elex.Context.t(), :none | :all) :: {:ok, %{range: {non_neg_integer(), non_neg_integer()}, suggestions: [map()]}} | {:error, String.t()}