Package org.jruby.ast

Examples of org.jruby.ast.EncodingNode


        // TODO: don't require pop
        if (!expr) context.consumeCurrentValue();
    }

    public void compileEncoding(Node node, BodyCompiler context, boolean expr) {
        final EncodingNode encodingNode = (EncodingNode)node;

        if (expr) {
            context.loadEncoding(encodingNode.getEncoding());
        }
    }
View Full Code Here


            return new FileNode(token.getPosition(), new ByteList(token.getPosition().getFile().getBytes(),
                    getConfiguration().getRuntime().getEncodingService().getLocaleEncoding()));
        case Tokens.k__LINE__:
            return new FixnumNode(token.getPosition(), token.getPosition().getStartLine()+1);
        case Tokens.k__ENCODING__:
            return new EncodingNode(token.getPosition(), lexer.getEncoding());
        case Tokens.tIDENTIFIER:
            return currentScope.declare(token.getPosition(), (String) token.getValue());
        case Tokens.tCONSTANT:
            return new ConstNode(token.getPosition(), (String) token.getValue());
        case Tokens.tIVAR:
View Full Code Here

        // TODO: don't require pop
        if (!expr) context.consumeCurrentValue();
    }

    public void compileEncoding(Node node, BodyCompiler context, boolean expr) {
        final EncodingNode encodingNode = (EncodingNode)node;

        if (expr) {
            context.loadEncoding(encodingNode.getEncoding());
        }
    }
View Full Code Here

TOP

Related Classes of org.jruby.ast.EncodingNode

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.