Skip to content

Commit

Permalink
removed topsort module
Browse files Browse the repository at this point in the history
  • Loading branch information
ascandone committed Nov 20, 2024
1 parent 170dbf5 commit 11b0927
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 88 deletions.
5 changes: 3 additions & 2 deletions src/typecheck/typecheck.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import {
UnboundTypeParam,
} from "../errors";
import { castAst, findFieldInModule } from "./resolutionStep";
import { topologicalSort } from "../utils/topsort";
import { createRecordGraph, topsort } from "../data/graph";

export type TypeMeta = { $: TVar };

Expand Down Expand Up @@ -957,7 +957,8 @@ function topSortedModules(
dependencyGraph[ns] = deps;
}

return topologicalSort(dependencyGraph);
const graph = createRecordGraph(dependencyGraph);
return topsort(graph);
}

function getDependencies(program: UntypedModule): string[] {
Expand Down
38 changes: 0 additions & 38 deletions src/utils/topsort.test.ts

This file was deleted.

48 changes: 0 additions & 48 deletions src/utils/topsort.ts

This file was deleted.

0 comments on commit 11b0927

Please sign in to comment.