public static IR1Top REnumerationMember(this IR1Top r1Top, IGEnumerationMember gEnumerationMember)
 {
     r1Top.RComment(gEnumerationMember.GComment);
     r1Top.RAttributeGroup(gEnumerationMember.GAttributeGroups);
     r1Top.RAttribute(gEnumerationMember.GAttributes);
     r1Top.Sb.RenderEnumerationMemberStringBuilder(gEnumerationMember, r1Top.Indent, r1Top.Eol, r1Top.Ct);
     return(r1Top);
 }
 public static IR1Top RBody(this IR1Top r1Top, IGBody gBody)
 {
     r1Top.RComment(gBody.GComment);
     foreach (var s in gBody.GStatements)
     {
         r1Top.Sb.RenderBodyStatementStringBuilder(s, r1Top.Indent, r1Top.Eol, r1Top.Ct);
     }
     return(r1Top);
 }
示例#3
0
 public static IR1Top RStaticVariable(this IR1Top r1Top, IGStaticVariable gStaticVariable)
 {
     r1Top.RComment(gStaticVariable.GComment);
     r1Top.Sb.RenderStaticVariablePreambleStringBuilder(gStaticVariable, r1Top.Indent, r1Top.Eol, r1Top.Ct);
     r1Top.Indent.Append(r1Top.IndentDelta);
     r1Top.RStatementList(gStaticVariable.GBody.GStatements);
     r1Top.Indent.ReplaceFirst(r1Top.IndentDelta, "");
     r1Top.Sb.Append($"{r1Top.Indent};{r1Top.Eol}");
     return(r1Top);
 }
 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);
 }
示例#5
0
 public static IR1Top RMethod(this IR1Top r1Top, IGMethod gMethod)
 {
     r1Top.RComment(gMethod.GComment);
     r1Top.RMethodDeclaration(gMethod.GDeclaration);
     if (!gMethod.IsForInterface)
     {
         r1Top.Indent.Append(r1Top.IndentDelta);
         r1Top.RBody(gMethod.GBody);
         r1Top.Indent.ReplaceFirst(r1Top.IndentDelta, "");
         r1Top.Sb.Append($"{r1Top.Indent}}}{r1Top.Eol}");
     }
     return(r1Top);
 }
示例#6
0
 public static IR1Top RDelegate(this IR1Top r1Top, IGDelegate gDelegate)
 {
     r1Top.RComment(gDelegate.GComment);
     r1Top.RDelegateDeclaration(gDelegate.GDelegateDeclaration);
     return(r1Top);
 }
示例#7
0
 public static IR1Top RAttribute(this IR1Top r1Top, IGAttribute gAttribute)
 {
     r1Top.RComment(gAttribute.GComment);
     r1Top.Sb.RenderAttributeStringBuilder(gAttribute, r1Top.Indent, r1Top.Eol, r1Top.Ct);
     return(r1Top);
 }