Skip to content

Commit

Permalink
Fix rename TModel load.
Browse files Browse the repository at this point in the history
  • Loading branch information
toinehartman committed Nov 7, 2024
1 parent 456372d commit 2977d06
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,11 @@ list[DocumentEdit] rascalRenameSymbol(Tree cursorT, set[loc] workspaceFolders, s
[logPathConfig = false];
for (<file, true> <- \files) {
ms = rascalTModelForLocs([file], ccfg, dummy_compile1);
tmodels += {convertTModel2PhysicalLocs(tm) | m <- ms.tmodels, tm := ms.tmodels[m]};
for (modName <- ms.moduleLocs) {
<found, tm, ms> = getTModelForModule(modName, ms);
if (!found) throw unexpectedFailure("Cannot read TModel for module \'<modName>\'");
tmodels += convertTModel2PhysicalLocs(tm);
}
}
}
return tmodels;
Expand Down

0 comments on commit 2977d06

Please sign in to comment.