This commit is contained in:
faldor20 2024-03-12 00:26:29 +10:00
parent 45d994d7d7
commit be71514435
No known key found for this signature in database
GPG Key ID: F2216079B890CD57
4 changed files with 5 additions and 5 deletions

View File

@ -217,7 +217,7 @@ fn start_phase<'a>(
//
// At the end of this loop, dep_idents contains all the information to
// resolve a symbol from another module: if it's in here, that means
// we have both imported the module and the ident was exported by that mdoule.
// we have both imported the module and the ident was exported by that module.
for dep_id in deps_by_name.values() {
// We already verified that these are all present,
// so unwrapping should always succeed here.

View File

@ -4,7 +4,7 @@ extern crate pulldown_cmark;
extern crate roc_load;
use bumpalo::Bump;
use roc_can::scope::Scope;
use roc_collections::{VecSet};
use roc_collections::VecSet;
use roc_load::docs::{DocEntry, TypeAnnotation};
use roc_load::docs::{ModuleDocumentation, RecordField};
use roc_load::{ExecutionMode, LoadConfig, LoadedModule, LoadingProblem, Threading};

View File

@ -246,7 +246,7 @@ impl AnalyzedDocument {
let is_field_or_module_completion = symbol_prefix.contains('.');
if is_field_or_module_completion {
//if the second last section is capitalised we know we are completing a module of an import of a module eg: My.Module.function
//if the second last section is capitalized we know we are completing a module of an import of a module eg: My.Module.function
let is_module_completion = symbol_prefix
.split('.')
.nth_back(1)

View File

@ -129,7 +129,7 @@ fn get_module_exposed_completion(
.collect::<Vec<_>>()
}
///Efficently walks the list of docs collecting the docs for completions as we go. Should be faster than re-walking for every completion
///Efficiently walks the list of docs collecting the docs for completions as we go. Should be faster than re-walking for every completion
fn get_completion_docs(
completions: &[(Symbol, Variable)],
docs: &ModuleDocumentation,
@ -345,7 +345,7 @@ pub fn field_completion(
variable_name, field, middle_fields
);
//We get completetions here, but all we really want is the info about the variable that is the first part of our record completion.
//We get completions here, but all we really want is the info about the variable that is the first part of our record completion.
//We are completing the full name of the variable so we should only have one match
let completion = get_completions(position, declarations, variable_name, interns)
.into_iter()