Package org.openquark.cal.compiler.SourceModel.Expr

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


         * @return true if expression is a Var that refers to Parameter (assuming that there are
         *          no intermediate same-name bindings between parameter's scope and expression's).
         */
        private boolean isParameterVar(Parameter parameter, Expr expression) {
            if(expression instanceof Var) {
                Var var = (Var)expression;
               
                return (var.getVarName().getUnqualifiedName().equals(parameter.getName()) &&
                        (var.getVarName().getModuleName() == null || super.resolveModuleName(var.getVarName().getModuleName()).equals(super.currentModule)));
               
            }
           
            return false;
        }
View Full Code Here


            } else {
                argumentExpression = argument;
            }
           
            if(argumentExpression instanceof Var) {
                Var var = (Var)argumentExpression;
                if (super.isDependeeReference(var.getVarName())) {
                    producer = super.getFunctionalAgent(var.getVarName());
                }
            }
           
            else if (argumentExpression instanceof DataCons) {
                DataCons cons = (DataCons)argumentExpression;
View Full Code Here

TOP

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

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.