Skip to content

Commit d77f9e3

Browse files
committed
Added type info
1 parent 3ad8a70 commit d77f9e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/analysis/typepal/refactor/Rename.rsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ default set[Define] getCursorDefinitions(Focus cursor, Tree(loc) _getTree, TMode
378378
for (Tree c <- cursor) {
379379
if (tm.definitions[c.src]?) {
380380
return {tm.definitions[c.src]};
381-
} else if (defs: {_, *_} := tm.useDef[c.src]) {
381+
} else if (rel[loc,loc] defs: {_, *_} := tm.useDef[c.src]) {
382382
if (any(d <- defs, d.top != cursorLoc.top)) {
383383
r.msg(error(cursorLoc, "Rename not implemented for cross-file definitions. Please overload `getCursorDefinitions`."));
384384
return {};

0 commit comments

Comments
 (0)