Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 24ce9b2

Browse files
committed
Changed type of vocabulary to set[str]
1 parent 780bf35 commit 24ce9b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/org/rascalmpl/core/library/lang/rascalcore/check/RascalConfig.rsc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ list[str] rascalSimilarNames(Use u, TModel tm){
467467
nw = size(w);
468468
idRoles = u.idRoles;
469469
pcfg = tm.config.typepalPathConfig;
470-
vocabulary = [];
470+
vocabulary = {};
471471
longNames = {};
472472
if(moduleId() in idRoles){
473473
for(srcdir <- pcfg.srcs){
@@ -481,7 +481,7 @@ list[str] rascalSimilarNames(Use u, TModel tm){
481481
}
482482
}
483483
} else {
484-
vocabulary = [ d.orgId | d <- tm.defines, d.idRole in idRoles, isContainedIn(u.occ, d.scope) ];
484+
vocabulary = { d.orgId | d <- tm.defines, d.idRole in idRoles, isContainedIn(u.occ, d.scope) };
485485
}
486486
//println("similarNames: <u>, <idRoles>, <vocabulary>");
487487
similar = similarWords(w, vocabulary, tm.config.cutoffForNameSimilarity)[0..10];

0 commit comments

Comments
 (0)