File tree Expand file tree Collapse file tree
sources/SilkTouch/SilkTouch/Mods Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -289,12 +289,7 @@ private class Rewriter(Configuration config, List<EnumMemberFilter> removeMember
289289 case EnumBackingTypePreference . PreferSigned :
290290 {
291291 var baseList = originalNode . BaseList ;
292- if ( baseList == null )
293- {
294- break ;
295- }
296-
297- var baseTypes = baseList . Types
292+ var baseTypes = ( baseList ? . Types ?? [ ] )
298293 . Select < BaseTypeSyntax , BaseTypeSyntax ? > ( t =>
299294 {
300295 var type = semanticModel . GetTypeInfo ( t . Type ) . Type ;
@@ -330,12 +325,7 @@ private class Rewriter(Configuration config, List<EnumMemberFilter> removeMember
330325 case EnumBackingTypePreference . PreferUnsigned :
331326 {
332327 var baseList = originalNode . BaseList ;
333- if ( baseList == null )
334- {
335- break ;
336- }
337-
338- var baseTypes = baseList . Types
328+ var baseTypes = ( baseList ? . Types ?? [ ] )
339329 . Select < BaseTypeSyntax , BaseTypeSyntax ? > ( t =>
340330 {
341331 var type = semanticModel . GetTypeInfo ( t . Type ) . Type ;
You can’t perform that action at this time.
0 commit comments