Skip to content

Commit 89f01a7

Browse files
author
Shreyas Padhye
committed
Added enumsToGenerateConvertersFor ordering based on namespace
1 parent 2f0f098 commit 89f01a7

File tree

3 files changed

+224
-214
lines changed

3 files changed

+224
-214
lines changed

package/Codegen/Program.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,16 @@ private void DumpTypes(Version version)
358358
var propertiesGen = new TypeProperties(properties, fakeProps, syntheticProps).TransformText();
359359
var enumsGen = new TypeEnums().TransformText();
360360

361+
var list = new List<MrType>();
362+
foreach (var entry in Util.enumsToGenerateConvertersFor) {
363+
list.Add(entry);
364+
}
365+
var orderedList = list.OrderBy(item => Util.GetTSNamespace(item));
366+
Util.enumsToGenerateConvertersFor.Clear();
367+
foreach (var orderedItem in orderedList) {
368+
Util.enumsToGenerateConvertersFor.Add(orderedItem);
369+
}
370+
361371
var tsEnumsGen = new TSEnums().TransformText();
362372
var eventsGen = new TypeEvents(events, syntheticEvents).TransformText();
363373
var eventPropsGen = new EventArgsTypeProperties(eventArgProps).TransformText();

package/Codegen/Properties/launchSettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"profiles": {
33
"Codegen": {
44
"commandName": "Project",
5-
"commandLineArgs": "-verbose -winmd ..\\..\\..\\..\\..\\example\\windows\\packages\\Microsoft.UI.Xaml.2.6.0\\lib\\uap10.0\\Microsoft.UI.Xaml.winmd"
5+
"commandLineArgs": "-verbose -winmd ..\\..\\..\\..\\..\\examplenuget\\windows\\packages\\Microsoft.UI.Xaml.2.6.0\\lib\\uap10.0\\Microsoft.UI.Xaml.winmd"
66
}
77
}
88
}

0 commit comments

Comments
 (0)