@@ -72,15 +72,11 @@ public static void HasModifier(Context cx, TextWriter trapFile, IEntity target,
7272
7373 public static void ExtractModifiers ( Context cx , TextWriter trapFile , IEntity key , ISymbol symbol )
7474 {
75- var interfaceDefinition = symbol . ContainingType is not null
76- && symbol . ContainingType . Kind == SymbolKind . NamedType
77- && symbol . ContainingType . TypeKind == TypeKind . Interface ;
78-
7975 HasAccessibility ( cx , trapFile , key , symbol . DeclaredAccessibility ) ;
8076 if ( symbol . Kind == SymbolKind . ErrorType )
8177 trapFile . has_modifiers ( key , Modifier . Create ( cx , Accessibility . Public ) ) ;
8278
83- if ( symbol . IsAbstract && ( symbol . Kind != SymbolKind . NamedType || ( ( INamedTypeSymbol ) symbol ) . TypeKind != TypeKind . Interface ) && ! interfaceDefinition )
79+ if ( symbol . IsAbstract && ( symbol . Kind != SymbolKind . NamedType || ( ( INamedTypeSymbol ) symbol ) . TypeKind != TypeKind . Interface ) )
8480 HasModifier ( cx , trapFile , key , "abstract" ) ;
8581
8682 if ( symbol . IsSealed )
@@ -94,10 +90,6 @@ public static void ExtractModifiers(Context cx, TextWriter trapFile, IEntity key
9490 if ( symbol . IsVirtual )
9591 HasModifier ( cx , trapFile , key , "virtual" ) ;
9692
97- // For some reason, method in interfaces are "virtual", not "abstract"
98- if ( symbol . IsAbstract && interfaceDefinition )
99- HasModifier ( cx , trapFile , key , "virtual" ) ;
100-
10193 if ( symbol . Kind == SymbolKind . Field && ( ( IFieldSymbol ) symbol ) . IsReadOnly )
10294 HasModifier ( cx , trapFile , key , "readonly" ) ;
10395
0 commit comments