Skip to content

Commit

Permalink
[Truffle] Fix special visibility for accessors on self
Browse files Browse the repository at this point in the history
* Such as self.foo=bar and self[foo]=bar
  • Loading branch information
eregon committed Oct 13, 2014
1 parent 4ce5caa commit be56d30
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -194,7 +194,8 @@ public RubyNode visitAttrAssignNode(org.jruby.ast.AttrAssignNode node) {
*/
public RubyNode visitAttrAssignNodeExtraArgument(org.jruby.ast.AttrAssignNode node, RubyNode extraArgument) {
final CallNode callNode = new CallNode(node.getPosition(), node.getReceiverNode(), node.getName(), node.getArgsNode(), null);
return visitCallNodeExtraArgument(callNode, extraArgument, false);
boolean isAccessorOnSelf = (node.getReceiverNode() instanceof org.jruby.ast.SelfNode);
return visitCallNodeExtraArgument(callNode, extraArgument, isAccessorOnSelf);
}

@Override
Expand Down

0 comments on commit be56d30

Please sign in to comment.