示例#1
0
 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)
                ));
 }
示例#2
0
 protected override int?GetChildrenPriority(IUnparser unparser, object astValue, Unparser.Children children, Unparser.Direction direction)
 {
     return(children.SumIncludingNullValues(child => unparser.GetPriority(child)));
 }