Move all generated types into private namespace

このコミットが含まれているのは:
Sergio Pedri committed 2023-09-30 01:34:04 +02:00
1 親 3439d3ec05
コミット 4917d67d7d
10ファイル変更
+189 -56

検索条件に一致するファイルはありません

+11 -3
ファイルの表示
@@ -56,11 +56,12 @@ internal sealed partial record HierarchyInfo(string FullyQualifiedMetadataName,
writer.WriteLine("#pragma warning disable");
writer.WriteLine();
// Declare the file scoped namespace, if needed
// Declare the namespace, if needed
if (Namespace.Length > 0)
{
writer.WriteLine($"namespace {Namespace};");
writer.WriteLine();
writer.WriteLine($"namespace {Namespace}");
writer.WriteLine("{");
writer.IncreaseIndent();
}
// Declare all the opening types until the inner-most one
@@ -81,6 +82,13 @@ internal sealed partial record HierarchyInfo(string FullyQualifiedMetadataName,
writer.DecreaseIndent();
writer.WriteLine("}");
}
// Close the namespace scope as well, if needed
if (Namespace.Length > 0)
{
writer.DecreaseIndent();
writer.WriteLine("}");
}
}
/// <summary>