Skip to content

Commit

Permalink
remove references to SingletonAttribute (#962)
Browse files Browse the repository at this point in the history
  • Loading branch information
omsmith authored Oct 11, 2024
1 parent ca0ecf2 commit 18366ff
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion src/D2L.CodeStyle.Analyzers/Attributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ namespace D2L.CodeStyle.Analyzers {

internal static class Attributes {

internal static readonly RoslynAttribute Singleton = new RoslynAttribute( "D2L.LP.Extensibility.Activation.Domain.SingletonAttribute" );
internal static readonly RoslynAttribute DIFramework = new RoslynAttribute( "D2L.LP.Extensibility.Activation.Domain.DIFrameworkAttribute" );
internal static readonly RoslynAttribute Dependency = new RoslynAttribute( "D2L.LP.Extensibility.Activation.Domain.DependencyAttribute" );

Expand Down
13 changes: 0 additions & 13 deletions src/D2L.CodeStyle.Analyzers/Extensions/Microsoft.CodeAnalysis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,6 @@
namespace D2L.CodeStyle.Analyzers.Extensions {
internal static partial class RoslynExtensions {

public static bool IsTypeMarkedSingleton( this ITypeSymbol symbol ) {
if( Attributes.Singleton.IsDefined( symbol ) ) {
return true;
}
if( symbol.Interfaces.Any( IsTypeMarkedSingleton ) ) {
return true;
}
if( symbol.BaseType != null && IsTypeMarkedSingleton( symbol.BaseType ) ) {
return true;
}
return false;
}

private static readonly SymbolDisplayFormat FullTypeDisplayFormat = new SymbolDisplayFormat(
typeQualificationStyle: SymbolDisplayTypeQualificationStyle.NameAndContainingTypesAndNamespaces,
miscellaneousOptions: SymbolDisplayMiscellaneousOptions.ExpandNullable
Expand Down

0 comments on commit 18366ff

Please sign in to comment.