public static IR1Top RCompilationUnit(this IR1Top r1Top, IGCompilationUnit gCompilationUnit, IW1Top w1Top) { r1Top.Ct?.ThrowIfCancellationRequested(); r1Top.Sb.RenderCompilationUnitStringBuilder(gCompilationUnit, r1Top.Indent, r1Top.Eol, r1Top.Ct); if (gCompilationUnit.GUsingGroups.Any()) { r1Top.RUsingGroup(gCompilationUnit.GUsingGroups); } if (gCompilationUnit.GUsings.Any()) { foreach (var kvp in gCompilationUnit.GUsings) { r1Top.RUsing(kvp.Value); } } if (gCompilationUnit.GNamespaces.Any()) { foreach (var kvp in gCompilationUnit.GNamespaces) { r1Top.RNamespace(kvp.Value); } } w1Top.WCompilationUnit(gCompilationUnit, r1Top.Sb); return(r1Top); }