Skip to content

Commit 881ec77

Browse files
committed
Regenerate definitions
Sort them alphabetically for easier diffing in the future
1 parent 5deb9e1 commit 881ec77

20 files changed

+142268
-126094
lines changed

Generator/Generator.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void CollectDependencies()
9292

9393
public void EmitTypes()
9494
{
95-
foreach (var type in definitionsList.Values)
95+
foreach (var type in definitionsList.Values.OrderBy(v => NameHelpers.GetSortKeyIgnoringInterfacePrefix(v.Name)))
9696
{
9797
type.Emit();
9898
}

Generator/NameHelpers.cs

+12
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,17 @@ public static string StringToUTF16WithZero(string str)
5151
{
5252
return String.Join(",", str.Select(c => ((ushort)c).ToString()).Concat(new string[] { "0" }));
5353
}
54+
55+
public static Tuple<string, int> GetSortKeyIgnoringInterfacePrefix(string str)
56+
{
57+
if (str[0] == 'I' && char.IsUpper(str[1]))
58+
{
59+
return Tuple.Create(str.Substring(1), 0);
60+
}
61+
else
62+
{
63+
return Tuple.Create(str, 1);
64+
}
65+
}
5466
}
5567
}

src/rt/gen/windows/applicationmodel.rs

+15,759-14,834
Large diffs are not rendered by default.

src/rt/gen/windows/data.rs

+1,135-1,135
Large diffs are not rendered by default.

src/rt/gen/windows/devices.rs

+19,208-16,796
Large diffs are not rendered by default.

src/rt/gen/windows/foundation.rs

+1,580-1,314
Large diffs are not rendered by default.

src/rt/gen/windows/gaming.rs

+1,152-853
Large diffs are not rendered by default.

src/rt/gen/windows/globalization.rs

+2,828-2,828
Large diffs are not rendered by default.

src/rt/gen/windows/graphics.rs

+3,668-2,610
Large diffs are not rendered by default.

src/rt/gen/windows/management.rs

+193-149
Large diffs are not rendered by default.

src/rt/gen/windows/media.rs

+17,141-16,192
Large diffs are not rendered by default.

src/rt/gen/windows/networking.rs

+6,194-5,473
Large diffs are not rendered by default.

src/rt/gen/windows/perception.rs

+537-537
Large diffs are not rendered by default.

src/rt/gen/windows/security.rs

+4,249-4,214
Large diffs are not rendered by default.

src/rt/gen/windows/services.rs

+2,328-2,150
Large diffs are not rendered by default.

src/rt/gen/windows/storage.rs

+4,042-3,218
Large diffs are not rendered by default.

src/rt/gen/windows/system.rs

+3,661-2,816
Large diffs are not rendered by default.

src/rt/gen/windows/ui/mod.rs

+10,443-9,081
Large diffs are not rendered by default.

src/rt/gen/windows/ui/xaml.rs

+45,657-39,413
Large diffs are not rendered by default.

src/rt/gen/windows/web.rs

+2,480-2,480
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)