Package org.openquark.cal.compiler.SourceModel

Examples of org.openquark.cal.compiler.SourceModel.Expr


            caseAlts =
                new SourceModel.Expr.Case.Alt[typeConstructor.getNDataConstructors()];
           
            for (int i = 0, n = caseAlts.length; i < n; ++i) {
                DataConstructor dc = typeConstructor.getNthDataConstructor(i);
                Expr enumFieldFunction =
                    Expr.Var.make(
                        Name.Function.makeUnqualified((String)enumFieldFunctionNames.get(dc.getName().getUnqualifiedName())));
               
                caseAlts[i] =
                    Expr.Case.Alt.UnpackDataCons.make(
View Full Code Here


                child0 = children.get(0);
            }

            for (int i = 0, nExprs = children.size(); i < nExprs; ++i) {
                Expr expr = children.get(i);

                expr.accept(this, options);
                if (expr.precedenceLevel() <= application.precedenceLevel()
                        && (i != 0 || expr.precedenceLevel() != application
                                .precedenceLevel())) {
                    parenthesizeExpression(node
                            .getNthChild(node.getNChildren() - 1));
                }
            }
View Full Code Here

TOP

Related Classes of org.openquark.cal.compiler.SourceModel.Expr

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.