Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1390,7 +1390,11 @@ public RubyNode visitForNode(org.jruby.ast.ForNode node) {
private static final ParserSupport PARSER_SUPPORT = new ParserSupport();

private static org.jruby.ast.Node setRHS(org.jruby.ast.Node node, org.jruby.ast.Node rhs) {
return PARSER_SUPPORT.node_assign(node, rhs);
if (node instanceof AssignableNode || node instanceof IArgumentNode) {
return PARSER_SUPPORT.node_assign(node, rhs);
} else {
throw new UnsupportedOperationException("Don't know how to set the RHS of a " + node.getClass().getName());
}
}

private RubyNode translateDummyAssignment(org.jruby.ast.Node dummyAssignment, final RubyNode rhs) {

0 comments on commit ee20c63

Please sign in to comment.