protected void visit(final RuleDescr descr) {
        // This is the NAME of the rule, not a reference to it!!
        String ruleName = getPackagePrefix() + descr.getName();
        addResource(ruleName,
                    ResourceType.RULE);
        // This is, on other hand, is a reference to the parent rule (because it's used in inheritance)
        String parentRuleName = descr.getParentName();
        if (parentRuleName != null) {
            addResourceReference(parentRuleName,
                                 ResourceType.RULE);
        }
        for (AttributeDescr d : descr.getAttributes().values()) {
            visit(d);
        }
        visit(descr.getLhs());
        visitConsequence(descr.getConsequence()); // need compilation for this..
        for (String namedConsequence : descr.getNamedConsequences().keySet()) {
            // TODO
            // ? addResourceReference(namedConsequence, PartType.NAMED_CONSEQUENCE);
        }
        visitAnnos(descr);
    }
protected void visit(final RuleDescr descr) {
       
        String ruleName = getPackagePrefix() + descr.getName();
        addResource(ruleName,
                    ResourceType.RULE);
       
        String parentRuleName = descr.getParentName();
        if (parentRuleName != null) {
            addResourceReference(parentRuleName,
                                 ResourceType.RULE);
        }
        for (AttributeDescr d : descr.getAttributes().values()) {
            visit(d);
        }
        visit(descr.getLhs());
        visitConsequence(descr.getConsequence());
        for (String namedConsequence : descr.getNamedConsequences().keySet()) {
           
           
        }
        visitAnnos(descr);
    }
protected void visit(final ruledescr descr) { string rulename = getpackageprefix() + descr.getname(); addresource(rulename, resourcetype.rule); string parentrulename = descr.getparentname(); if (parentrulename != null) { addresourcereference(parentrulename, resourcetype.rule); } for (attributedescr d : descr.getattributes().values()) { visit(d); } visit(descr.getlhs()); visitconsequence(descr.getconsequence()); for (string namedconsequence : descr.getnamedconsequences().keyset()) { } visitannos(descr); }