mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
refactorings
This commit is contained in:
parent
7eeaf548d0
commit
2f1f4a9798
12 changed files with 85 additions and 100 deletions
|
|
@ -45,7 +45,7 @@ export const loadCrate: CrateLoader = (
|
|||
// We really, really want a good algorithm for finding crates.
|
||||
// But right now we just look for files in the CWD.
|
||||
|
||||
const existing = gcx.depCrates.find((crate) => crate.packageName === name);
|
||||
const existing = gcx.finalizedCrates.find((crate) => crate.packageName === name);
|
||||
if (existing) {
|
||||
return existing;
|
||||
}
|
||||
|
|
@ -64,7 +64,7 @@ export const loadCrate: CrateLoader = (
|
|||
|
||||
const typecked = typeck(gcx, resolved);
|
||||
|
||||
gcx.depCrates.push(typecked);
|
||||
gcx.finalizedCrates.push(typecked);
|
||||
return typecked;
|
||||
},
|
||||
() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue