예제 #1
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);
 }
예제 #2
0
 public static IR1Top RComment(this IR1Top r1Top, IGComment gComment)
 {
     r1Top.RStatementList(gComment.GStatements);
     return(r1Top);
 }