File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
rascal-lsp/src/main/rascal/lang/rascal/lsp/refactor Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -458,10 +458,11 @@ private bool rascalContainsName(loc l, str name) {
458458private set[TModel] rascalTModels(set[loc] fs, PathConfig pcfg) {
459459 RascalCompilerConfig ccfg = rascalCompilerConfig(pcfg)[verbose = false]
460460 [logPathConfig = false];
461- ms = rascalTModelForLocs(toList(fs), ccfg, dummy_compile1);
461+ list[str] moduleNames = [getModuleName(mloc, pcfg) | mloc <- fs ];
462+ ms = rascalTModelForNames (moduleNames , ccfg , dummy_compile1 );
462463
463464 set [TModel ] tmodels = {};
464- for (modName <- ms . moduleLocs ) {
465+ for (str modName <- moduleNames ) {
465466 <found , tm , ms > = getTModelForModule(modName, ms);
466467 if (!found) throw unexpectedFailure("Cannot read TModel for module \'<modName > \'\n<toString (ms .messages )> ");
467468 tmodels += convertTModel2PhysicalLocs(tm);
You can’t perform that action at this time.
0 commit comments