コード例 #1
0
  @Override
  public RubyNode visitBlockArgNode(org.jruby.ast.BlockArgNode node) {
    final SourceSection sourceSection = translate(node.getPosition());

    final RubyNode readNode = new ReadBlockNode(context, sourceSection, NilPlaceholder.INSTANCE);
    final FrameSlot slot =
        methodBodyTranslator.getEnvironment().getFrameDescriptor().findFrameSlot(node.getName());
    return WriteLocalVariableNodeFactory.create(context, sourceSection, slot, readNode);
  }