public void setWarnings(IRubyWarnings warnings) { support.setWarnings(warnings); lexer.setWarnings(warnings); } // line 166 "-"
public void setWarnings(IRubyWarnings warnings) { support.setWarnings(warnings); lexer.setWarnings(warnings); } // line 166 "-"
public void setWarnings(IRubyWarnings warnings) { support.setWarnings(warnings); lexer.setWarnings(warnings); } // line 152 "-"
public void setWarnings(IRubyWarnings warnings) { support.setWarnings(warnings); lexer.setWarnings(warnings); } // line 152 "-"
public RubyParser(LexerSource source, IRubyWarnings warnings) { this.support = new ParserSupport(); this.lexer = new RubyLexer(support, source, warnings); support.setLexer(lexer); support.setWarnings(warnings); }
public RubyParser(LexerSource source, IRubyWarnings warnings) { this.support = new ParserSupport(); this.lexer = new RubyLexer(support, source, warnings); support.setLexer(lexer); support.setWarnings(warnings); }
private void initLexer(String title) { LexerSource lexerSource = new ByteListLexerSource(title, 0, new ByteList(utf8Bytes), null); lexerSource.setEncoding(UTF8Encoding.INSTANCE); ParserSupport parserSupport = new ParserSupport(); lexer = new RubyLexer(parserSupport, lexerSource, new NullWarnings(Ruby.getGlobalRuntime())); parserSupport.setLexer(lexer); parserSupport.setConfiguration(new ParserConfiguration(Ruby.getGlobalRuntime(), 0, false, true, false)); parserSupport.setResult(new RubyParserResult()); parserSupport.setWarnings(new NullWarnings(Ruby.getGlobalRuntime())); parserSupport.initTopLocalVariables(); lexer.setState(LexingCommon.EXPR_BEG); }