Example #1
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);
 }