Package org.jruby.common

Examples of org.jruby.common.NullWarnings


   
    public Node parseRewriter(String file, InputStream content,
            ParserConfiguration configuration) throws SyntaxException {
        long startTime = System.nanoTime();
        DefaultRubyParser parser = RubyParserPool.getInstance().borrowParser();
        parser.setWarnings(new NullWarnings());
        LexerSource lexerSource = LexerSource.getSource(file, content, null, configuration);
       
        try {
            return parser.parse(configuration, lexerSource).getAST();
        } finally {
View Full Code Here


            int iterations = getIterations(args);
            int[] parsers = getParsers(args);

            System.out.println("Parsing " + args[0] + " " + iterations + " times");
            DefaultRubyParser parser = new DefaultRubyParser();
            parser.setWarnings(new NullWarnings(null));
            Ruby runtime = Ruby.getGlobalRuntime();
            RubyInstanceConfig rconfig = new RubyInstanceConfig();
            ParserConfiguration config = new ParserConfiguration(runtime, 0, false, false, true, rconfig);

            for (int x = 0; x < parsers.length; x++) {
View Full Code Here

            int iterations = getIterations(args);
            int[] parsers = getParsers(args);

            System.out.println("Parsing " + args[0] + " " + iterations + " times");
            RubyParser parser = new Ruby20Parser();
            parser.setWarnings(new NullWarnings(null));
            Ruby runtime = Ruby.getGlobalRuntime();
            RubyInstanceConfig rconfig = new RubyInstanceConfig();
            ParserConfiguration config = new ParserConfiguration(runtime, 0, false, false, true, rconfig);

            for (int x = 0; x < parsers.length; x++) {
View Full Code Here

TOP

Related Classes of org.jruby.common.NullWarnings

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.