mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
fix: dependents check
This commit is contained in:
parent
965d0c2c2d
commit
27ad6123da
6 changed files with 90 additions and 25 deletions
|
@ -66,7 +66,8 @@ impl SharedCompilerResource {
|
|||
self.warns.clear();
|
||||
}
|
||||
|
||||
/// Clear all information about the module. All child modules are also cleared.
|
||||
/// Clear all information about the module.
|
||||
/// Graph information is not cleared (due to ELS).
|
||||
pub fn clear(&self, path: &Path) {
|
||||
for child in self.graph.children(path) {
|
||||
self.clear(&child);
|
||||
|
@ -74,7 +75,7 @@ impl SharedCompilerResource {
|
|||
self.mod_cache.remove(path);
|
||||
self.py_mod_cache.remove(path);
|
||||
self.index.remove_path(path);
|
||||
self.graph.remove(path);
|
||||
// self.graph.remove(path);
|
||||
self.promises.remove(path);
|
||||
self.errors.remove(path);
|
||||
self.warns.remove(path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue