Examples of Yield19Node


Examples of org.jruby.ast.Yield19Node

                case 3:
                    return new YieldThreeNode(position, args);
            }
        }

        return new Yield19Node(position, node);
    }
View Full Code Here

Examples of org.jruby.ast.Yield19Node

    public void compileYield(Node node, BodyCompiler context, boolean expr) {
        if (!(node instanceof Yield19Node)) {
            super.compileYield(node, context, expr);
            return;
        }
        final Yield19Node yieldNode = (Yield19Node) node;

        CompilerCallback argsCallback = new CompilerCallback() {
            public void call(BodyCompiler context) {
                compile(yieldNode.getArgsNode(), context,true);
            }
        };

        boolean unsplat = false;

        switch (yieldNode.getArgsNode().getNodeType()) {
            case ARGSPUSHNODE:
            case ARGSCATNODE:
            case SPLATNODE:
                unsplat = true;
                break;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.