mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
fix cycles in extern modules
This commit is contained in:
parent
3af8f4fc40
commit
a699262671
2 changed files with 23 additions and 3 deletions
|
|
@ -22,6 +22,8 @@ export type CrateLoader = (
|
|||
export class GlobalContext {
|
||||
public error: ErrorHandler = new ErrorHandler();
|
||||
public finalizedCrates: Crate<Final>[] = [];
|
||||
// For cycle detection.
|
||||
public cratesBeingLoaded: Set<string> = new Set<string>();
|
||||
public crateId: Ids = new Ids();
|
||||
|
||||
constructor(public opts: Options, public crateLoader: CrateLoader) {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue