Package org.jruby.truffle.nodes

Examples of org.jruby.truffle.nodes.DefinedNode


        if (name != null) {
            final StringLiteralNode literal = new StringLiteralNode(context, sourceSection, ByteList.create(name));
            return literal;
        }

        return new DefinedNode(context, sourceSection, node.getExpressionNode().accept(this));
    }
View Full Code Here


        RubyNode lhs = node.getFirstNode().accept(this);
        RubyNode rhs = node.getSecondNode().accept(this);

        if (node.getFirstNode().needsDefinitionCheck()) {
            RubyNode defined = new DefinedNode(context, lhs.getSourceSection(), lhs);
            lhs = new AndNode(context, lhs.getSourceSection(), defined, lhs);
        }

        return new OrNode(context, translate(node.getPosition()), lhs, rhs);
    }
View Full Code Here

TOP

Related Classes of org.jruby.truffle.nodes.DefinedNode

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.