protected override int?GetChildrenPriority(IUnparser unparser, object astValue, Unparser.Children childrenAtRule, Unparser.Direction direction) { return(childrenAtRule .SumIncludingNullValues( (childAtRule, childIndexAtRule) => IsMemberAtRule(new ReferredBnfTermEI(childrenAtRule.ContentIndex, childAtRule.BnfTerm, childIndexAtRule)) ? GetBnfTermPriorityForMember(unparser, childAtRule) : unparser.GetPriority(childAtRule) )); }
protected override int?GetChildrenPriority(IUnparser unparser, object astValue, Unparser.Children children, Unparser.Direction direction) { return(children.SumIncludingNullValues(child => unparser.GetPriority(child))); }