Skip to content

Commit

Permalink
[WIP] Properly apply import resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
yannham committed Jan 28, 2025
1 parent cbfb5d4 commit 1ab2edd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion core/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ impl TermCache {
.map(|TermEntry { state, .. }| std::mem::replace(state, new))
}

/// Applies term transformation excepted import resolution, implemented as a differeent phase.
fn transform(
&mut self,
wildcards: &WildcardsCache,
Expand Down Expand Up @@ -1199,7 +1200,7 @@ impl Caches {
/// It only accumulates errors if the cache is in error tolerant mode, otherwise it returns an
/// `Err(..)` containing a `CacheError`.
#[allow(clippy::type_complexity)]
pub fn resolve_imports(
fn resolve_imports(
&mut self,
file_id: FileId,
) -> Result<CacheOp<(Vec<FileId>, Vec<ImportError>)>, CacheError<ImportError>> {
Expand Down Expand Up @@ -1379,6 +1380,12 @@ impl Caches {
term,
)
}

fn all_transformations(&mut self, file_id: FileId) -> Result<(), ()> {

Check failure on line 1384 in core/src/cache.rs

View workflow job for this annotation

GitHub Actions / build-and-test (windows-latest)

mismatched types
//TODO: finish this
self.resolve_imports(file_id);
self.terms.transform();

Check failure on line 1387 in core/src/cache.rs

View workflow job for this annotation

GitHub Actions / build-and-test (windows-latest)

this method takes 3 arguments but 0 arguments were supplied
}
}

/// The error tolerance mode used by the parser. The NLS needs to try to
Expand Down

0 comments on commit 1ab2edd

Please sign in to comment.