22 references to ObsoleteDiagnosticKind
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder.cs (9)
675var diagnosticKind = ReportDiagnosticsIfObsoleteInternal(diagnostics, leastOverriddenSymbol, node, containingMember, location); 687case ObsoleteDiagnosticKind.NotObsolete: 688case ObsoleteDiagnosticKind.Lazy: 691RoslynDebug.Assert(diagnosticKind != ObsoleteDiagnosticKind.Lazy, "We forced attribute binding above."); 713internal static ObsoleteDiagnosticKind ReportDiagnosticsIfObsoleteInternal(DiagnosticBag diagnostics, Symbol symbol, SyntaxNodeOrToken node, Symbol? containingMember, BinderFlags location) 717var kind = ObsoleteAttributeHelpers.GetObsoleteDiagnosticKind(symbol, containingMember); 722case ObsoleteDiagnosticKind.Diagnostic: 725case ObsoleteDiagnosticKind.Lazy: 726case ObsoleteDiagnosticKind.LazyPotentiallySuppressed:
Errors\LazyObsoleteDiagnosticInfo.cs (4)
45var kind = ObsoleteAttributeHelpers.GetObsoleteDiagnosticKind(symbol, _containingSymbol, forceComplete: true); 46Debug.Assert(kind != ObsoleteDiagnosticKind.Lazy); 47Debug.Assert(kind != ObsoleteDiagnosticKind.LazyPotentiallySuppressed); 51return (kind == ObsoleteDiagnosticKind.Diagnostic) ?
Symbols\ObsoleteAttributeHelpers.cs (9)
98internal static ObsoleteDiagnosticKind GetObsoleteDiagnosticKind(Symbol symbol, Symbol containingMember, bool forceComplete = false) 112return ObsoleteDiagnosticKind.Lazy; 115return ObsoleteDiagnosticKind.NotObsolete; 117return ObsoleteDiagnosticKind.Diagnostic; 125return ObsoleteDiagnosticKind.Lazy; 130static ObsoleteDiagnosticKind getDiagnosticKind(Symbol containingMember, bool forceComplete, Func<Symbol, ThreeState> getStateFromSymbol) 135return ObsoleteDiagnosticKind.Diagnostic; 139return ObsoleteDiagnosticKind.Suppressed; 143return ObsoleteDiagnosticKind.LazyPotentiallySuppressed;