20 references to ObsoleteDiagnosticKind
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder.cs (9)
670
var
diagnosticKind = ReportDiagnosticsIfObsoleteInternal(diagnostics, leastOverriddenSymbol, node, containingMember, location);
682
case
ObsoleteDiagnosticKind
.NotObsolete:
683
case
ObsoleteDiagnosticKind
.Lazy:
686
RoslynDebug.Assert(diagnosticKind !=
ObsoleteDiagnosticKind
.Lazy, "We forced attribute binding above.");
708
internal static
ObsoleteDiagnosticKind
ReportDiagnosticsIfObsoleteInternal(DiagnosticBag diagnostics, Symbol symbol, SyntaxNodeOrToken node, Symbol? containingMember, BinderFlags location)
712
var
kind = ObsoleteAttributeHelpers.GetObsoleteDiagnosticKind(symbol, containingMember);
717
case
ObsoleteDiagnosticKind
.Diagnostic:
720
case
ObsoleteDiagnosticKind
.Lazy:
721
case
ObsoleteDiagnosticKind
.LazyPotentiallySuppressed:
Errors\LazyObsoleteDiagnosticInfo.cs (4)
45
var
kind = ObsoleteAttributeHelpers.GetObsoleteDiagnosticKind(symbol, _containingSymbol, forceComplete: true);
46
Debug.Assert(kind !=
ObsoleteDiagnosticKind
.Lazy);
47
Debug.Assert(kind !=
ObsoleteDiagnosticKind
.LazyPotentiallySuppressed);
51
return (kind ==
ObsoleteDiagnosticKind
.Diagnostic) ?
Symbols\ObsoleteAttributeHelpers.cs (7)
96
internal static
ObsoleteDiagnosticKind
GetObsoleteDiagnosticKind(Symbol symbol, Symbol containingMember, bool forceComplete = false)
101
return
ObsoleteDiagnosticKind
.NotObsolete;
103
return
ObsoleteDiagnosticKind
.Diagnostic;
109
return
ObsoleteDiagnosticKind
.Lazy;
115
return
ObsoleteDiagnosticKind
.Diagnostic;
119
return
ObsoleteDiagnosticKind
.Suppressed;
123
return
ObsoleteDiagnosticKind
.LazyPotentiallySuppressed;