Sitelet https://github.com/jruby/jruby/pull/6474/files
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,11 @@ public T visitNthRefNode(NthRefNode node) {
return defaultVisit(node);
}

@Override
public T visitOperatorCallNode(OperatorCallNode node) {
return defaultVisit(node);
}

@Override
public T visitOpElementAsgnNode(OpElementAsgnNode node) {
return defaultVisit(node);
Expand Down
1 change: 1 addition & 0 deletions core/src/main/java/org/jruby/ast/visitor/NodeVisitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public interface NodeVisitor<T> {
T visitNextNode(NextNode iVisited);
T visitNilNode(NilNode iVisited);
T visitNthRefNode(NthRefNode iVisited);
T visitOperatorCallNode(OperatorCallNode iVisited);
T visitOpElementAsgnNode(OpElementAsgnNode iVisited);
T visitOpAsgnNode(OpAsgnNode iVisited);
T visitOpAsgnAndNode(OpAsgnAndNode iVisited);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,12 @@ public class OperatorCallNode extends CallNode {
public OperatorCallNode(int line, Node receiverNode, RubySymbol name, Node argsNode, Node iterNode, boolean isLazy) {
super(line, receiverNode, name, argsNode, iterNode, isLazy);
}

/**
* Accept for the visitor pattern.
* @param iVisitor the visitor
**/
public <T> T accept(NodeVisitor<T> iVisitor) {
return iVisitor.visitOperatorCallNode(this);
}
}