@@ -49,13 +49,12 @@ public partial class MixKhronosData(
4949 ) ;
5050 private static readonly char [ ] _listSeparators = { ',' , '|' , '+' } ;
5151
52- private static readonly Dictionary < string , string > _defaultEnumNativeTypeNameMaps =
53- new ( )
54- {
55- { "GLenum" , "GLEnum" } ,
56- { "EGLenum" , "EGLEnum" } ,
57- { "GLbitfield" , "GLEnum" }
58- } ;
52+ private static readonly Dictionary < string , string > _defaultEnumNativeTypeNameMaps = new ( )
53+ {
54+ { "GLenum" , "GLEnum" } ,
55+ { "EGLenum" , "EGLEnum" } ,
56+ { "GLbitfield" , "GLEnum" } ,
57+ } ;
5958
6059 internal class JobData
6160 {
@@ -185,7 +184,7 @@ public enum ExtensionVendorTrimmingMode
185184 /// <summary>
186185 /// Only trim Khronos/first-party extension vendor names i.e. KHR and ARB.
187186 /// </summary>
188- KhronosOnly
187+ KhronosOnly ,
189188 }
190189
191190 private class ExtensionVendorTrimmingModeJsonConverter
@@ -231,7 +230,7 @@ public async Task InitializeAsync(IModContext ctx, CancellationToken ct = defaul
231230 Configuration = currentConfig ,
232231 TypeMap = currentConfig . TypeMap is not null
233232 ? new Dictionary < string , string > ( currentConfig . TypeMap )
234- : [ ]
233+ : [ ] ,
235234 } ;
236235 job . TypeMap . TryAdd ( "int8_t" , "sbyte" ) ;
237236 job . TypeMap . TryAdd ( "uint8_t" , "byte" ) ;
@@ -266,7 +265,7 @@ .. xml.Element("registry")
266265 ? . Element ( "extensions" )
267266 ? . Elements ( "extension" )
268267 . Attributes ( "name" )
269- . Select ( x => x . Value . Split ( '_' ) [ 1 ] . ToUpper ( ) ) ?? Enumerable . Empty < string > ( )
268+ . Select ( x => x . Value . Split ( '_' ) [ 1 ] . ToUpper ( ) ) ?? Enumerable . Empty < string > ( ) ,
270269 ] ;
271270 job . ApiSets = apiSets ;
272271 job . SupportedApiProfiles = supportedApiProfiles ;
@@ -444,7 +443,7 @@ public SupportedApiProfileAttribute ToAttribute(string profile) =>
444443 ImpliesSets = ImpliedSets ? . ToArray ( ) ,
445444 MaxVersion = EndVersion ? . ToString ( ) ,
446445 MinVersion = StartVersion ? . ToString ( ) ,
447- RequireAll = RequireAll
446+ RequireAll = RequireAll ,
448447 } ;
449448 }
450449
@@ -588,7 +587,7 @@ .. profileElement
588587 ) // <-- future proofing
589588 . Where ( x => x != "compatibility" ) // <-- assuming default "gl" is "glcompatibility"
590589 . Select ( x => $ "{ variant } { x } ") ,
591- .. profileVariations . TryGetValue ( variant , out var v ) ? v : [ ]
590+ .. profileVariations . TryGetValue ( variant , out var v ) ? v : [ ] ,
592591 ] ;
593592 }
594593 }
@@ -710,11 +709,10 @@ private void EvaluateFeature(
710709 // Create a HashSet to store all the symbols in this feature.
711710 // If we're not using explicit dependencies, then we track the profile-wide symbol list. We assume that the
712711 // "number" order is being respected.
713- var symbols = explicitDependencies
714- ? inheritance [ apiSet ] = [ ]
715- : inheritance . TryGetValue ( variant , out var syms )
716- ? syms
717- : inheritance [ variant ] = [ ] ;
712+ var symbols =
713+ explicitDependencies ? inheritance [ apiSet ] = [ ]
714+ : inheritance . TryGetValue ( variant , out var syms ) ? syms
715+ : inheritance [ variant ] = [ ] ;
718716
719717 // If we're using implicit dependencies in the form of secondary APIs, the symbol changes we explicitly need to
720718 // inherit are contained in the pendingChanges dictionary for this variant.
@@ -840,7 +838,7 @@ and var idx
840838 // The symbol has been removed, mark it with the end version.
841839 evals [ idx ] = evals [ idx ] with
842840 {
843- EndVersion = number
841+ EndVersion = number ,
844842 } ;
845843 }
846844 }
@@ -1242,7 +1240,7 @@ vendorSuffix is null
12421240
12431241 job . Groups [ current ] = groupInfo = groupInfo with
12441242 {
1245- ExclusiveVendor = vendorSuffix
1243+ ExclusiveVendor = vendorSuffix ,
12461244 } ;
12471245
12481246 if ( notSafeToTrim )
@@ -1610,10 +1608,11 @@ is not { } newType
16101608 static TypeSyntax PointerToGroupPointer ( TypeSyntax original , string group ) =>
16111609 original switch
16121610 {
1613- PointerTypeSyntax ptr
1614- => ptr . WithElementType ( PointerToGroupPointer ( ptr . ElementType , group ) ) ,
1611+ PointerTypeSyntax ptr => ptr . WithElementType (
1612+ PointerToGroupPointer ( ptr . ElementType , group )
1613+ ) ,
16151614 PredefinedTypeSyntax or IdentifierNameSyntax => IdentifierName ( group ) ,
1616- _ => throw new ArgumentOutOfRangeException ( nameof ( original ) )
1615+ _ => throw new ArgumentOutOfRangeException ( nameof ( original ) ) ,
16171616 } ;
16181617
16191618 TypeSyntax ? GetTypeTransformation (
@@ -1667,7 +1666,7 @@ ref bool anyNonTrivialParams
16671666 2 when otherGroup is not null => PointerToGroupPointer ( type , group ) ,
16681667 1 when otherGroup is not null => PointerToGroupPointer ( type , otherGroup ) ,
16691668 1 => PointerToGroupPointer ( type , group ) ,
1670- _ => null
1669+ _ => null ,
16711670 } ;
16721671 }
16731672
@@ -1943,7 +1942,7 @@ var group in (groupName is null ? Enumerable.Empty<string>() : [groupName])
19431942 Namespace =
19441943 enumNamespace is not null && groupInfo . Namespace == enumNamespace
19451944 ? enumNamespace
1946- : null
1945+ : null ,
19471946 }
19481947 : new EnumGroup (
19491948 group ,
0 commit comments