dap4/d4core/src/main/java/dap4/core/ce/CEConstraint.java
protected void computeenums()
    {
        for(int i = 0; i < variables.size(); i++) {
            DapVariable var = variables.get(i);
            if(var.getSort() != DapSort.VARIABLE)
                continue;
            DapType daptype = var.getBaseType();
            if(!daptype.isEnumType())
                continue;
            if(!this.enums.contains((DapEnumeration) daptype))
                this.enums.add((DapEnumeration) daptype);
        }
    }
protected void computeenums()
    {
        for(int i = 0; i < variables.size(); i++) {
            DapVariable var = variables.get(i);
            if(var.getSort() != DapSort.VARIABLE)
                continue;
            DapType daptype = var.getBaseType();
            if(!daptype.isEnumType())
                continue;
            if(!this.enums.contains((DapEnumeration) daptype))
                this.enums.add((DapEnumeration) daptype);
        }
    }
protected void computeenums ( ) { for ( int i = 0 ; i < variables . size ( ) ; i ++ ) { DapVariable var = variables . get ( i ) ; if ( var . getSort ( ) != DapSort . VARIABLE ) continue ; DapType daptype = var . getBaseType ( ) ; if ( ! daptype . isEnumType ( ) ) continue ; if ( ! this . enums . contains ( ( DapEnumeration ) daptype ) ) this . enums . add ( ( DapEnumeration ) daptype ) ; } }
Walk all the included variables and accumulate
the referenced enums
Walk all the included variables and accumulate the referenced enums