Skip to content

Commit

Permalink
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/ast/StarNode.java
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ public NodeType getNodeType() {
* @see Node#accept(NodeVisitor)
*/
public Object accept(NodeVisitor visitor) {
return null; // never visited, should be fine
return visitor.visitStarNode(this);
}

public List<Node> childNodes() {
Original file line number Diff line number Diff line change
@@ -503,6 +503,11 @@ public T visitSplatNode(SplatNode node) {
return defaultVisit(node);
}

@Override
public T visitStarNode(StarNode node) {
return defaultVisit(node);
}

@Override
public T visitStrNode(StrNode node) {
return defaultVisit(node);
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
@@ -130,6 +130,7 @@ public interface NodeVisitor<T> {
public T visitSClassNode(SClassNode iVisited);
public T visitSelfNode(SelfNode iVisited);
public T visitSplatNode(SplatNode iVisited);
public T visitStarNode(StarNode iVisited);
public T visitStrNode(StrNode iVisited);
public T visitSuperNode(SuperNode iVisited);
public T visitSValueNode(SValueNode iVisited);

0 comments on commit 196621f

Please sign in to comment.