public void setFileAndLine(ISourcePosition position) { BacktraceElement b = backtrace[backtraceIndex]; b.filename = position.getFile(); b.line = position.getLine(); }
@Deprecated public static void update(BacktraceElement backtrace, String method, ISourcePosition position) { backtrace.method = method; backtrace.filename = position.getFile(); backtrace.line = position.getLine(); }
@Deprecated public static void update(BacktraceElement backtrace, String method, ISourcePosition position) { backtrace.method = method; backtrace.filename = position.getFile(); backtrace.line = position.getLine(); }
public void setFileAndLine(ISourcePosition position) { BacktraceElement b = backtrace[backtraceIndex]; b.filename = position.getFile(); b.line = position.getLine(); }
@Deprecated @Override public void warning(ID id, ISourcePosition position, String message, Object... data) { warning(id, position.getFile(), position.getStartLine() + 1, message, data); }
/** * Prints a warning, only in verbose mode. */ @Override @Deprecated public void warning(ID id, ISourcePosition position, String message) { warning(id, position.getFile(), position.getLine(), message); }
/** * Prints a warning, unless $VERBOSE is nil. */ @Override @Deprecated public void warn(ID id, ISourcePosition position, String message) { if (!runtime.warningsEnabled()) return; warn(id, position.getFile(), position.getLine(), message); }
/** * Prints a warning, unless $VERBOSE is nil. */ @Override @Deprecated public void warn(ID id, ISourcePosition position, String message) { if (!runtime.warningsEnabled()) return; warn(id, position.getFile(), position.getLine(), message); }
/** * Prints a warning, only in verbose mode. */ @Override public void warning(ID id, ISourcePosition position, String message) { if (!runtime.warningsEnabled()) return; warning(id, position.getFile(), position.getStartLine() + 1, message); }
/** * Prints a warning, unless $VERBOSE is nil. */ public void warn(ID id, ISourcePosition position, String message) { if (!runtime.warningsEnabled()) return; warn(id, position.getFile(), position.getStartLine(), message); }
/** * Prints a warning, only in verbose mode. */ public void warning(ID id, ISourcePosition position, String message) { if (!runtime.warningsEnabled()) return; warning(id, position.getFile(), position.getStartLine(), message); }
private void handeCompileError(Node node, Throwable t) { if (config.isJitLoggingVerbose() || config.isDebug()) { LOG.error("warning: could not compile: {}; full trace follows", node.getPosition().getFile()); LOG.error(t.getMessage(), t); } }
private void failForcedCompile(Node scriptNode) throws RaiseException { if (config.getCompileMode().shouldPrecompileAll()) { throw newRuntimeError("could not compile and compile mode is 'force': " + scriptNode.getPosition().getFile()); } }
public InterpretedBlock(IterNode iterNode, Arity arity, int argumentType) { super(iterNode.getScope(), arity, argumentType); this.bodyNode = iterNode.getBodyNode() == null ? NilImplicitNode.NIL : iterNode.getBodyNode(); this.scope = iterNode.getScope(); this.position = iterNode.getPosition(); // precache these this.file = position.getFile(); this.line = position.getLine(); assignerFor(iterNode); }
public InterpretedBlock(IterNode iterNode, Arity arity, int argumentType) { super(iterNode.getScope(), arity, argumentType); this.bodyNode = iterNode.getBodyNode() == null ? NilImplicitNode.NIL : iterNode.getBodyNode(); this.scope = iterNode.getScope(); this.position = iterNode.getPosition(); // precache these this.file = position.getFile(); this.line = position.getLine(); assignerFor(iterNode); }
private static void processMethod(Builder sb, String methodName, Node argsNode, Node body) { sb.append("(method ").append(methodName).append(' '); // JRUBY-4301, include filename and line in sexp sb.append("(file ").append(new File(body.getPosition().getFile()).getName()).append(") "); sb.append("(line ").append(body.getPosition().getStartLine()).append(") "); process(sb, argsNode); sb.append(' '); process(sb, body); sb.append(')'); }
public Interpreted19Block(LambdaNode lambdaNode) { super(lambdaNode.getScope(), lambdaNode.getArgs().getArity(), -1); // We override that the logic which uses this this.args = lambdaNode.getArgs(); this.needsSplat = Helpers.needsSplat19(args.getRequiredArgsCount(), args.getRestArg() != -1); this.parameterList = Helpers.encodeParameterList(args).split(";"); this.body = lambdaNode.getBody() == null ? NilImplicitNode.NIL : lambdaNode.getBody(); this.position = lambdaNode.getPosition(); // precache these this.file = position.getFile(); this.line = position.getLine(); }
public Interpreted19Block(IterNode iterNode) { super(iterNode.getScope(), ((ArgsNode)iterNode.getVarNode()).getArity(), -1); // We override that the logic which uses this this.args = (ArgsNode)iterNode.getVarNode(); this.needsSplat = Helpers.needsSplat19(args.getRequiredArgsCount(), args.getRestArg() != -1); this.parameterList = Helpers.encodeParameterList(args).split(";"); this.body = iterNode.getBodyNode() == null ? NilImplicitNode.NIL : iterNode.getBodyNode(); this.position = iterNode.getPosition(); // precache these this.file = position.getFile(); this.line = position.getLine(); }
public Interpreted19Block(LambdaNode lambdaNode) { super(lambdaNode.getScope(), lambdaNode.getArgs().getArity(), -1); // We override that the logic which uses this this.args = lambdaNode.getArgs(); this.needsSplat = Helpers.needsSplat19(args.getRequiredArgsCount(), args.getRestArg() != -1); this.parameterList = Helpers.encodeParameterList(args).split(";"); this.body = lambdaNode.getBody() == null ? NilImplicitNode.NIL : lambdaNode.getBody(); this.position = lambdaNode.getPosition(); // precache these this.file = position.getFile(); this.line = position.getLine(); }
public Interpreted19Block(IterNode iterNode) { super(iterNode.getScope(), ((ArgsNode)iterNode.getVarNode()).getArity(), -1); // We override that the logic which uses this this.args = (ArgsNode)iterNode.getVarNode(); this.needsSplat = Helpers.needsSplat19(args.getRequiredArgsCount(), args.getRestArg() != -1); this.parameterList = Helpers.encodeParameterList(args).split(";"); this.body = iterNode.getBodyNode() == null ? NilImplicitNode.NIL : iterNode.getBodyNode(); this.position = iterNode.getPosition(); // precache these this.file = position.getFile(); this.line = position.getLine(); }