File tree Expand file tree Collapse file tree 2 files changed +0
-14
lines changed
src/D2L.CodeStyle.Analyzers Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ namespace D2L.CodeStyle.Analyzers {
55
66 internal static class Attributes {
77
8- internal static readonly RoslynAttribute Singleton = new RoslynAttribute ( "D2L.LP.Extensibility.Activation.Domain.SingletonAttribute" ) ;
98 internal static readonly RoslynAttribute DIFramework = new RoslynAttribute ( "D2L.LP.Extensibility.Activation.Domain.DIFrameworkAttribute" ) ;
109 internal static readonly RoslynAttribute Dependency = new RoslynAttribute ( "D2L.LP.Extensibility.Activation.Domain.DependencyAttribute" ) ;
1110
Original file line number Diff line number Diff line change 66namespace D2L . CodeStyle . Analyzers . Extensions {
77 internal static partial class RoslynExtensions {
88
9- public static bool IsTypeMarkedSingleton ( this ITypeSymbol symbol ) {
10- if ( Attributes . Singleton . IsDefined ( symbol ) ) {
11- return true ;
12- }
13- if ( symbol . Interfaces . Any ( IsTypeMarkedSingleton ) ) {
14- return true ;
15- }
16- if ( symbol . BaseType != null && IsTypeMarkedSingleton ( symbol . BaseType ) ) {
17- return true ;
18- }
19- return false ;
20- }
21-
229 private static readonly SymbolDisplayFormat FullTypeDisplayFormat = new SymbolDisplayFormat (
2310 typeQualificationStyle : SymbolDisplayTypeQualificationStyle . NameAndContainingTypesAndNamespaces ,
2411 miscellaneousOptions : SymbolDisplayMiscellaneousOptions . ExpandNullable
You can’t perform that action at this time.
0 commit comments