fix null pointer exception in ruby visitor

This commit is contained in:
Gang ZHANG 2022-10-23 14:14:47 +08:00
parent 68a5dccf66
commit c09675c980
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ public class JRubyVisitor extends NoopVisitor {
@Override
public Object visitDAsgnNode(DAsgnNode node) {
context.foundVarDefinition(helper.getScopeOfVar(node,context), node.getName(),node.getPosition().getStartLine()+1);
expressionUsage.foundExpression(node.getValue());
expressionUsage.foundExpression(node);
return super.visitDAsgnNode(node);
}