@Deprecated public Node parse(String content, String file, DynamicScope scope, int lineNumber, boolean extraPositionInformation) { return parser.parse(file, content.getBytes(), scope, new ParserConfiguration(this, lineNumber, extraPositionInformation, false, true, config)); }
@Deprecated public Node parse(String content, String file, DynamicScope scope, int lineNumber, boolean extraPositionInformation) { return parser.parse(file, content.getBytes(), scope, new ParserConfiguration(this, lineNumber, extraPositionInformation, false, true, config)); }
@Deprecated public Node parse(String content, String file, DynamicScope scope, int lineNumber, boolean extraPositionInformation) { return parser.parse(file, content.getBytes(), scope, new ParserConfiguration(this, lineNumber, extraPositionInformation, false, true, config)); }
public Node parseEval(String content, String file, DynamicScope scope, int lineNumber) { if (parserStats != null) parserStats.addEvalParse(); return parser.parse(file, content.getBytes(), scope, new ParserConfiguration(this, lineNumber, false, false, false, false, config)); }
public Node parse(ByteList content, String file, DynamicScope scope, int lineNumber, boolean extraPositionInformation) { addEvalParseToStats(); return parser.parse(file, content, scope, new ParserConfiguration(this, lineNumber, extraPositionInformation, false, true, config)); }
public Node parseEval(ByteList content, String file, DynamicScope scope, int lineNumber) { addEvalParseToStats(); return parser.parse(file, content, scope, new ParserConfiguration(this, lineNumber, false, false, false, config)); }
private Node parseFileAndGetAST(InputStream in, String file, DynamicScope scope, int lineNumber, boolean isFromMain) { ParserConfiguration parserConfig = new ParserConfiguration(this, lineNumber, false, true, isFromMain, config); setupSourceEncoding(parserConfig, UTF8Encoding.INSTANCE); return parser.parse(file, in, scope, parserConfig); }
public Node parse(ByteList content, String file, DynamicScope scope, int lineNumber, boolean extraPositionInformation) { addEvalParseToStats(); return parser.parse(file, content, scope, new ParserConfiguration(this, lineNumber, extraPositionInformation, false, true, config)); }
public Node parseEval(ByteList content, String file, DynamicScope scope, int lineNumber) { if (parserStats != null) parserStats.addEvalParse(); return parser.parse(file, content, scope, new ParserConfiguration(this, lineNumber, false, false, false, config)); }
@SuppressWarnings("unchecked") public Node parse(String file, byte[] content, DynamicScope blockScope, ParserConfiguration configuration) { RubyArray list = getLines(configuration, runtime, file); LexerSource lexerSource = LexerSource.getSource(file, content, list, configuration); return parse(file, lexerSource, blockScope, configuration); }
private Node parseFileAndGetAST(InputStream in, String file, DynamicScope scope, int lineNumber, boolean isFromMain) { ParserConfiguration parserConfig = new ParserConfiguration(this, lineNumber, false, true, isFromMain, config); setupSourceEncoding(parserConfig, UTF8Encoding.INSTANCE); return parser.parse(file, in, scope, parserConfig); }
public Node parseEval(ByteList content, String file, DynamicScope scope, int lineNumber) { addEvalParseToStats(); return parser.parse(file, content, scope, new ParserConfiguration(this, lineNumber, false, false, false, config)); }
public Node parseFileFromMain(InputStream in, String file, DynamicScope scope) { if (parserStats != null) parserStats.addLoadParse(); ParserConfiguration parserConfig = new ParserConfiguration(this, 0, false, false, true, true, config); if (is2_0 || (is1_9 && config.getSourceEncoding() != null)) { setupSourceEncoding(parserConfig); } return parser.parse(file, in, scope, parserConfig); }
public Node parseFile(InputStream in, String file, DynamicScope scope, int lineNumber) { if (parserStats != null) parserStats.addLoadParse(); ParserConfiguration parserConfig = new ParserConfiguration(this, lineNumber, false, false, true, config); if (is2_0 || (is1_9 && config.getSourceEncoding() != null)) { setupSourceEncoding(parserConfig); } return parser.parse(file, in, scope, parserConfig); }
public Node parseFileFromMain(InputStream in, String file, DynamicScope scope) { if (parserStats != null) parserStats.addLoadParse(); ParserConfiguration parserConfig = new ParserConfiguration(this, 0, false, false, true, true, config); if (is2_0 || (is1_9 && config.getSourceEncoding() != null)) { setupSourceEncoding(parserConfig); } return parser.parse(file, in, scope, parserConfig); }
public Node parseInline(InputStream in, String file, DynamicScope scope) { addEvalParseToStats(); ParserConfiguration parserConfig = new ParserConfiguration(this, 0, false, true, false, config); setupSourceEncoding(parserConfig, getEncodingService().getLocaleEncoding()); return parser.parse(file, in, scope, parserConfig); }
@SuppressWarnings("unchecked") public Node parse(String file, byte[] content, DynamicScope blockScope, ParserConfiguration configuration) { RubyArray list = getLines(configuration, runtime, file); ByteList in = new ByteList(content, configuration.getDefaultEncoding()); LexerSource lexerSource = new ByteListLexerSource(file, configuration.getLineNumber(), in, list); return parse(file, lexerSource, blockScope, configuration); }
@SuppressWarnings("unchecked") public Node parse(String file, ByteList content, DynamicScope blockScope, ParserConfiguration configuration) { configuration.setDefaultEncoding(content.getEncoding()); RubyArray list = getLines(configuration, runtime, file); LexerSource lexerSource = new ByteListLexerSource(file, configuration.getLineNumber(), content, list); return parse(file, lexerSource, blockScope, configuration); }
public Node parseInline(InputStream in, String file, DynamicScope scope) { addEvalParseToStats(); ParserConfiguration parserConfig = new ParserConfiguration(this, 0, false, true, false, config); setupSourceEncoding(parserConfig, getEncodingService().getLocaleEncoding()); return parser.parse(file, in, scope, parserConfig); }
@SuppressWarnings("unchecked") public Node parse(String file, byte[] content, DynamicScope blockScope, ParserConfiguration configuration) { RubyArray list = getLines(configuration, runtime, file); ByteList in = new ByteList(content, configuration.getDefaultEncoding()); LexerSource lexerSource = new ByteListLexerSource(file, configuration.getLineNumber(), in, list); return parse(file, lexerSource, blockScope, configuration); }