public static IR1Top REnumerationMember(this IR1Top r1Top, IEnumerable <IGEnumerationMember> gEnumerationMembers)
 {
     foreach (var o in gEnumerationMembers)
     {
         r1Top.REnumerationMember(o);
     }
     return(r1Top);
 }
 public static IR1Top REnumerationMember(this IR1Top r1Top,
                                         IDictionary <IPhilote <IGEnumerationMember>, IGEnumerationMember> gEnumerationMembers)
 {
     foreach (var kvp in gEnumerationMembers)
     {
         r1Top.REnumerationMember(kvp.Value);
     }
     return(r1Top);
 }
Пример #3
0
 public static IR1Top REnumeration(this IR1Top r1Top, IGEnumeration gEnumeration)
 {
     r1Top.RComment(gEnumeration.GComment);
     r1Top.RAttributeGroup(gEnumeration.GAttributeGroups);
     r1Top.RAttribute(gEnumeration.GAttributes);
     r1Top.Sb.RenderEnumerationPreambleStringBuilder(gEnumeration, r1Top.Indent, r1Top.Eol, r1Top.Ct);
     r1Top.Indent.Append(r1Top.IndentDelta);
     r1Top.REnumerationMember(gEnumeration.GEnumerationMembers);
     r1Top.Indent.ReplaceFirst(r1Top.IndentDelta, "");
     r1Top.Sb.Append($"{r1Top.Indent} }}{r1Top.Eol}");
     return(r1Top);
 }