-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve definition handling for guessed receiver types
It's not uncommon for Ruby programmers to name variables after a class's superclass. But with guessed receiver types, such usages would actually reduce the number of definitions returned. For example, given the following code: ```rb class Animal end class Cat < Animal def meow "Meow" end end animal = Cat.new animal.meow # meow can't be found with experimented features enabled ``` This commit improves the definition handling for guessed receiver types by treating them as unknown when no methods are found.
- Loading branch information
Showing
2 changed files
with
72 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters