13 references to ObsoleteKind
Microsoft.CodeAnalysis.CSharp (13)
Symbols\ObsoleteAttributeHelpers.cs (5)
100switch (symbol.ObsoleteKind) 103if (symbol.ContainingModule.ObsoleteKind is ObsoleteAttributeKind.Experimental 104|| symbol.ContainingAssembly.ObsoleteKind is ObsoleteAttributeKind.Experimental) 109if (symbol.ContainingModule.ObsoleteKind is ObsoleteAttributeKind.Uninitialized 110|| symbol.ContainingAssembly.ObsoleteKind is ObsoleteAttributeKind.Uninitialized)
Symbols\Source\SourceNamedTypeSymbol.cs (5)
1796Debug.Assert(ObsoleteKind != ObsoleteAttributeKind.Uninitialized); 1797Debug.Assert(GetMembers().All(m => m.ObsoleteKind != ObsoleteAttributeKind.Uninitialized)); 1799if (ObsoleteKind == ObsoleteAttributeKind.None 1800&& !GetMembers().All(m => m is not MethodSymbol { MethodKind: MethodKind.Constructor, ObsoleteKind: ObsoleteAttributeKind.None } method 1810if (member.ObsoleteKind != ObsoleteAttributeKind.None)
Symbols\Symbol.cs (2)
1406switch (ObsoleteKind) 1428switch (ObsoleteKind)
Symbols\Symbol_Attributes.cs (1)
950if (this.ObsoleteKind == ObsoleteAttributeKind.Uninitialized)