@@ -49,13 +49,12 @@ public partial class MixKhronosData(
49
49
) ;
50
50
private static readonly char [ ] _listSeparators = { ',' , '|' , '+' } ;
51
51
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
+ } ;
59
58
60
59
internal class JobData
61
60
{
@@ -185,7 +184,7 @@ public enum ExtensionVendorTrimmingMode
185
184
/// <summary>
186
185
/// Only trim Khronos/first-party extension vendor names i.e. KHR and ARB.
187
186
/// </summary>
188
- KhronosOnly
187
+ KhronosOnly ,
189
188
}
190
189
191
190
private class ExtensionVendorTrimmingModeJsonConverter
@@ -231,7 +230,7 @@ public async Task InitializeAsync(IModContext ctx, CancellationToken ct = defaul
231
230
Configuration = currentConfig ,
232
231
TypeMap = currentConfig . TypeMap is not null
233
232
? new Dictionary < string , string > ( currentConfig . TypeMap )
234
- : [ ]
233
+ : [ ] ,
235
234
} ;
236
235
job . TypeMap . TryAdd ( "int8_t" , "sbyte" ) ;
237
236
job . TypeMap . TryAdd ( "uint8_t" , "byte" ) ;
@@ -266,7 +265,7 @@ .. xml.Element("registry")
266
265
? . Element ( "extensions" )
267
266
? . Elements ( "extension" )
268
267
. Attributes ( "name" )
269
- . Select ( x => x . Value . Split ( '_' ) [ 1 ] . ToUpper ( ) ) ?? Enumerable . Empty < string > ( )
268
+ . Select ( x => x . Value . Split ( '_' ) [ 1 ] . ToUpper ( ) ) ?? Enumerable . Empty < string > ( ) ,
270
269
] ;
271
270
job . ApiSets = apiSets ;
272
271
job . SupportedApiProfiles = supportedApiProfiles ;
@@ -444,7 +443,7 @@ public SupportedApiProfileAttribute ToAttribute(string profile) =>
444
443
ImpliesSets = ImpliedSets ? . ToArray ( ) ,
445
444
MaxVersion = EndVersion ? . ToString ( ) ,
446
445
MinVersion = StartVersion ? . ToString ( ) ,
447
- RequireAll = RequireAll
446
+ RequireAll = RequireAll ,
448
447
} ;
449
448
}
450
449
@@ -588,7 +587,7 @@ .. profileElement
588
587
) // <-- future proofing
589
588
. Where ( x => x != "compatibility" ) // <-- assuming default "gl" is "glcompatibility"
590
589
. Select ( x => $ "{ variant } { x } ") ,
591
- .. profileVariations . TryGetValue ( variant , out var v ) ? v : [ ]
590
+ .. profileVariations . TryGetValue ( variant , out var v ) ? v : [ ] ,
592
591
] ;
593
592
}
594
593
}
@@ -710,11 +709,10 @@ private void EvaluateFeature(
710
709
// Create a HashSet to store all the symbols in this feature.
711
710
// If we're not using explicit dependencies, then we track the profile-wide symbol list. We assume that the
712
711
// "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 ] = [ ] ;
718
716
719
717
// If we're using implicit dependencies in the form of secondary APIs, the symbol changes we explicitly need to
720
718
// inherit are contained in the pendingChanges dictionary for this variant.
@@ -840,7 +838,7 @@ and var idx
840
838
// The symbol has been removed, mark it with the end version.
841
839
evals [ idx ] = evals [ idx ] with
842
840
{
843
- EndVersion = number
841
+ EndVersion = number ,
844
842
} ;
845
843
}
846
844
}
@@ -1242,7 +1240,7 @@ vendorSuffix is null
1242
1240
1243
1241
job . Groups [ current ] = groupInfo = groupInfo with
1244
1242
{
1245
- ExclusiveVendor = vendorSuffix
1243
+ ExclusiveVendor = vendorSuffix ,
1246
1244
} ;
1247
1245
1248
1246
if ( notSafeToTrim )
@@ -1610,10 +1608,11 @@ is not { } newType
1610
1608
static TypeSyntax PointerToGroupPointer ( TypeSyntax original , string group ) =>
1611
1609
original switch
1612
1610
{
1613
- PointerTypeSyntax ptr
1614
- => ptr . WithElementType ( PointerToGroupPointer ( ptr . ElementType , group ) ) ,
1611
+ PointerTypeSyntax ptr => ptr . WithElementType (
1612
+ PointerToGroupPointer ( ptr . ElementType , group )
1613
+ ) ,
1615
1614
PredefinedTypeSyntax or IdentifierNameSyntax => IdentifierName ( group ) ,
1616
- _ => throw new ArgumentOutOfRangeException ( nameof ( original ) )
1615
+ _ => throw new ArgumentOutOfRangeException ( nameof ( original ) ) ,
1617
1616
} ;
1618
1617
1619
1618
TypeSyntax ? GetTypeTransformation (
@@ -1667,7 +1666,7 @@ ref bool anyNonTrivialParams
1667
1666
2 when otherGroup is not null => PointerToGroupPointer ( type , group ) ,
1668
1667
1 when otherGroup is not null => PointerToGroupPointer ( type , otherGroup ) ,
1669
1668
1 => PointerToGroupPointer ( type , group ) ,
1670
- _ => null
1669
+ _ => null ,
1671
1670
} ;
1672
1671
}
1673
1672
@@ -1943,7 +1942,7 @@ var group in (groupName is null ? Enumerable.Empty<string>() : [groupName])
1943
1942
Namespace =
1944
1943
enumNamespace is not null && groupInfo . Namespace == enumNamespace
1945
1944
? enumNamespace
1946
- : null
1945
+ : null ,
1947
1946
}
1948
1947
: new EnumGroup (
1949
1948
group ,
0 commit comments