@@ -72,15 +72,11 @@ public static void HasModifier(Context cx, TextWriter trapFile, IEntity target,
72
72
73
73
public static void ExtractModifiers ( Context cx , TextWriter trapFile , IEntity key , ISymbol symbol )
74
74
{
75
- var interfaceDefinition = symbol . ContainingType is not null
76
- && symbol . ContainingType . Kind == SymbolKind . NamedType
77
- && symbol . ContainingType . TypeKind == TypeKind . Interface ;
78
-
79
75
HasAccessibility ( cx , trapFile , key , symbol . DeclaredAccessibility ) ;
80
76
if ( symbol . Kind == SymbolKind . ErrorType )
81
77
trapFile . has_modifiers ( key , Modifier . Create ( cx , Accessibility . Public ) ) ;
82
78
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 ) )
84
80
HasModifier ( cx , trapFile , key , "abstract" ) ;
85
81
86
82
if ( symbol . IsSealed )
@@ -94,10 +90,6 @@ public static void ExtractModifiers(Context cx, TextWriter trapFile, IEntity key
94
90
if ( symbol . IsVirtual )
95
91
HasModifier ( cx , trapFile , key , "virtual" ) ;
96
92
97
- // For some reason, method in interfaces are "virtual", not "abstract"
98
- if ( symbol . IsAbstract && interfaceDefinition )
99
- HasModifier ( cx , trapFile , key , "virtual" ) ;
100
-
101
93
if ( symbol . Kind == SymbolKind . Field && ( ( IFieldSymbol ) symbol ) . IsReadOnly )
102
94
HasModifier ( cx , trapFile , key , "readonly" ) ;
103
95
0 commit comments