Environment Information
- JRuby version: 9.4.9.0
- Operating system and platform: all
Expected Behavior
- The
visitInstVarNode method in InstanceVariableFinder at
|
Node node = nodes.get(i); |
does not actually visit the child nodes. It just retrieves them without calling node.accept(this) as the visitInstAsgnNode just above it does.
NOTE: Overall it does not really matter since InstVarNodes do not have any children anyway, but both of these methods could be simplified, and the error avoided by simply calling the visitChildren method defined in the base class.