for (int j = 0; j < attributes.size(); j++) { Attribute attribute = (Attribute) attributes.get(j); checkForRuleScopeAttributeConflict(r, attribute);
for (int j = 0; j < attributes.size(); j++) { Attribute attribute = (Attribute) attributes.get(j); checkForRuleScopeAttributeConflict(r, attribute);
public void checkConflicts() { for (int i = CompositeGrammar.MIN_RULE_INDEX; i < grammar.composite.ruleIndexToRuleList.size(); i++) { Rule r = grammar.composite.ruleIndexToRuleList.elementAt(i); if ( r==null ) { continue; } // walk all labels for Rule r if ( r.labelNameSpace!=null ) { for (Grammar.LabelElementPair pair : r.labelNameSpace.values()) { checkForLabelConflict(r, pair.label); } } // walk rule scope attributes for Rule r if ( r.ruleScope!=null ) { List<Attribute> attributes = r.ruleScope.getAttributes(); for (int j = 0; j < attributes.size(); j++) { Attribute attribute = attributes.get(j); checkForRuleScopeAttributeConflict(r, attribute); } } checkForRuleDefinitionProblems(r); checkForRuleArgumentAndReturnValueConflicts(r); } // check all global scopes against tokens for (AttributeScope scope : grammar.getGlobalScopes().values()) { checkForGlobalScopeTokenConflict(scope); } // check for missing rule, tokens lookForReferencesToUndefinedSymbols(); }
public void checkConflicts() { for (int i = CompositeGrammar.MIN_RULE_INDEX; i < grammar.composite.ruleIndexToRuleList.size(); i++) { Rule r = grammar.composite.ruleIndexToRuleList.elementAt(i); if ( r==null ) { continue; } // walk all labels for Rule r if ( r.labelNameSpace!=null ) { for (Grammar.LabelElementPair pair : r.labelNameSpace.values()) { checkForLabelConflict(r, pair.label); } } // walk rule scope attributes for Rule r if ( r.ruleScope!=null ) { List<Attribute> attributes = r.ruleScope.getAttributes(); for (int j = 0; j < attributes.size(); j++) { Attribute attribute = attributes.get(j); checkForRuleScopeAttributeConflict(r, attribute); } } checkForRuleDefinitionProblems(r); checkForRuleArgumentAndReturnValueConflicts(r); } // check all global scopes against tokens for (AttributeScope scope : grammar.getGlobalScopes().values()) { checkForGlobalScopeTokenConflict(scope); } // check for missing rule, tokens lookForReferencesToUndefinedSymbols(); }