protected virtual void CheckDeclarationRuleConflicts([NotNull] Rule r, [Nullable] AttributeDict attributes, [NotNull] ICollection<string> ruleNames, [NotNull] ErrorType errorType)
{
if (attributes == null)
{
return;
}
foreach (Attribute attribute in attributes.attributes.Values)
{
if (ruleNames.Contains(attribute.name))
{
errMgr.GrammarError(
errorType,
g.fileName,
attribute.token != null ? attribute.token : ((GrammarAST)r.ast.GetChild(0)).Token,
attribute.name,
r.name);
}
}
}