Skip to content

Commit

Permalink
Merge pull request #551 from usethesource/fix/rename-refactoring/use-…
Browse files Browse the repository at this point in the history
…module-names

Interact with type checker using module names.

(cherry picked from commit 66773d8)
  • Loading branch information
toinehartman committed Jan 8, 2025
1 parent 69abeec commit ee46ed3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,10 +489,11 @@ private bool rascalContainsName(loc l, str name) {
private set[TModel] rascalTModels(set[loc] fs, PathConfig pcfg) {
RascalCompilerConfig ccfg = rascalCompilerConfig(pcfg)[verbose = false]
[logPathConfig = false];
ms = rascalTModelForLocs(toList(fs), ccfg, dummy_compile1);
list[str] topModuleNames = [getModuleName(mloc, pcfg) | mloc <- fs];
ms = rascalTModelForNames(topModuleNames, ccfg, dummy_compile1);
set[TModel] tmodels = {};
for (modName <- ms.moduleLocs) {
for (str modName <- ms.moduleLocs) {
<found, tm, ms> = getTModelForModule(modName, ms);
if (!found) throw unexpectedFailure("Cannot read TModel for module \'<modName>\'\n<toString(ms.messages)>");
tmodels += convertTModel2PhysicalLocs(tm);
Expand Down

0 comments on commit ee46ed3

Please sign in to comment.