mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
clarify variable name
This commit is contained in:
parent
d31ea3e71f
commit
97742b3238
2 changed files with 5 additions and 5 deletions
|
@ -53,7 +53,7 @@ impl ExposedByModule {
|
|||
#[derive(Clone, Debug, Default)]
|
||||
pub struct ExposedForModule {
|
||||
pub exposed_by_module: ExposedByModule,
|
||||
pub imported_symbols: Vec<Symbol>,
|
||||
pub imported_values: Vec<Symbol>,
|
||||
}
|
||||
|
||||
impl ExposedForModule {
|
||||
|
@ -61,7 +61,7 @@ impl ExposedForModule {
|
|||
it: impl Iterator<Item = &'a Symbol>,
|
||||
exposed_by_module: ExposedByModule,
|
||||
) -> Self {
|
||||
let mut imported_symbols = Vec::new();
|
||||
let mut imported_values = Vec::new();
|
||||
|
||||
for symbol in it {
|
||||
// Today, builtins are not actually imported,
|
||||
|
@ -75,14 +75,14 @@ impl ExposedForModule {
|
|||
if let Some(ExposedModuleTypes::Valid { .. }) =
|
||||
exposed_by_module.exposed.get(&symbol.module_id())
|
||||
{
|
||||
imported_symbols.push(*symbol);
|
||||
imported_values.push(*symbol);
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
Self {
|
||||
imported_symbols,
|
||||
imported_values,
|
||||
exposed_by_module,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3108,7 +3108,7 @@ fn run_solve<'a>(
|
|||
|
||||
let mut import_variables = Vec::new();
|
||||
|
||||
for symbol in exposed_for_module.imported_symbols {
|
||||
for symbol in exposed_for_module.imported_values {
|
||||
let module_id = symbol.module_id();
|
||||
match exposed_for_module.exposed_by_module.get_mut(&module_id) {
|
||||
Some(t) => match t {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue