The completion mode: defines what kinds of symbols should be included in the completion results.
A scope that tracks renames of the entered symbols. Useful for providing completions for renamed symbols in the REPL and the IDE.
Create a new
CompletionBuffer for completing at
path to determine what kinds of symbols should be considered.
If the path starts with:
RefTree, then accept symbols of the same kind as its name;
- a renaming import, and the cursor is on the renamee, accept both terms and types;
- an import, accept both terms and types;
Otherwise, provide no completion suggestion.
path to determine the offset where the completion result should be inserted.
path to determine the completion prefix. Only symbols whose name start with the
returned prefix should be considered.
Get possible completions from tree at