public static IRubyObject[] getArgValues(ThreadContext context) { return context.getCurrentScope().getArgValues(); }
public static IRubyObject[] getArgValues(ThreadContext context) { return context.getCurrentScope().getArgValues(); }
@Override public IRubyObject[] getArgValues() { // if we're not the "argument scope" for zsuper, try our parent if (!staticScope.isArgumentScope()) { return parent.getArgValues(); } int totalArgs = staticScope.getRequiredArgs() + staticScope.getOptionalArgs(); assert totalArgs == 0 : this.getClass().getSimpleName() + " only supports scopes with no variables"; return IRubyObject.NULL_ARRAY; } }
@Override public IRubyObject[] getArgValues() { // if we're not the "argument scope" for zsuper, try our parent if (!staticScope.isArgumentScope()) { return parent.getArgValues(); } int totalArgs = staticScope.getRequiredArgs() + staticScope.getOptionalArgs(); assert totalArgs == 0 : this.getClass().getSimpleName() + " only supports scopes with no variables"; return IRubyObject.NULL_ARRAY; } }
public static IRubyObject callZSuper(Ruby runtime, ThreadContext context, Block block, IRubyObject self) { // Has the method that is calling super received a block argument if (!block.isGiven()) block = context.getCurrentFrame().getBlock(); return Helpers.invokeSuper(context, self, context.getCurrentScope().getArgValues(), block); }
public static IRubyObject callZSuper(Ruby runtime, ThreadContext context, Block block, IRubyObject self) { // Has the method that is calling super received a block argument if (!block.isGiven()) block = context.getCurrentFrame().getBlock(); return Helpers.invokeSuper(context, self, context.getCurrentScope().getArgValues(), block); }
@Override public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) { Block block = ASTInterpreter.getBlock(runtime, context, self, aBlock, iterNode); if (block == null || !block.isGiven()) block = context.getFrameBlock(); // dispatch as varargs, so incoming args are used to decide arity path return callSite.callVarargs(context, self, self, context.getCurrentScope().getArgValues(), block); }
@Override public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) { Block block = ASTInterpreter.getBlock(runtime, context, self, aBlock, iterNode); if (block == null || !block.isGiven()) block = context.getFrameBlock(); // dispatch as varargs, so incoming args are used to decide arity path return callSite.callVarargs(context, self, self, context.getCurrentScope().getArgValues(), block); }
return parent.getArgValues();
return parent.getArgValues();
return parent.getArgValues();
return parent.getArgValues();
return parent.getArgValues();
return parent.getArgValues();